Previous 199869 Revisions Next

r17546 Tuesday 28th August, 2012 at 21:21:13 UTC by Angelo Salese
Added sound mute in spc700 then hooked up for NSS
[src/mame/audio]snes_snd.c snes_snd.h
[src/mame/drivers]nss.c

trunk/src/mame/audio/snes_snd.c
r17545r17546
10511051   }
10521052}
10531053
1054/*-------------------------------------------------
1055    spc700_set_volume - sets SPC700 volume level
1056    for both speakers, used for fade in/out effects
1057-------------------------------------------------*/
10541058
1059void spc700_set_volume(device_t *device,int volume)
1060{
1061   snes_sound_state *spc700 = get_safe_token(device);
1062
1063   spc700->channel->set_output_gain(0,volume / 100.0);
1064   spc700->channel->set_output_gain(1,volume / 100.0);
1065}
1066
1067
10551068/***************************
10561069         I/O for DSP
10571070 ***************************/
trunk/src/mame/audio/snes_snd.h
r17545r17546
3232WRITE8_DEVICE_HANDLER( spc_port_in );
3333
3434UINT8 *spc_get_ram(device_t *device);
35void spc700_set_volume(device_t *device,int volume);
3536
3637#endif /* __SNES_SPC_H__ */
trunk/src/mame/drivers/nss.c
r17545r17546
55   driver by Angelo Salese, based off info from Noca$h
66
77   TODO:
8   - EEPROM doesn't save?
89   - Fix sound CPU halt / reset lines, particularly needed by this to work
910     correctly;
1011   - Fix continue behaviour, might be the same issue as the one above.
r17545r17546
557558   ---- ---x Maybe SNES CPU/PPU reset?   (0=Reset, 1=Run)
558559*/
559560   m_input_disabled = ((data & 0x80) >> 7) ^ 1;
561   spc700_set_volume(machine().device("spc700"),data & 0x20 ? 0.0 : 100.0);
560562
561563   m_cart_sel = (data & 0xc) >> 2;
562564

Previous 199869 Revisions Next


© 1997-2024 The MAME Team