diff options
author | 2025-04-14 11:31:53 +0200 | |
---|---|---|
committer | 2025-04-14 22:28:31 +0200 | |
commit | cef6157803320544651bfc96457d2f8a6df0abd6 (patch) | |
tree | f8a64867e3d654cdcad5f4c24824ea82e2c77194 /src/devices/machine/vrender0.cpp | |
parent | 9473c027358e1a2d5c93d240a48052368f9d3b84 (diff) |
New sound infrastructure.sound
Should be added soon:
- mute
- lua hookup (with documentation)
- speaker/microphone resampling
To be added a little later:
- compression
- reverb
Needs to be added by someone else:
- coreaudio
- direct
- portaudio
- xaudio2
- js
Diffstat (limited to 'src/devices/machine/vrender0.cpp')
-rw-r--r-- | src/devices/machine/vrender0.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/devices/machine/vrender0.cpp b/src/devices/machine/vrender0.cpp index 81ffdea1af0..2fe339a083a 100644 --- a/src/devices/machine/vrender0.cpp +++ b/src/devices/machine/vrender0.cpp @@ -42,8 +42,7 @@ vrender0soc_device::vrender0soc_device(const machine_config &mconfig, const char m_palette(*this, "palette"), m_vr0vid(*this, "vr0vid"), m_vr0snd(*this, "vr0snd"), - m_lspeaker(*this, "lspeaker"), - m_rspeaker(*this, "rspeaker"), + m_speaker(*this, "speaker"), m_uart(*this, "uart%u", 0), m_crtcregs(*this, "crtcregs"), write_tx(*this) @@ -135,15 +134,14 @@ void vrender0soc_device::device_add_mconfig(machine_config &config) PALETTE(config, m_palette, palette_device::RGB_565); - SPEAKER(config, m_lspeaker).front_left(); - SPEAKER(config, m_rspeaker).front_right(); + SPEAKER(config, m_speaker).front(); SOUND_VRENDER0(config, m_vr0snd, DERIVED_CLOCK(1,1)); // Correct? m_vr0snd->set_addrmap(vr0sound_device::AS_TEXTURE, &vrender0soc_device::texture_map); m_vr0snd->set_addrmap(vr0sound_device::AS_FRAME, &vrender0soc_device::frame_map); m_vr0snd->irq_callback().set(FUNC(vrender0soc_device::soundirq_cb)); - m_vr0snd->add_route(0, m_lspeaker, 1.0); - m_vr0snd->add_route(1, m_rspeaker, 1.0); + m_vr0snd->add_route(0, m_speaker, 1.0, 0); + m_vr0snd->add_route(1, m_speaker, 1.0, 1); } |