Warn for stereo files.

This commit is contained in:
Erik Hofman 2011-10-03 08:34:20 +02:00
parent 8e92c5d985
commit cd8e7a1030

View File

@ -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;