* Same as last revision, but I didn't forget to save this time

This commit is contained in:
Tim Angus 2005-12-03 16:36:45 +00:00
parent 5cc1fb1c05
commit e67d270f2a

View file

@ -1135,12 +1135,12 @@ void S_AL_StreamUpdate( void )
// Start the streamSource playing if necessary
qalGetSourcei( streamSource, AL_BUFFERS_QUEUED, &numBuffers );
// If it's stopped, release the streamSource
qalGetSourcei(streamSource, AL_SOURCE_STATE, &state);
if(state == AL_STOPPED)
{
streamPlaying = qfalse;
/*qalSourceStop(streamSource);*/
// If there are no buffers queued up, release the streamSource
if( !numBuffers )
S_AL_FreeStreamChannel( );
}