diff options
author | 2020-03-28 02:24:20 +0100 | |
---|---|---|
committer | 2020-03-28 02:25:05 +0100 | |
commit | b6ce59f77aa729dbecea7111ff30d6b4f55c22b3 (patch) | |
tree | 04e146253e82f38a05f489244b18f33e1e5b2e8d /src/devices/sound/vgm_visualizer.h | |
parent | 4139da509729a51c51ba034ecb745910a02a8727 (diff) |
-vgmplay: Added multiple spectrogram visualization modes. [Ryan Holtz]
Diffstat (limited to 'src/devices/sound/vgm_visualizer.h')
-rw-r--r-- | src/devices/sound/vgm_visualizer.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/devices/sound/vgm_visualizer.h b/src/devices/sound/vgm_visualizer.h index 7e782a59bcc..60b54d0cde9 100644 --- a/src/devices/sound/vgm_visualizer.h +++ b/src/devices/sound/vgm_visualizer.h @@ -46,8 +46,20 @@ public: vgmviz_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); virtual ~vgmviz_device(); + void cycle_spectrogram(); + protected: - static constexpr int FFT_LENGTH = 1024; + enum spec_mode : int + { + SPEC_RAW, + SPEC_BAR4, + SPEC_BAR8, + SPEC_BAR16, + + SPEC_COUNT + }; + + static constexpr int FFT_LENGTH = 512; // device-level overrides virtual void device_add_mconfig(machine_config &config) override; @@ -83,7 +95,7 @@ protected: float m_curr_levels[2]; float m_curr_peaks[2]; float m_window[FFT_LENGTH]; - float m_power; + spec_mode m_spec_mode; }; #endif // MAME_SOUND_VGMVIZ_H |