From 30e68efac41a96e97fc9d42d0b7f9903e76ccfb5 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 30 Sep 2015 00:25:24 -0400 Subject: BACKENDS: Add a closeCD() function to the AudioCDManager --- backends/platform/dc/dc.h | 3 +++ backends/platform/ds/arm9/source/osystem_ds.h | 1 + 2 files changed, 4 insertions(+) (limited to 'backends/platform') diff --git a/backends/platform/dc/dc.h b/backends/platform/dc/dc.h index 80e484f6f8..b49080324d 100644 --- a/backends/platform/dc/dc.h +++ b/backends/platform/dc/dc.h @@ -60,6 +60,9 @@ class DCCDManager : public DefaultAudioCDManager { // Initialize the specified CD drive for audio playback. bool openCD(); + // Close the open CD drive + void closeCD() {} + // Poll cdrom status // Returns true if cd audio is playing bool pollCD(); diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h index 9b66e24b88..9f73e125c2 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.h +++ b/backends/platform/ds/arm9/source/osystem_ds.h @@ -131,6 +131,7 @@ public: // and should be replaced by an AudioCDManager subclass, // see backends/audiocd/ and common/system.h virtual bool openCD(); + virtual void closeCD() {} virtual bool pollCD(); virtual void playCD(int track, int num_loops, int start_frame, int duration); virtual void stopCD(); -- cgit v1.2.3