예제 #1
0
        private void checkAlcError()
        {
            int error = AlNative.alcGetError(_device);

            if (error != AlNative.ALC_NO_ERROR)
            {
                string formatErrMsg = string.Format("OpenALc Error: {0} - {1}", Marshal.PtrToStringAuto(AlNative.alcGetString(_device, error)), AlNative.alcGetCurrentContext().ToString());
                throw new SharpAudioException(formatErrMsg);
            }
        }
예제 #2
0
        internal static void checkAlError()
        {
            int error = AlNative.alGetError();

            if (error != AlNative.AL_NO_ERROR)
            {
                string formatErrMsg = string.Format("OpenAL Error: {0} - {1}", Marshal.PtrToStringAuto(AlNative.alGetString(error)), AlNative.alcGetCurrentContext().ToString());
                throw new SharpAudioException(formatErrMsg);
            }
        }