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
This commit is contained in:
Lee Salzman
2008-09-20 22:17:27 +00:00
parent 0c9af4991b
commit b3bfd08c23
+6 -1
View File
@@ -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;
}