mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-19 19:18:28 +00:00
Updated test to use the latest AudioContext version. Logic commented out for now.
This commit is contained in:
parent
65019c5c53
commit
44ed570bb1
|
@ -9,7 +9,7 @@ using AlDevice = System.IntPtr;
|
||||||
|
|
||||||
namespace Examples
|
namespace Examples
|
||||||
{
|
{
|
||||||
[Example("AudioContext Test", ExampleCategory.Test, 101, false)]
|
[Example("AudioContext Test", ExampleCategory.Test)]
|
||||||
class TestApp
|
class TestApp
|
||||||
{
|
{
|
||||||
public static void GetOpenALErrors( IntPtr device )
|
public static void GetOpenALErrors( IntPtr device )
|
||||||
|
@ -27,8 +27,17 @@ namespace Examples
|
||||||
|
|
||||||
public static void AlcUnitTestFunc()
|
public static void AlcUnitTestFunc()
|
||||||
{
|
{
|
||||||
AudioContext context = new AudioContext();
|
/*
|
||||||
|
AudioContext[] context = new AudioContext[]
|
||||||
|
{
|
||||||
|
new AudioContext(),
|
||||||
|
new AudioContext(),
|
||||||
|
new AudioContext("Generic Software"),
|
||||||
|
new AudioContext("Spelling mistake")
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
AudioContext audio = new AudioContext();
|
||||||
/*
|
/*
|
||||||
AlDevice MyDevice;
|
AlDevice MyDevice;
|
||||||
AlContext MyContext;
|
AlContext MyContext;
|
||||||
|
@ -110,8 +119,7 @@ main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
ALuint helloBuffer, helloSource;
|
ALuint helloBuffer, helloSource;
|
||||||
alutInit (&argc, argv);
|
alutInit (&argc, argv);
|
||||||
helloBuffer = alutCreateBufferHelloWorld ();
|
helloBuffer = alutCreateBufferHelloWorld (); alGenSources (1, &helloSource);
|
||||||
alGenSources (1, &helloSource);
|
|
||||||
alSourcei (helloSource, AL_Buffer, helloBuffer);
|
alSourcei (helloSource, AL_Buffer, helloBuffer);
|
||||||
alSourcePlay (helloSource);
|
alSourcePlay (helloSource);
|
||||||
alutSleep (1);
|
alutSleep (1);
|
||||||
|
|
Loading…
Reference in a new issue