From 1a4ca448549c7616244010a521f6880ab70cbfe2 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 9 Nov 2009 15:49:20 +0000 Subject: [PATCH] Make parser a bit more flexible, by allowing all compiled sdl_sound formats. (thanks Alex) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3496 --- src/dos/cdrom_image.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/dos/cdrom_image.cpp b/src/dos/cdrom_image.cpp index 32bb39a1..e85a5e80 100644 --- a/src/dos/cdrom_image.cpp +++ b/src/dos/cdrom_image.cpp @@ -498,8 +498,18 @@ bool CDROM_Interface_Image::LoadCueSheet(char *cuefile) track.file = new BinaryFile(filename.c_str(), error); } #if defined(C_SDL_SOUND) + //The next if has been surpassed by the else, but leaving it in as not + //to break existing cue sheets that depend on this.(mine with OGG tracks specifying MP3 as type) else if (type == "WAVE" || type == "AIFF" || type == "MP3") { track.file = new AudioFile(filename.c_str(), error); + } else { + const Sound_DecoderInfo **i; + for (i = Sound_AvailableDecoders(); *i != NULL; i++) { + if (*(*i)->extensions == type) { + track.file = new AudioFile(filename.c_str(), error); + break; + } + } } #endif if (error) {