mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 00:27:31 +00:00
DREAMWEB: added comment about volumes
This commit is contained in:
parent
9008f2c442
commit
8a87835638
@ -453,6 +453,16 @@ void DreamWebEngine::soundHandler() {
|
||||
_context.ax = _context.pop();
|
||||
|
||||
uint volume = _context.data.byte(dreamgen::kVolume);
|
||||
//.vol file loaded into soundbuf:0x4000
|
||||
//volume table at (volume * 0x100 + 0x3f00)
|
||||
//volume value could be from 1 to 7
|
||||
//1 - 0x10-0xff
|
||||
//2 - 0x1f-0xdf
|
||||
//3 - 0x2f-0xd0
|
||||
//4 - 0x3e-0xc1
|
||||
//5 - 0x4d-0xb2
|
||||
//6 - 0x5d-0xa2
|
||||
//7 - 0x6f-0x91
|
||||
volume = (8 - volume) * Audio::Mixer::kMaxChannelVolume / 8;
|
||||
_mixer->setChannelVolume(_channelHandle[0], volume);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user