mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-18 01:37:04 +00:00
misc: chore: Fix numerous NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
parent
9b6b9146e2
commit
d0abbc6da3
90 changed files with 667 additions and 533 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue