From cef6157803320544651bfc96457d2f8a6df0abd6 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 14 Apr 2025 11:31:53 +0200 Subject: New sound infrastructure. 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 --- src/devices/sound/hc55516.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/devices/sound/hc55516.h') diff --git a/src/devices/sound/hc55516.h b/src/devices/sound/hc55516.h index 9862e489b3f..ac1a56bf739 100644 --- a/src/devices/sound/hc55516.h +++ b/src/devices/sound/hc55516.h @@ -52,7 +52,7 @@ public: // Audio In pin, an analog value of the audio waveform being pushed to the chip. // TODO: this is not hooked up or implemented yet, and this should really be handled as an // input stream from a separate DAC device, not a value push function at all. - //void audio_in_w(stream_buffer::sample_t data); + //void audio_in_w(sound_stream::sample_t data); // sets the buffered digit (0 or 1), common to all chips. TODO: replace all use of this with // digin_cb once implemented @@ -74,7 +74,7 @@ protected: //virtual void device_clock_changed() override; // sound stream update overrides - virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; + virtual void sound_stream_update(sound_stream &stream) override; // callbacks devcb_write_line m_clock_state_push_cb; // TODO: get rid of this, if you use it you should feel bad @@ -129,7 +129,7 @@ protected: virtual void device_reset() override ATTR_COLD; // sound stream update overrides - virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; + virtual void sound_stream_update(sound_stream &stream) override; // callbacks devcb_write_line m_agc_push_cb; @@ -179,7 +179,7 @@ protected: virtual void device_start() override ATTR_COLD; // sound stream update overrides - virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; + virtual void sound_stream_update(sound_stream &stream) override; // const coefficients defined by constructor; should these be adjustable by the user or externally defined, // as they are implemented using a set of two small lowpass filters outside the chip? @@ -190,8 +190,8 @@ protected: // internal state double m_sylfilter; double m_intfilter; - stream_buffer::sample_t m_curr_sample; - stream_buffer::sample_t m_next_sample; + sound_stream::sample_t m_curr_sample; + sound_stream::sample_t m_next_sample; // internal handlers virtual void process_bit(bool bit, bool clock_state) override; -- cgit v1.2.3-70-g09d2