summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/flt_vol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/flt_vol.h')
-rw-r--r--src/devices/sound/flt_vol.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/sound/flt_vol.h b/src/devices/sound/flt_vol.h
index 6a3bdab17d5..8104833e9ac 100644
--- a/src/devices/sound/flt_vol.h
+++ b/src/devices/sound/flt_vol.h
@@ -17,7 +17,8 @@ class filter_volume_device : public device_t, public device_sound_interface
public:
filter_volume_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
- void flt_volume_set_volume(float volume);
+ filter_volume_device &set_gain(float gain); // also may be used in mcfg to set initial value (default is 1.0)
+ float gain() { return m_gain; }
protected:
// device-level overrides
@@ -27,8 +28,8 @@ protected:
virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
private:
- sound_stream* m_stream;
- stream_buffer::sample_t m_gain;
+ sound_stream* m_stream;
+ float m_gain;
};
DECLARE_DEVICE_TYPE(FILTER_VOLUME, filter_volume_device)