libretro: Fix compile error with recent sound code changes.

This commit is contained in:
Stephen Anthony 2020-07-27 10:53:43 -02:30
parent 2622fdf080
commit f3503d22d9
3 changed files with 13 additions and 2 deletions

View File

@ -58,7 +58,6 @@ SoundSDL2::SoundSDL2(OSystem& osystem, AudioSettings& audioSettings)
queryHardware(myDevices);
SDL_zero(myHardwareSpec);
if(!openDevice())
return;

View File

@ -120,4 +120,9 @@ void SoundLIBRETRO::dequeue(Int16* stream, uInt32* samples)
*samples = outIndex / 2;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void SoundLIBRETRO::queryHardware(VariantList& devices)
{
}
#endif // SOUND_SUPPORT

View File

@ -104,7 +104,6 @@ class SoundLIBRETRO : public Sound
*/
string about() const override { return ""; }
public:
/**
Empties the playback buffer.
@ -113,6 +112,14 @@ class SoundLIBRETRO : public Sound
*/
void dequeue(Int16* stream, uInt32* samples);
protected:
/**
This method is called to query the audio devices.
@param devices List of device names
*/
void queryHardware(VariantList& devices) override;
private:
// Indicates if the sound device was successfully initialized
bool myIsInitializedFlag;