mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +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,19 +1135,19 @@ 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( );
|
||||
}
|
||||
|
||||
if( !streamPlaying && numBuffers )
|
||||
{
|
||||
qalSourcePlay(streamSource);
|
||||
qalSourcePlay( streamSource );
|
||||
streamPlaying = qtrue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue