本文整理匯總了Java中org.lwjgl.openal.AL10.AL_INVALID_OPERATION屬性的典型用法代碼示例。如果您正苦於以下問題:Java AL10.AL_INVALID_OPERATION屬性的具體用法?Java AL10.AL_INVALID_OPERATION怎麽用?Java AL10.AL_INVALID_OPERATION使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.lwjgl.openal.AL10
的用法示例。
在下文中一共展示了AL10.AL_INVALID_OPERATION屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: checkErrorLog
protected static boolean checkErrorLog(String errorMessage)
{
int error = AL10.alGetError();
String errorName;
if (error != 0)
{
switch(error)
{
case AL10.AL_INVALID_NAME: errorName = "AL_INVALID_NAME"; break;
case AL10.AL_INVALID_ENUM: errorName = "AL_INVALID_ENUM"; break;
case AL10.AL_INVALID_VALUE: errorName = "AL_INVALID_VALUE"; break;
case AL10.AL_INVALID_OPERATION: errorName = "AL_INVALID_OPERATION"; break;
case AL10.AL_OUT_OF_MEMORY: errorName = "AL_OUT_OF_MEMORY"; break;
default: errorName = Integer.toString(error); break;
}
System.out.println(logPrefix + " [ERROR]: " + errorMessage + " OpenAL error " + errorName);
return true;
}
else
{
return false;
}
}