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

            if (error != AlNative.ALC_NO_ERROR)
            {
                throw new SharpAudioException("OpenAL Error: " + error);
            }
        }
예제 #2
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);
            }
        }