mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-31 00:51:17 +00:00
* Sound related bug fixes from Thilo Schulz
This commit is contained in:
parent
c93d8fc185
commit
40a5ee007f
2 changed files with 19 additions and 2 deletions
|
@ -1377,7 +1377,23 @@ void S_AL_StartBackgroundTrack( const char *intro, const char *loop )
|
|||
|
||||
// Queue the musicBuffers up
|
||||
for(i = 0; i < NUM_MUSIC_BUFFERS; i++)
|
||||
{
|
||||
S_AL_MusicProcess(musicBuffers[i]);
|
||||
|
||||
// check whether our stream still exists.
|
||||
if(!mus_stream)
|
||||
{
|
||||
// there was an error in reading which resulted in a
|
||||
// closed stream. We must bail out or we'll crash.
|
||||
|
||||
// deallocate everything we allocated so far:
|
||||
qalDeleteBuffers(NUM_MUSIC_BUFFERS, musicBuffers);
|
||||
S_AL_MusicSourceFree();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
qalSourceQueueBuffers(musicSource, NUM_MUSIC_BUFFERS, musicBuffers);
|
||||
|
||||
// Set the initial gain property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue