* Audio/*: Cleaned up whitespace.

* AudioContext.cs: Get device name specifier once a device is opened.
This commit is contained in:
the_fiddler 2009-03-25 18:41:50 +00:00
parent a3f29ab963
commit 8bb40e5a07
4 changed files with 117 additions and 115 deletions

View file

@ -267,7 +267,7 @@ namespace OpenTK.Audio
CheckForAlcErrors();
device_name = device;
device_name = Alc.GetString(device_handle, AlcGetString.DeviceSpecifier);
// Build the attribute list
List<int> attributes = new List<int>();

View file

@ -86,7 +86,8 @@ namespace OpenTK.Audio
{
Imported_GetBufferMode = (Delegate_GetBufferMode)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("EAXGetBufferMode"), typeof(Delegate_GetBufferMode));
Imported_SetBufferMode = (Delegate_SetBufferMode)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("EAXSetBufferMode"), typeof(Delegate_SetBufferMode));
} catch ( Exception e )
}
catch (Exception e)
{
Debug.WriteLine("X-Ram: Attempt to marshal function pointers with AL.GetProcAddress failed. " + e.ToString());
return;
@ -183,3 +184,4 @@ namespace OpenTK.Audio
}
}