* 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 // Start the streamSource playing if necessary
qalGetSourcei( streamSource, AL_BUFFERS_QUEUED, &numBuffers ); qalGetSourcei( streamSource, AL_BUFFERS_QUEUED, &numBuffers );
// If it's stopped, release the streamSource
qalGetSourcei(streamSource, AL_SOURCE_STATE, &state); qalGetSourcei(streamSource, AL_SOURCE_STATE, &state);
if(state == AL_STOPPED) if(state == AL_STOPPED)
{ {
streamPlaying = qfalse; streamPlaying = qfalse;
/*qalSourceStop(streamSource);*/
// If there are no buffers queued up, release the streamSource
if( !numBuffers ) if( !numBuffers )
S_AL_FreeStreamChannel( ); S_AL_FreeStreamChannel( );
} }