From 44ed570bb1f0b3cab73a35034795e3e447c2c8eb Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 18 Jan 2008 14:00:28 +0000 Subject: [PATCH] Updated test to use the latest AudioContext version. Logic commented out for now. --- Source/Examples/OpenAL/TestContext.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Source/Examples/OpenAL/TestContext.cs b/Source/Examples/OpenAL/TestContext.cs index c203f972..0204138d 100644 --- a/Source/Examples/OpenAL/TestContext.cs +++ b/Source/Examples/OpenAL/TestContext.cs @@ -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);