mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-23 19:31:13 +00:00
* Audio/*: Cleaned up whitespace.
* AudioContext.cs: Get device name specifier once a device is opened.
This commit is contained in:
parent
a3f29ab963
commit
8bb40e5a07
|
@ -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>();
|
||||
|
|
|
@ -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
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue