summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/bbd.h
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-06-16 12:47:52 +0200
committer Olivier Galibert <galibert@pobox.com>2025-04-29 23:06:41 +0200
commit45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff (patch)
tree4e8d8fcb7382a5e9e0bce5ec59939bcfbe67155a /src/devices/sound/bbd.h
parent5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff)
full xtal conversionxtal
Diffstat (limited to 'src/devices/sound/bbd.h')
-rw-r--r--src/devices/sound/bbd.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/sound/bbd.h b/src/devices/sound/bbd.h
index f9c84b8d6a6..f2d35f397f4 100644
--- a/src/devices/sound/bbd.h
+++ b/src/devices/sound/bbd.h
@@ -25,7 +25,7 @@ protected:
using cv_delegate = device_delegate<attoseconds_t (attotime const &)>;
// internal constructor
- bbd_device_base(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, device_type type);
+ bbd_device_base(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock, device_type type);
// device-level overrides
virtual void device_start() override;
@@ -37,7 +37,7 @@ protected:
protected:
// override to convert clock to sample rate
stream_buffer::sample_t outputval(s32 index) const { return m_buffer[(m_curpos - index) % std::size(m_buffer)]; }
- virtual u32 sample_rate() const { return clock(); }
+ virtual XTAL sample_rate() const { return clock(); }
sound_stream * m_stream;
u32 m_curpos;
@@ -52,7 +52,7 @@ protected:
class mn3004_device : public bbd_device_base<512, 2>
{
public:
- mn3004_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+ mn3004_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL());
};
DECLARE_DEVICE_TYPE(MN3004, mn3004_device)
@@ -63,7 +63,7 @@ DECLARE_DEVICE_TYPE(MN3004, mn3004_device)
class mn3005_device : public bbd_device_base<4096, 2>
{
public:
- mn3005_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+ mn3005_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL());
};
DECLARE_DEVICE_TYPE(MN3005, mn3005_device)
@@ -74,7 +74,7 @@ DECLARE_DEVICE_TYPE(MN3005, mn3005_device)
class mn3006_device : public bbd_device_base<128, 2>
{
public:
- mn3006_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+ mn3006_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL());
};
DECLARE_DEVICE_TYPE(MN3006, mn3006_device)
@@ -85,7 +85,7 @@ DECLARE_DEVICE_TYPE(MN3006, mn3006_device)
class mn3204p_device : public bbd_device_base<512, 2>
{
public:
- mn3204p_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+ mn3204p_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL());
};
DECLARE_DEVICE_TYPE(MN3204P, mn3204p_device)