mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 08:20:52 +00:00
Volume fixes
This commit is contained in:
parent
bf4e7d2dd6
commit
a688de5dc2
2 changed files with 6 additions and 5 deletions
|
@ -1518,7 +1518,6 @@ static boolean S_PlayMusic(boolean looping, UINT32 fadeinms)
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
S_InitMusicVolume(); // switch between digi and sequence volume
|
||||
return true;
|
||||
}
|
||||
|
@ -1684,11 +1683,13 @@ void S_SetMusicVolume(INT32 digvolume, INT32 seqvolume)
|
|||
switch(I_SongType())
|
||||
{
|
||||
case MU_MID:
|
||||
case MU_MOD:
|
||||
case MU_GME:
|
||||
//case MU_MOD:
|
||||
//case MU_GME:
|
||||
I_SetMusicVolume(seqvolume&31);
|
||||
break;
|
||||
default:
|
||||
I_SetMusicVolume(digvolume&31);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1197,7 +1197,7 @@ void I_ResumeSong()
|
|||
|
||||
void I_SetMusicVolume(UINT8 volume)
|
||||
{
|
||||
if (!music)
|
||||
if (!I_SongPlaying())
|
||||
return;
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -1253,7 +1253,7 @@ boolean I_SetSongTrack(int track)
|
|||
void I_SetInternalMusicVolume(UINT8 volume)
|
||||
{
|
||||
internal_volume = volume;
|
||||
if (!music)
|
||||
if (!I_SongPlaying())
|
||||
return;
|
||||
Mix_VolumeMusic(get_real_volume(music_volume));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue