mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 15:11:12 +00:00
Updated to use latest AudioCapture / AudioContext APIs.
This commit is contained in:
parent
3cc127ebbc
commit
ce2a024c14
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue