Updated licensing information. Added more test data.

This commit is contained in:
the_fiddler 2008-01-19 15:26:16 +00:00
parent a959d1b6b8
commit 70abd051e8

View file

@ -1,4 +1,10 @@
using System;
#region --- License ---
/* Copyright (c) 2006-2008 the OpenTK team
* See license.txt for licensing details
*/
#endregion
using System;
using OpenTK.OpenAL;
using OpenTK.OpenAL.Enums;
@ -50,6 +56,33 @@ namespace Examples
context.IsCurrent = false;
Trace.Assert(!context.IsCurrent);
Trace.WriteLine("IsCurrent = true...");
context.IsCurrent = true;
Trace.Assert(!context.IsCurrent);
Trace.WriteLine("AudioContext.CurrentContext...");
Trace.Assert(AudioContext.CurrentContext == context);
#region Get Attribs
int AttribCount;
Alc.GetInteger(context.Device, AlcGetInteger.AttributesSize, sizeof(int), out AttribCount);
Console.WriteLine("AttributeSize: " + AttribCount);
if (AttribCount > 0)
{
int[] Attribs = new int[AttribCount];
Alc.GetInteger(context.Device, AlcGetInteger.AllAttributes, AttribCount, out Attribs[0]);
for (int i = 0; i < Attribs.Length; i++)
{
Console.Write(Attribs[i]);
Console.Write(" ");
}
Console.WriteLine();
}
#endregion Get Attribs
#if false
AlDevice MyDevice;
AlContext MyContext;