diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-08-11 18:07:37 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 18:07:37 -0300 |
commit | a5ff0024fb33964c802e1712e5b11a52390603e7 (patch) | |
tree | fdc0b7781541215cd728b8e0288b729f73dbad88 /Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs | |
parent | f9661a54d21c3020783d14fd9935bb7b741a6915 (diff) |
Rename ToSpan to AsSpan (#3556)1.1.211
Diffstat (limited to 'Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs')
-rw-r--r-- | Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs b/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs index 004b5aa2..006d6dd3 100644 --- a/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs +++ b/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs @@ -202,7 +202,7 @@ namespace Ryujinx.Audio.Renderer.Server.Voice Pitch = 0.0f; Volume = 0.0f; PreviousVolume = 0.0f; - BiquadFilters.ToSpan().Fill(new BiquadFilterParameter()); + BiquadFilters.AsSpan().Fill(new BiquadFilterParameter()); WaveBuffersCount = 0; WaveBuffersIndex = 0; MixId = Constants.UnusedMixId; @@ -288,7 +288,7 @@ namespace Ryujinx.Audio.Renderer.Server.Voice ChannelsCount = parameter.ChannelCount; Pitch = parameter.Pitch; Volume = parameter.Volume; - parameter.BiquadFilters.ToSpan().CopyTo(BiquadFilters.ToSpan()); + parameter.BiquadFilters.AsSpan().CopyTo(BiquadFilters.AsSpan()); WaveBuffersCount = parameter.WaveBuffersCount; WaveBuffersIndex = parameter.WaveBuffersIndex; @@ -308,7 +308,7 @@ namespace Ryujinx.Audio.Renderer.Server.Voice SplitterId = Constants.UnusedSplitterId; } - parameter.ChannelResourceIds.ToSpan().CopyTo(ChannelResourceIds.ToSpan()); + parameter.ChannelResourceIds.AsSpan().CopyTo(ChannelResourceIds.AsSpan()); DecodingBehaviour behaviour = DecodingBehaviour.Default; @@ -638,7 +638,7 @@ namespace Ryujinx.Audio.Renderer.Server.Voice voiceUpdateState.Offset = 0; voiceUpdateState.PlayedSampleCount = 0; - voiceUpdateState.Pitch.ToSpan().Fill(0); + voiceUpdateState.Pitch.AsSpan().Fill(0); voiceUpdateState.Fraction = 0; voiceUpdateState.LoopContext = new Dsp.State.AdpcmLoopContext(); } @@ -650,7 +650,7 @@ namespace Ryujinx.Audio.Renderer.Server.Voice case Types.PlayState.Stopped: case Types.PlayState.Paused: - foreach (ref WaveBuffer wavebuffer in WaveBuffers.ToSpan()) + foreach (ref WaveBuffer wavebuffer in WaveBuffers.AsSpan()) { wavebuffer.BufferAddressInfo.GetReference(true); wavebuffer.ContextAddressInfo.GetReference(true); |