mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-01 11:18:22 +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();
|
CheckForAlcErrors();
|
||||||
|
|
||||||
device_name = device;
|
device_name = Alc.GetString(device_handle, AlcGetString.DeviceSpecifier);
|
||||||
|
|
||||||
// Build the attribute list
|
// Build the attribute list
|
||||||
List<int> attributes = new List<int>();
|
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_GetBufferMode = (Delegate_GetBufferMode)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("EAXGetBufferMode"), typeof(Delegate_GetBufferMode));
|
||||||
Imported_SetBufferMode = (Delegate_SetBufferMode)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("EAXSetBufferMode"), typeof(Delegate_SetBufferMode));
|
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());
|
Debug.WriteLine("X-Ram: Attempt to marshal function pointers with AL.GetProcAddress failed. " + e.ToString());
|
||||||
return;
|
return;
|
||||||
|
@ -183,3 +184,4 @@ namespace OpenTK.Audio
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue