From dc0ede3c90717ed25de0695c555b861f06344f18 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 17 Sep 2020 00:45:29 -0700 Subject: sound: Improved view interfaces to match usage patterns * read/write_stream_views now have an internal index * get/put/add/fill/copy now implicitly use and advance this index * new method reset() can (re)set the internal index * new method done() checks if index is past the end * new method remaining() indicates how many samples remain * get_indexed/put_indexed/etc available for random access * updated all consumers to new interfaces --- src/devices/sound/vgm_visualizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices/sound/vgm_visualizer.cpp') diff --git a/src/devices/sound/vgm_visualizer.cpp b/src/devices/sound/vgm_visualizer.cpp index c1f438f2b2c..46471760328 100644 --- a/src/devices/sound/vgm_visualizer.cpp +++ b/src/devices/sound/vgm_visualizer.cpp @@ -289,12 +289,12 @@ void vgmviz_device::sound_stream_update(sound_stream &stream, std::vector