Skip to content

Commit 9441fe3

Browse files
committed
virtual/vgmplay.cpp: Set stereo output for wonderswan sound, Implement Hypervoice
1 parent 45f6833 commit 9441fe3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mame/virtual/vgmplay.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -3481,6 +3481,8 @@ void vgmplay_state::soundchips16le_map(address_map &map)
34813481
map(vgmplay_device::A_C352_1, vgmplay_device::A_C352_1 + 0x7fff).w(m_c352[1], FUNC(c352_device::write));
34823482
map(vgmplay_device::A_WSWAN_0, vgmplay_device::A_WSWAN_0 + 0xff).w(m_wswan[0], FUNC(wswan_sound_device::port_w));
34833483
map(vgmplay_device::A_WSWAN_1, vgmplay_device::A_WSWAN_1 + 0xff).w(m_wswan[1], FUNC(wswan_sound_device::port_w));
3484+
map(vgmplay_device::A_WSWAN_0 + 0x64, vgmplay_device::A_WSWAN_0 + 0x6b).w(m_wswan[0], FUNC(wswan_sound_device::hypervoice_w));
3485+
map(vgmplay_device::A_WSWAN_1 + 0x64, vgmplay_device::A_WSWAN_1 + 0x6b).w(m_wswan[1], FUNC(wswan_sound_device::hypervoice_w));
34843486
map(vgmplay_device::A_WSWAN_RAM_0, vgmplay_device::A_WSWAN_RAM_0 + 0x3fff).ram().share("wswan_ram.0");
34853487
map(vgmplay_device::A_WSWAN_RAM_1, vgmplay_device::A_WSWAN_RAM_1 + 0x3fff).ram().share("wswan_ram.1");
34863488
}
@@ -4005,11 +4007,13 @@ void vgmplay_state::vgmplay(machine_config &config)
40054007
m_scsp[1]->add_route(1, m_mixer, 1, AUTO_ALLOC_INPUT, 1);
40064008

40074009
WSWAN_SND(config, m_wswan[0], 0);
4010+
m_wswan[0]->set_headphone_connected(true);
40084011
m_wswan[0]->set_addrmap(0, &vgmplay_state::wswan_map<0>);
40094012
m_wswan[0]->add_route(0, m_mixer, 0.50, AUTO_ALLOC_INPUT, 0);
40104013
m_wswan[0]->add_route(1, m_mixer, 0.50, AUTO_ALLOC_INPUT, 1);
40114014

40124015
WSWAN_SND(config, m_wswan[1], 0);
4016+
m_wswan[1]->set_headphone_connected(true);
40134017
m_wswan[1]->set_addrmap(0, &vgmplay_state::wswan_map<1>);
40144018
m_wswan[1]->add_route(0, m_mixer, 0.50, AUTO_ALLOC_INPUT, 0);
40154019
m_wswan[1]->add_route(1, m_mixer, 0.50, AUTO_ALLOC_INPUT, 1);

0 commit comments

Comments
 (0)