aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorMatthew Hoops2015-09-27 18:02:21 -0400
committerJohannes Schickel2016-03-13 13:56:28 +0100
commita1a4fc0d5186ae4aeeb1e5ea99be4b36bf645179 (patch)
tree8082a3f5b1e6bffd3977d117507f801a07b2c147 /backends/platform
parent47a82f2d1b776ec46d98715c9af3e7ec37a3d206 (diff)
downloadscummvm-rg350-a1a4fc0d5186ae4aeeb1e5ea99be4b36bf645179.tar.gz
scummvm-rg350-a1a4fc0d5186ae4aeeb1e5ea99be4b36bf645179.tar.bz2
scummvm-rg350-a1a4fc0d5186ae4aeeb1e5ea99be4b36bf645179.zip
BACKENDS: Add a Linux CD-ROM audio player
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/posix/posix.cpp12
-rw-r--r--backends/platform/sdl/posix/posix.h5
2 files changed, 17 insertions, 0 deletions
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 <errno.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
@@ -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