Migrate Collection Expressions

This commit is contained in:
Isaac Marovitz
2024-08-14 14:50:50 +01:00
parent 23fa5f4c9c
commit eb88fc1d06
454 changed files with 5755 additions and 5816 deletions

View File

@@ -46,7 +46,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
SampleRate = sampleRate;
BufferCount = mixBufferCount + voiceChannelCountMax;
Buffers = mixBuffer;
Commands = new List<ICommand>();
Commands = [];
MemoryManager = memoryManager;
_buffersEntryCount = Buffers.Length;
@@ -97,7 +97,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
{
if (index < 0 || index >= _buffersEntryCount)
{
return Span<float>.Empty;
return [];
}
unsafe