aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_openal.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-03 16:36:45 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-03 16:36:45 +0000
commit88dea72cd721b219c24efabec399eafde6ef37ca (patch)
tree7279002408e92481d083aa95283573acac13e063 /code/client/snd_openal.c
parent038000d755477df27eb2c474a5a2c56fc5ab1f5b (diff)
downloadioquake3-aero-88dea72cd721b219c24efabec399eafde6ef37ca.tar.gz
ioquake3-aero-88dea72cd721b219c24efabec399eafde6ef37ca.zip
* Same as last revision, but I didn't forget to save this time
git-svn-id: svn://svn.icculus.org/quake3/trunk@408 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/snd_openal.c')
-rw-r--r--code/client/snd_openal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index 4f6e197..cd266d0 100644
--- a/code/client/snd_openal.c
+++ b/code/client/snd_openal.c
@@ -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;
}
}