diff options
author | 2011-08-21 02:20:14 +0000 | |
---|---|---|
committer | 2011-08-21 02:20:14 +0000 | |
commit | 770e47c0972ad0a4aa80ee67bc56d354e348c3a2 (patch) | |
tree | 2705e49b80853a5cc810bfde7c9bc335490a0fba /src/emu/sound | |
parent | 954399f50f5d529fe320a60c41d84f8509d07e7c (diff) |
Added MVOL to the SCSP core, used for sound fade in/out effects[Angelo Salese]
Diffstat (limited to 'src/emu/sound')
-rw-r--r-- | src/emu/sound/scsp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/sound/scsp.c b/src/emu/sound/scsp.c index ad0ffbb52e7..bed88653471 100644 --- a/src/emu/sound/scsp.c +++ b/src/emu/sound/scsp.c @@ -703,8 +703,13 @@ static void SCSP_UpdateReg(scsp_state *scsp, int reg) { /* temporary hack until this is converted to a device */ address_space *space = scsp->device->machine().firstcpu->memory().space(AS_PROGRAM); + switch(reg&0x3f) { + case 0x0: + scsp->stream->set_output_gain(0,MVOL(scsp) / 15.0); + scsp->stream->set_output_gain(1,MVOL(scsp) / 15.0); + break; case 0x2: case 0x3: { |