diff options
Diffstat (limited to 'Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs')
| -rw-r--r-- | Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs index f34e50e4..751b41e7 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs @@ -17,6 +17,7 @@ using Ryujinx.Audio.Renderer.Common; using System; +using System.Runtime.CompilerServices; namespace Ryujinx.Audio.Renderer.Dsp.Command { @@ -55,6 +56,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command LastSampleIndex = lastSampleIndex; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] private float ProcessMixRamp(Span<float> outputBuffer, ReadOnlySpan<float> inputBuffer, int sampleCount) { float ramp = (Volume1 - Volume0) / sampleCount; |
