Use the first non-0-length buffer when starting a source

This commit is contained in:
Chris Robinson 2014-05-22 11:08:21 -07:00
parent 85e990e915
commit e32e3df3aa

View File

@ -2372,7 +2372,7 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state)
Source->state = AL_PLAYING;
Source->position = 0;
Source->position_fraction = 0;
Source->current_buffer = Source->queue;
Source->current_buffer = BufferList;
}
else
Source->state = AL_PLAYING;