mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- Add fix for MUS volume controller changes with 8-bit values.
SVN r3180 (trunk)
This commit is contained in:
parent
6ce9228150
commit
dd5e8e9333
1 changed files with 3 additions and 2 deletions
|
@ -323,8 +323,9 @@ DWORD *MUSSong2::MakeEvents(DWORD *events, DWORD *max_event_p, DWORD max_time)
|
|||
mid1 = CtrlTranslate[t];
|
||||
mid2 = MusBuffer[MusP++];
|
||||
if (mid1 == 7)
|
||||
{
|
||||
mid2 = VolumeControllerChange(channel, mid2);
|
||||
{ // Clamp volume to 127, since DMX apparently allows 8-bit volumes.
|
||||
// Fix courtesy of Gez, courtesy of Ben Ryves.
|
||||
mid2 = VolumeControllerChange(channel, MIN(mid2, 0x7F));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue