Ejemplo n.º 1
0
        static string[] QueryDevices(string label, int type)
        {
            // Clear error bit
            Al.alGetError();

            var devices = Alc.alcGetStringv(IntPtr.Zero, type);

            if (Al.alGetError() != Al.AL_NO_ERROR)
            {
                Log.Write("sound", "Failed to query OpenAL device list using {0}", label);
                return(new string[] {});
            }

            return(devices);
        }