1
0
Fork 0

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
This commit is contained in:
Peter Veenstra 2009-11-09 15:49:20 +00:00
parent 21f8b9d18c
commit 1a4ca44854

View file

@ -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) {