mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
misc: chore: Fix numerous NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
1 parent
a90db3464d
commit
d2a532f971
90 files changed
+667
-533
No files matched your search
@@ -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