mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-27 06:13:01 +00:00
* Same as last revision, but I didn't forget to save this time
This commit is contained in:
parent
5cc1fb1c05
commit
e67d270f2a
1 changed files with 3 additions and 3 deletions
|
@ -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( );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue