From dfccad83cf0c6002cf35e204daa4d1e5e3a4233f Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 3 Sep 2022 14:08:09 -0230 Subject: [PATCH] libretro: Fix compile failure from latest Sound changes. --- src/emucore/Sound.hxx | 2 +- src/os/libretro/SoundLIBRETRO.hxx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/emucore/Sound.hxx b/src/emucore/Sound.hxx index d01a7606d..52d696209 100644 --- a/src/emucore/Sound.hxx +++ b/src/emucore/Sound.hxx @@ -103,7 +103,7 @@ class Sound @return An array of supported devices */ - const VariantList& supportedDevices() const {return myDevices;} + const VariantList& supportedDevices() const { return myDevices; } /** Play a WAV file. diff --git a/src/os/libretro/SoundLIBRETRO.hxx b/src/os/libretro/SoundLIBRETRO.hxx index d626190f1..5c576df76 100644 --- a/src/os/libretro/SoundLIBRETRO.hxx +++ b/src/os/libretro/SoundLIBRETRO.hxx @@ -151,6 +151,10 @@ class SoundLIBRETRO : public Sound bool toggleMute() override { return !myIsInitializedFlag; } string about() const override { return ""; } + bool playWav(const char*, uInt32, uInt32) override { return false; } + void stopWav() override { } + uInt32 wavSize() const override { return 0; } + private: // Indicates if the sound device was successfully initialized bool myIsInitializedFlag{false};