mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 05:51:06 +00:00
This commit is contained in:
parent
a76d283b70
commit
76ef90be35
|
@ -203,6 +203,7 @@ namespace OpenTK.OpenAL
|
||||||
Console.WriteLine("Extension unknown.");
|
Console.WriteLine("Extension unknown.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Console.WriteLine("ALC_EXT_EFX found.");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -219,6 +220,7 @@ namespace OpenTK.OpenAL
|
||||||
Console.WriteLine("Failed to marshal Effect functions. " + e.ToString());
|
Console.WriteLine("Failed to marshal Effect functions. " + e.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Console.WriteLine("Effect functions appear to be ok.");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -235,22 +237,7 @@ namespace OpenTK.OpenAL
|
||||||
Console.WriteLine("Failed to marshal Filter functions. " + e.ToString());
|
Console.WriteLine("Failed to marshal Filter functions. " + e.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Console.WriteLine("Filter functions appear to be ok.");
|
||||||
try
|
|
||||||
{
|
|
||||||
Imported_alGenFilters = (Delegate_alGenFilters)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("alGenFilters"), typeof(Delegate_alGenFilters));
|
|
||||||
Imported_alDeleteFilters = (Delegate_alDeleteFilters)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("alFilters"), typeof(Delegate_alDeleteFilters));
|
|
||||||
Imported_alIsFilter = (Delegate_alIsFilter)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("alIsFilter"), typeof(Delegate_alIsFilter));
|
|
||||||
Imported_alFilteri = (Delegate_alFilteri)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("alFilteri"), typeof(Delegate_alFilteri));
|
|
||||||
Imported_alFilterf = (Delegate_alFilterf)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("alFilterf"), typeof(Delegate_alFilterf));
|
|
||||||
Imported_alGetFilteri = (Delegate_alGetFilteri)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("alGetFilteri"), typeof(Delegate_alGetFilteri));
|
|
||||||
Imported_alGetFilterf = (Delegate_alGetFilterf)Marshal.GetDelegateForFunctionPointer(AL.GetProcAddress("alGetFilterf"), typeof(Delegate_alGetFilterf));
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Console.WriteLine("Failed to marshal Filter functions. " + e.ToString());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -267,6 +254,7 @@ namespace OpenTK.OpenAL
|
||||||
Console.WriteLine("Failed to marshal AuxiliaryEffectSlot functions. " + e.ToString());
|
Console.WriteLine("Failed to marshal AuxiliaryEffectSlot functions. " + e.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Console.WriteLine("Auxiliary Effect Slot functions appear to be ok.");
|
||||||
|
|
||||||
// not early return, everything went fine.
|
// not early return, everything went fine.
|
||||||
_valid = true;
|
_valid = true;
|
||||||
|
|
Loading…
Reference in a new issue