summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/vgm_visualizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/vgm_visualizer.h')
-rw-r--r--src/devices/sound/vgm_visualizer.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/sound/vgm_visualizer.h b/src/devices/sound/vgm_visualizer.h
index 516e4e4bfad..ee671535a24 100644
--- a/src/devices/sound/vgm_visualizer.h
+++ b/src/devices/sound/vgm_visualizer.h
@@ -10,8 +10,8 @@
***************************************************************************/
-#ifndef MAME_SOUND_VGMVIZ_H
-#define MAME_SOUND_VGMVIZ_H
+#ifndef MAME_SOUND_VGM_VISUALIZER_H
+#define MAME_SOUND_VGM_VISUALIZER_H
#pragma once
@@ -35,7 +35,7 @@ DECLARE_DEVICE_TYPE(VGMVIZ, vgmviz_device)
// ======================> vgmviz_device
-class vgmviz_device : public device_t, public device_mixer_interface
+class vgmviz_device : public device_t, public device_sound_interface
{
public:
// construction/destruction
@@ -86,12 +86,12 @@ protected:
static constexpr size_t NORMALIZE_BUF_SIZE = 131072;
// device-level overrides
- virtual void device_add_mconfig(machine_config &config) override;
- virtual void device_start() override;
- virtual void device_reset() override;
+ virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
+ virtual void device_start() override ATTR_COLD;
+ virtual void device_reset() override ATTR_COLD;
// device_sound_interface-level overrides
- void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
+ void sound_stream_update(sound_stream &stream) override;
void update_waveform();
void update_fft();
@@ -137,4 +137,4 @@ protected:
static const bool NEEDS_FFT[VIZ_COUNT];
};
-#endif // MAME_SOUND_VGMVIZ_H
+#endif // MAME_SOUND_VGM_VISUALIZER_H