aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-06-28 01:18:19 +0200
committerGitHub <noreply@github.com>2023-06-28 01:18:19 +0200
commitfbaf62c2309f2987fa73a2022167ee3e81e31ea9 (patch)
tree9d2ef3298843b551a544acc429f2269f101af935 /src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs
parentb186ec9fc5684bd8fa831a1777f6e936b897c352 (diff)
Apply new naming rule to all projects except Vp9 (#5407)1.1.927
Diffstat (limited to 'src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs')
-rw-r--r--src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs b/src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs
index 721830c9..12e0f13f 100644
--- a/src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs
+++ b/src/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs
@@ -44,9 +44,9 @@ namespace Ryujinx.Audio.Renderer.Dsp
public static void ProcessWaveBuffers(IVirtualMemoryManager memoryManager, Span<float> outputBuffer, ref WaveBufferInformation info, Span<WaveBuffer> wavebuffers, ref VoiceUpdateState voiceState, uint targetSampleRate, int sampleCount)
{
- const int tempBufferSize = 0x3F00;
+ const int TempBufferSize = 0x3F00;
- Span<short> tempBuffer = stackalloc short[tempBufferSize];
+ Span<short> tempBuffer = stackalloc short[TempBufferSize];
float sampleRateRatio = (float)info.SourceSampleRate / targetSampleRate * info.Pitch;
@@ -60,11 +60,11 @@ namespace Ryujinx.Audio.Renderer.Dsp
int totalNeededSize = (int)MathF.Truncate(fraction + sampleRateRatio * sampleCount);
- if (totalNeededSize + pitchMaxLength <= tempBufferSize && totalNeededSize >= 0)
+ if (totalNeededSize + pitchMaxLength <= TempBufferSize && totalNeededSize >= 0)
{
int sourceSampleCountToProcess = sampleCount;
- int maxSampleCountPerIteration = Math.Min((int)MathF.Truncate((tempBufferSize - fraction) / sampleRateRatio), sampleCount);
+ int maxSampleCountPerIteration = Math.Min((int)MathF.Truncate((TempBufferSize - fraction) / sampleRateRatio), sampleCount);
bool isStarving = false;
@@ -463,4 +463,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
}
}
}
-} \ No newline at end of file
+}