mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix cinematics often being silent on OS X
If OpenAL source isn't playing, often what happens is: queued buffers is 0 and processed buffers is non-0. S_AL_StreamUpdate won't play the steam if queued buffers 0. So start the stream in S_AL_RawSamples.
This commit is contained in:
parent
b3bd74fce7
commit
203ab7b9af
1 changed files with 7 additions and 0 deletions
|
@ -1830,6 +1830,13 @@ void S_AL_RawSamples(int stream, int samples, int rate, int width, int channels,
|
|||
// Volume
|
||||
S_AL_Gain (streamSources[stream], volume * s_volume->value * s_alGain->value);
|
||||
}
|
||||
|
||||
// Start stream
|
||||
if(!streamPlaying[stream])
|
||||
{
|
||||
qalSourcePlay( streamSources[stream] );
|
||||
streamPlaying[stream] = qtrue;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue