From a1a4fc0d5186ae4aeeb1e5ea99be4b36bf645179 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 27 Sep 2015 18:02:21 -0400 Subject: BACKENDS: Add a Linux CD-ROM audio player --- backends/platform/sdl/posix/posix.cpp | 12 ++++++++++++ backends/platform/sdl/posix/posix.h | 5 +++++ 2 files changed, 17 insertions(+) (limited to 'backends/platform/sdl') diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp index 525c74a91a..3989bd0043 100644 --- a/backends/platform/sdl/posix/posix.cpp +++ b/backends/platform/sdl/posix/posix.cpp @@ -36,6 +36,11 @@ #include "backends/fs/posix/posix-fs.h" #include "backends/taskbar/unity/unity-taskbar.h" +#ifdef USE_LINUXCD +#include "backends/audiocd/linux/linux-audiocd.h" +#endif + +#include #include #include #include @@ -238,5 +243,12 @@ bool OSystem_POSIX::displayLogFile() { return WIFEXITED(status) && WEXITSTATUS(status) == 0; } +#ifdef USE_LINUXCD + +AudioCDManager *OSystem_POSIX::createAudioCDManager() { + return createLinuxAudioCDManager(); +} + +#endif #endif diff --git a/backends/platform/sdl/posix/posix.h b/backends/platform/sdl/posix/posix.h index f67515ddb3..9f69bd227f 100644 --- a/backends/platform/sdl/posix/posix.h +++ b/backends/platform/sdl/posix/posix.h @@ -59,6 +59,11 @@ protected: virtual Common::String getDefaultConfigFileName(); virtual Common::WriteStream *createLogFile(); + +#ifdef USE_LINUXCD + // Override createAudioCDManager() for Linux + virtual AudioCDManager *createAudioCDManager(); +#endif }; #endif -- cgit v1.2.3