summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/qsound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/qsound.cpp')
-rw-r--r--src/devices/sound/qsound.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/sound/qsound.cpp b/src/devices/sound/qsound.cpp
index 29b2661add5..257fa135bb5 100644
--- a/src/devices/sound/qsound.cpp
+++ b/src/devices/sound/qsound.cpp
@@ -9,7 +9,7 @@
The key components are a DSP16A, a TDA1543 dual 16-bit DAC with I2S
input, and a TC9185P electronic volume control. The TDA1543 is
- simulated here; no attempt is being made to emulate theTC9185P.
+ simulated here; no attempt is being made to emulate the TC9185P.
Commands work by writing an address/data word pair to be written to
DSP's internal RAM. In theory it's possible to write anywhere in
@@ -26,7 +26,7 @@
is needed because DSP16 has latent PIO reads in active mode). I've
assumed that reading PIO with PSEL low when INT is asserted will
return the address and cause INT to be de-asserted, and reading PIO
- with PSEL low when int is not asserted will return the data word.
+ with PSEL low when INT is not asserted will return the data word.
The DSP program will only respond to one external interrupt per
sample interval (i.e. the maximum command rate is the same as the
sample rate).
@@ -102,7 +102,6 @@
#include <algorithm>
#include <fstream>
-#define LOG_GENERAL (1U << 0)
#define LOG_COMMAND (1U << 1)
#define LOG_SAMPLE (1U << 2)
@@ -262,10 +261,11 @@ void qsound_device::sound_stream_update(sound_stream &stream, std::vector<read_s
//-------------------------------------------------
-// rom_bank_updated - the rom bank has changed
+// rom_bank_post_change - called after the ROM
+// bank is changed
//-------------------------------------------------
-void qsound_device::rom_bank_updated()
+void qsound_device::rom_bank_post_change()
{
machine().scheduler().synchronize();
}
@@ -288,7 +288,7 @@ u16 qsound_device::dsp_sample_r(offs_t offset)
return u16(byte) << 8;
}
-WRITE_LINE_MEMBER(qsound_device::dsp_ock_w)
+void qsound_device::dsp_ock_w(int state)
{
// detect active edge
if (bool(state) == bool(m_ock))
@@ -358,12 +358,12 @@ u16 qsound_device::dsp_pio_r()
}
}
-void qsound_device::set_dsp_ready(void *ptr, s32 param)
+void qsound_device::set_dsp_ready(s32 param)
{
m_dsp_ready = 1U;
}
-void qsound_device::set_cmd(void *ptr, s32 param)
+void qsound_device::set_cmd(s32 param)
{
/*
* I don't believe the data word is actually double-buffered in