Updated to use latest AudioCapture / AudioContext APIs.

This commit is contained in:
the_fiddler 2009-07-19 20:56:49 +00:00
parent 3cc127ebbc
commit ce2a024c14

View file

@ -36,7 +36,6 @@ using OpenTK.Audio;
namespace Examples namespace Examples
{ {
/// <summary> /// <summary>
/// A text-based diagnosis program for OpenAL. /// A text-based diagnosis program for OpenAL.
/// The constructors will call the OpenAL commands, the Print() methods just show the information. /// The constructors will call the OpenAL commands, the Print() methods just show the information.
@ -263,7 +262,7 @@ namespace Examples
{ {
Trace.WriteLine("--- AL related errors ---"); Trace.WriteLine("--- AL related errors ---");
DeviceName = ac.CurrentDeviceName; DeviceName = ac.CurrentDevice;
ExtensionString = AL.Get(ALGetString.Extensions); ExtensionString = AL.Get(ALGetString.Extensions);
Renderer = AL.Get(ALGetString.Renderer); Renderer = AL.Get(ALGetString.Renderer);
@ -533,7 +532,7 @@ namespace Examples
return; return;
} }
IsDeviceAvailable = true; IsDeviceAvailable = true;
DeviceName = r.CurrentDeviceName; DeviceName = r.CurrentDevice;
CheckRecorderError("Alc.CaptureOpenDevice"); CheckRecorderError("Alc.CaptureOpenDevice");
r.Start(); r.Start();