Tao.OpenAl SDK Documentation

Al.alGetError Method 

Returns the current error state and then clears the error state.

[Visual Basic]
Public Shared Function alGetError() As Integer
[C#]
public static int alGetError();

Return Value

The error state.

Remarks

When an OpenAL error occurs, the error state is set and will not be changed until the error state is retrieved using alGetError. Whenever alGetError is called, the error state is cleared and the last state (the current state when the call was made) is returned. To isolate error detection to a specific portion of code, alGetError should be called before the isolated section to clear the current error state.

See Also

Al Class | Tao.OpenAl Namespace