mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-24 02:31:07 +00:00
Renamed EfxExtension to EffectsExtension.
This commit is contained in:
parent
b0cbe16585
commit
54bcf92e5e
|
@ -15,8 +15,7 @@ using OpenTK.Math;
|
||||||
|
|
||||||
namespace OpenTK.Audio
|
namespace OpenTK.Audio
|
||||||
{
|
{
|
||||||
|
public partial class EffectsExtension
|
||||||
public partial class EfxExtension
|
|
||||||
{
|
{
|
||||||
#region Helpers
|
#region Helpers
|
||||||
|
|
||||||
|
@ -1132,13 +1131,16 @@ namespace OpenTK.Audio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public EfxExtension()
|
public EffectsExtension()
|
||||||
{
|
{
|
||||||
_valid = false;
|
_valid = false;
|
||||||
|
|
||||||
if (Alc.IsExtensionPresent(Alc.GetContextsDevice(Alc.GetCurrentContext()), "ALC_EXT_EFX") == false)
|
if (AudioContext.CurrentContext == null)
|
||||||
|
throw new InvalidOperationException("AL.LoadAll() needs a current AudioContext.");
|
||||||
|
|
||||||
|
if (Alc.IsExtensionPresent(AudioContext.CurrentContext.Device, "ALC_EXT_EFX") == false)
|
||||||
{
|
{
|
||||||
Trace.WriteLine("Efx Extension ALC_EXT_EFX is unknown to the Device.");
|
Debug.WriteLine("EFX Extension (ALC_EXT_EFX) is not known to device: {0}.", AudioContext.CurrentContext.Device.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Console.WriteLine("ALC_EXT_EFX found. Efx can be used.");
|
// Console.WriteLine("ALC_EXT_EFX found. Efx can be used.");
|
||||||
|
@ -1157,7 +1159,7 @@ namespace OpenTK.Audio
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Trace.WriteLine("Failed to marshal Effect functions. " + e.ToString());
|
Debug.WriteLine("Failed to marshal Effect functions. " + e.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Console.WriteLine("Effect functions appear to be ok.");
|
// Console.WriteLine("Effect functions appear to be ok.");
|
||||||
|
@ -1174,7 +1176,7 @@ namespace OpenTK.Audio
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Trace.WriteLine("Failed to marshal Filter functions. " + e.ToString());
|
Debug.WriteLine("Failed to marshal Filter functions. " + e.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Console.WriteLine("Filter functions appear to be ok.");
|
// Console.WriteLine("Filter functions appear to be ok.");
|
||||||
|
@ -1191,7 +1193,7 @@ namespace OpenTK.Audio
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Trace.WriteLine("Failed to marshal AuxiliaryEffectSlot functions. " + e.ToString());
|
Debug.WriteLine("Failed to marshal AuxiliaryEffectSlot functions. " + e.ToString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Console.WriteLine("Auxiliary Effect Slot functions appear to be ok.");
|
// Console.WriteLine("Auxiliary Effect Slot functions appear to be ok.");
|
||||||
|
@ -1202,5 +1204,4 @@ namespace OpenTK.Audio
|
||||||
|
|
||||||
#endregion Constructor / Extension Loading
|
#endregion Constructor / Extension Loading
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,6 @@ using System;
|
||||||
|
|
||||||
namespace OpenTK.Audio
|
namespace OpenTK.Audio
|
||||||
{
|
{
|
||||||
|
|
||||||
#region Effect
|
#region Effect
|
||||||
|
|
||||||
///<summary>A list of valid 32-Bits Float Effect/GetEffect parameters</summary>
|
///<summary>A list of valid 32-Bits Float Effect/GetEffect parameters</summary>
|
||||||
|
@ -359,5 +358,4 @@ namespace OpenTK.Audio
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion Filter Object
|
#endregion Filter Object
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,7 @@ using OpenTK.Math;
|
||||||
|
|
||||||
namespace OpenTK.Audio
|
namespace OpenTK.Audio
|
||||||
{
|
{
|
||||||
|
public partial class EffectsExtension
|
||||||
public partial class EfxExtension
|
|
||||||
{
|
{
|
||||||
// TODO: CLS compliance.
|
// TODO: CLS compliance.
|
||||||
[CLSCompliant(false)]
|
[CLSCompliant(false)]
|
||||||
|
|
Loading…
Reference in a new issue