ref: 2d87009441efdc4fad9b3cb74bc0dd3288e87a9b
parent: b64e421ccf21b0d187cc94bc42c605ae32aac1c7
author: Roman Fomin <[email protected]>
date: Sat Nov 27 06:50:43 EST 2021
win midi: Fix formatting
--- a/src/i_winmusic.c
+++ b/src/i_winmusic.c
@@ -352,21 +352,21 @@
void I_WIN_SetMusicVolume(int volume)
{
- int i;
+ int i;
- volume_factor = (float)volume / 127;
+ volume_factor = (float)volume / 127;
- // Send MIDI controller events to adjust the volume.
- for (i = 0; i < MIDI_CHANNELS_PER_TRACK; ++i)
- {
- int value = channel_volume[i] * volume_factor;
+ // Send MIDI controller events to adjust the volume.
+ for (i = 0; i < MIDI_CHANNELS_PER_TRACK; ++i)
+ {
+ int value = channel_volume[i] * volume_factor;
- DWORD msg = MIDI_EVENT_CONTROLLER | i |
- (MIDI_CONTROLLER_MAIN_VOLUME << 8) |
- (value << 16);
+ DWORD msg = MIDI_EVENT_CONTROLLER | i |
+ (MIDI_CONTROLLER_MAIN_VOLUME << 8) |
+ (value << 16);
- midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
- }
+ midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
+ }
}
void I_WIN_StopSong(void)