mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 15:25:31 +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
|
||||
{
|
||||
[Example("AudioContext Test", ExampleCategory.Test, 101, false)]
|
||||
[Example("AudioContext Test", ExampleCategory.Test)]
|
||||
class TestApp
|
||||
{
|
||||
public static void GetOpenALErrors( IntPtr device )
|
||||
|
@ -27,8 +27,17 @@ namespace Examples
|
|||
|
||||
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;
|
||||
AlContext MyContext;
|
||||
|
@ -110,8 +119,7 @@ main (int argc, char **argv)
|
|||
{
|
||||
ALuint helloBuffer, helloSource;
|
||||
alutInit (&argc, argv);
|
||||
helloBuffer = alutCreateBufferHelloWorld ();
|
||||
alGenSources (1, &helloSource);
|
||||
helloBuffer = alutCreateBufferHelloWorld (); alGenSources (1, &helloSource);
|
||||
alSourcei (helloSource, AL_Buffer, helloBuffer);
|
||||
alSourcePlay (helloSource);
|
||||
alutSleep (1);
|
||||
|
|
Loading…
Reference in a new issue