From cd8e7a10307ac570b5afc10e0b04ab400f1e4c4b Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 3 Oct 2011 08:34:20 +0200 Subject: [PATCH] Warn for stereo files. --- simgear/sound/soundmgr_openal.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 3a0b2979..9aa4e3e9 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -613,6 +613,10 @@ bool SGSoundMgr::load(string &samplepath, void **dbuf, int *fmt, } #endif + if (format == AL_FORMAT_STEREO8 || format == AL_FORMAT_STEREO16) { + throw sg_io_exception("Warning: STEREO files are not supported for 3D audio effects: " + samplepath); + } + *dbuf = (void *)data; *fmt = (int)format; *sz = (size_t)size; -- 2.39.5