From b3bfd08c23f4026a07d6b054e68585b58fbfc6c8 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 20 Sep 2008 22:17:27 +0000 Subject: [PATCH] silence missing AL_SEC_OFFSET errors git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2720 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 9a84119c..48629a14 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -247,7 +247,9 @@ struct source { alclearerr(); alSourcef(id, AL_SEC_OFFSET, secs); - return !ALERR; + // some openal implementations seem to spam invalid enum on this + // return !ALERR; + return !alerr(false); } float secoffset() @@ -255,6 +257,9 @@ struct source alclearerr(); ALfloat s; alGetSourcef(id, AL_SEC_OFFSET, &s); + // some openal implementations seem to spam invalid enum on this + // ALERR; + alerr(false); return s; }