summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pci/sonicvibes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pci/sonicvibes.cpp')
-rw-r--r--src/devices/bus/pci/sonicvibes.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/devices/bus/pci/sonicvibes.cpp b/src/devices/bus/pci/sonicvibes.cpp
index 1c79a06de7b..e17a6abe582 100644
--- a/src/devices/bus/pci/sonicvibes.cpp
+++ b/src/devices/bus/pci/sonicvibes.cpp
@@ -41,7 +41,7 @@ TODO:
// Documentation spells "SonicVibes", on-chip markings says "Sonic Vibes" instead
-DEFINE_DEVICE_TYPE(SONICVIBES, sonicvibes_device, "sonicvibes", "S3 Sonic Vibes 86C617 PCI card")
+DEFINE_DEVICE_TYPE(SONICVIBES, sonicvibes_device, "sonicvibes", "S3 Sonic Vibes 86C617")
@@ -62,18 +62,17 @@ sonicvibes_device::sonicvibes_device(const machine_config &mconfig, const char *
void sonicvibes_device::device_add_mconfig(machine_config &config)
{
- SPEAKER(config, "lspeaker").front_left();
- SPEAKER(config, "rspeaker").front_right();
+ SPEAKER(config, "speaker", 2).front();
// TODO: (barely visible) only 24'576 xtal on a Turtle Beach PCB, is it really 12-ish MHz?
YMF262(config, m_opl3, XTAL(14'318'181));
- m_opl3->add_route(0, "lspeaker", 1.0);
- m_opl3->add_route(1, "rspeaker", 1.0);
- m_opl3->add_route(2, "lspeaker", 1.0);
- m_opl3->add_route(3, "rspeaker", 1.0);
+ m_opl3->add_route(0, "speaker", 1.0, 0);
+ m_opl3->add_route(1, "speaker", 1.0, 1);
+ m_opl3->add_route(2, "speaker", 1.0, 0);
+ m_opl3->add_route(3, "speaker", 1.0, 1);
-// DAC_16BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC
-// DAC_16BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC
+// DAC_16BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
+// DAC_16BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
PC_JOY(config, m_joy);
@@ -124,13 +123,13 @@ void sonicvibes_device::config_map(address_map &map)
void sonicvibes_device::games_legacy_map(address_map &map)
{
map(0x00, 0x03).rw(m_opl3, FUNC(ymf262_device::read), FUNC(ymf262_device::write));
-// map(0x04, 0x04) Mixer Register Index (w/o)
-// map(0x05, 0x05) Mixer Register Data
-// map(0x06, 0x06) Reset
+// map(0x04, 0x04) Mixer Register Index (w/o)
+// map(0x05, 0x05) Mixer Register Data
+// map(0x06, 0x06) Reset
map(0x08, 0x09).rw(m_opl3, FUNC(ymf262_device::read), FUNC(ymf262_device::write));
-// map(0x0a, 0x0a) Input Data (r/o)
-// map(0x0c, 0x0c) Write Data/Command (w) Write Buffer Status (r)
-// map(0x0e, 0x0e) Read Output Buffer Status (r/o)
+// map(0x0a, 0x0a) Input Data (r/o)
+// map(0x0c, 0x0c) Write Data/Command (w) Write Buffer Status (r)
+// map(0x0e, 0x0e) Read Output Buffer Status (r/o)
}
// 530h