mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 02:31:03 +02:00
misc: chore: Fix numerous NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
@@ -59,7 +59,11 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
|
||||
|
||||
for (int y = 0; y < context.SampleCount; y++)
|
||||
{
|
||||
context.MemoryManager.Write(targetOffset + (ulong)y * TargetChannelCount, PcmHelper.Saturate(inputBuffer[y]));
|
||||
if (inputBuffer != null)
|
||||
{
|
||||
context.MemoryManager.Write(targetOffset + (ulong)y * TargetChannelCount,
|
||||
PcmHelper.Saturate(inputBuffer[y]));
|
||||
}
|
||||
}
|
||||
|
||||
currentOffset += context.SampleCount * TargetChannelCount;
|
||||
|
||||
Reference in New Issue
Block a user