summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/bbd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/bbd.cpp')
-rw-r--r--src/devices/sound/bbd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/sound/bbd.cpp b/src/devices/sound/bbd.cpp
index e270108b04e..ef5433c49ef 100644
--- a/src/devices/sound/bbd.cpp
+++ b/src/devices/sound/bbd.cpp
@@ -13,7 +13,7 @@
//-------------------------------------------------
template<int Entries, int Outputs>
-bbd_device_base<Entries, Outputs>::bbd_device_base(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, device_type type) :
+bbd_device_base<Entries, Outputs>::bbd_device_base(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock, device_type type) :
device_t(mconfig, type, tag, owner, clock),
device_sound_interface(mconfig, *this),
m_stream(nullptr),
@@ -37,7 +37,7 @@ void bbd_device_base<Entries, Outputs>::device_start()
if (m_cv_handler.isnull())
m_stream = stream_alloc(1, Outputs, sample_rate());
else
- m_stream = stream_alloc(1, Outputs, SAMPLE_RATE_OUTPUT_ADAPTIVE, STREAM_DISABLE_INPUT_RESAMPLING);
+ m_stream = stream_alloc(1, Outputs, XTAL(), STREAM_DISABLE_INPUT_RESAMPLING, SAMPLE_RATE_OUTPUT_ADAPTIVE);
save_item(NAME(m_buffer));
save_item(NAME(m_curpos));
@@ -120,7 +120,7 @@ void bbd_device_base<Entries, Outputs>::sound_stream_update(sound_stream &stream
// device type definition
DEFINE_DEVICE_TYPE(MN3004, mn3004_device, "mn3004", "MN3004 BBD")
-mn3004_device::mn3004_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+mn3004_device::mn3004_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) :
bbd_device_base(mconfig, tag, owner, clock, MN3004)
{
}
@@ -133,7 +133,7 @@ mn3004_device::mn3004_device(const machine_config &mconfig, const char *tag, dev
// device type definition
DEFINE_DEVICE_TYPE(MN3005, mn3005_device, "mn3005", "MN3005 BBD")
-mn3005_device::mn3005_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+mn3005_device::mn3005_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) :
bbd_device_base(mconfig, tag, owner, clock, MN3005)
{
}
@@ -146,7 +146,7 @@ mn3005_device::mn3005_device(const machine_config &mconfig, const char *tag, dev
// device type definition
DEFINE_DEVICE_TYPE(MN3006, mn3006_device, "mn3006", "MN3006 BBD")
-mn3006_device::mn3006_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+mn3006_device::mn3006_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) :
bbd_device_base(mconfig, tag, owner, clock, MN3006)
{
}
@@ -159,7 +159,7 @@ mn3006_device::mn3006_device(const machine_config &mconfig, const char *tag, dev
// device type definition
DEFINE_DEVICE_TYPE(MN3204P, mn3204p_device, "mn3204p", "MN3204P BBD")
-mn3204p_device::mn3204p_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+mn3204p_device::mn3204p_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) :
bbd_device_base(mconfig, tag, owner, clock, MN3204P)
{
}