trunk/src/mame/audio/snes_snd.c
r17545 | r17546 | |
1051 | 1051 | } |
1052 | 1052 | } |
1053 | 1053 | |
| 1054 | /*------------------------------------------------- |
| 1055 | spc700_set_volume - sets SPC700 volume level |
| 1056 | for both speakers, used for fade in/out effects |
| 1057 | -------------------------------------------------*/ |
1054 | 1058 | |
| 1059 | void 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 | |
1055 | 1068 | /*************************** |
1056 | 1069 | I/O for DSP |
1057 | 1070 | ***************************/ |
trunk/src/mame/drivers/nss.c
r17545 | r17546 | |
5 | 5 | driver by Angelo Salese, based off info from Noca$h |
6 | 6 | |
7 | 7 | TODO: |
| 8 | - EEPROM doesn't save? |
8 | 9 | - Fix sound CPU halt / reset lines, particularly needed by this to work |
9 | 10 | correctly; |
10 | 11 | - Fix continue behaviour, might be the same issue as the one above. |
r17545 | r17546 | |
557 | 558 | ---- ---x Maybe SNES CPU/PPU reset? (0=Reset, 1=Run) |
558 | 559 | */ |
559 | 560 | m_input_disabled = ((data & 0x80) >> 7) ^ 1; |
| 561 | spc700_set_volume(machine().device("spc700"),data & 0x20 ? 0.0 : 100.0); |
560 | 562 | |
561 | 563 | m_cart_sel = (data & 0xc) >> 2; |
562 | 564 | |