aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio.Backends.SoundIo
diff options
context:
space:
mode:
authorjhorv <38920027+jhorv@users.noreply.github.com>2024-06-15 17:00:13 -0400
committerGitHub <noreply@github.com>2024-06-15 23:00:13 +0200
commit5a878ae9afe73d12bd344c139ee1b485335af3ff (patch)
tree2fb6775c10e567fb93da37ccb48b3dd0fc111be2 /src/Ryujinx.Audio.Backends.SoundIo
parent1828bc949e23c11aba728867376db69bd9e81674 (diff)
replace `ByteMemoryPool` use with `MemoryOwner<byte>` and `SpanOwner<byte>` (#6911)
Diffstat (limited to 'src/Ryujinx.Audio.Backends.SoundIo')
-rw-r--r--src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceSession.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceSession.cs b/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceSession.cs
index 4011a121..e9cc6a8e 100644
--- a/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceSession.cs
+++ b/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceSession.cs
@@ -122,9 +122,9 @@ namespace Ryujinx.Audio.Backends.SoundIo
int channelCount = areas.Length;
- using IMemoryOwner<byte> samplesOwner = ByteMemoryPool.Rent(frameCount * bytesPerFrame);
+ using SpanOwner<byte> samplesOwner = SpanOwner<byte>.Rent(frameCount * bytesPerFrame);
- Span<byte> samples = samplesOwner.Memory.Span;
+ Span<byte> samples = samplesOwner.Span;
_ringBuffer.Read(samples, 0, samples.Length);