mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Set volume level immediately for music playback. Avoids hearing a brief blip of sound if you have volume set to 0.
This commit is contained in:
parent
a83efd37ff
commit
30879292b8
1 changed files with 1 additions and 3 deletions
|
@ -92,7 +92,7 @@ bool playCDtrack(int nTrack, bool bLoop)
|
|||
|
||||
kclose(hFile);
|
||||
|
||||
trackhandle = FX_Play(pTrack, nRead, bLoop ? 0 : -1, 0, 0, 255, 255, 255, FX_MUSIC_PRIORITY, fix16_one, MUSIC_ID);
|
||||
trackhandle = FX_Play(pTrack, nRead, bLoop ? 0 : -1, 0, 0, gMusicVolume, gMusicVolume, gMusicVolume, FX_MUSIC_PRIORITY, fix16_one, MUSIC_ID);
|
||||
if (trackhandle <= FX_Ok)
|
||||
{
|
||||
OSD_Printf("Error playing music track %s", filename);
|
||||
|
@ -104,8 +104,6 @@ bool playCDtrack(int nTrack, bool bLoop)
|
|||
return false;
|
||||
}
|
||||
|
||||
setCDaudiovolume(gMusicVolume);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue