diff options
author | Chris Robinson <[email protected]> | 2009-10-25 02:59:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-10-25 02:59:31 -0700 |
commit | 166559513828cd14d79c455fe0e7ad6efe57593d (patch) | |
tree | b37f98f05f7fae34710a6c43be2c57c4cb016588 /Alc | |
parent | bbccf76b4584eca741867f9a6ed89abe1bf48a85 (diff) |
Remove unneeded bufferlistitem properties
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -1130,11 +1130,7 @@ another_source: { BufferListItem = ALSource->queue; for(i = 0;i <= ALSource->BuffersPlayed && BufferListItem;i++) - { - if(!Looping) - BufferListItem->bufferstate = PROCESSED; BufferListItem = BufferListItem->next; - } if(BufferListItem) ALSource->Buffer = BufferListItem->buffer; ALSource->position = DataPosInt-DataSize; @@ -1148,12 +1144,6 @@ another_source: /* alSourceStop */ ALSource->state = AL_STOPPED; ALSource->BuffersPlayed = ALSource->BuffersInQueue; - BufferListItem = ALSource->queue; - while(BufferListItem != NULL) - { - BufferListItem->bufferstate = PROCESSED; - BufferListItem = BufferListItem->next; - } ALSource->position = 0; ALSource->position_fraction = 0; } @@ -1163,12 +1153,6 @@ another_source: /* alSourcePlay */ ALSource->state = AL_PLAYING; ALSource->BuffersPlayed = 0; - BufferListItem = ALSource->queue; - while(BufferListItem != NULL) - { - BufferListItem->bufferstate = PENDING; - BufferListItem = BufferListItem->next; - } ALSource->Buffer = ALSource->queue->buffer; if(ALSource->BuffersInQueue == 1) @@ -1387,16 +1371,8 @@ ALvoid aluHandleDisconnect(ALCdevice *device) { if(source->state == AL_PLAYING) { - ALbufferlistitem *BufferListItem; - source->state = AL_STOPPED; source->BuffersPlayed = source->BuffersInQueue; - BufferListItem = source->queue; - while(BufferListItem != NULL) - { - BufferListItem->bufferstate = PROCESSED; - BufferListItem = BufferListItem->next; - } source->position = 0; source->position_fraction = 0; } |