mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
win midi: fix some silent MIDIs
This commit is contained in:
parent
d695e5f091
commit
987cd46acd
@ -354,12 +354,10 @@ static boolean I_WIN_InitMusic(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void I_WIN_SetMusicVolume(int volume)
|
||||
static void UpdateVolume()
|
||||
{
|
||||
int i;
|
||||
|
||||
volume_factor = (float)volume / 15;
|
||||
|
||||
// Send MIDI controller events to adjust the volume.
|
||||
for (i = 0; i < MIDI_CHANNELS_PER_TRACK; ++i)
|
||||
{
|
||||
@ -374,6 +372,18 @@ static void I_WIN_SetMusicVolume(int volume)
|
||||
}
|
||||
}
|
||||
|
||||
static void I_WIN_SetMusicVolume(int volume)
|
||||
{
|
||||
volume_factor = (float)volume / 15;
|
||||
|
||||
if (!hMidiStream)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
UpdateVolume();
|
||||
}
|
||||
|
||||
static void I_WIN_StopSong(void *handle)
|
||||
{
|
||||
int i;
|
||||
@ -438,6 +448,8 @@ static void I_WIN_PlaySong(void *handle, boolean looping)
|
||||
{
|
||||
MidiErrorMessageBox(mmr);
|
||||
}
|
||||
|
||||
UpdateVolume();
|
||||
}
|
||||
|
||||
static void I_WIN_PauseSong(void *handle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user