From 17feb68eb5742bed38304faa2cde89251b04464c Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 11 Oct 2020 19:38:00 +0100 Subject: [PATCH] Fix audren voice sample copying --- .../main/cpp/skyline/services/audio/IAudioRenderer/voice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/services/audio/IAudioRenderer/voice.cpp b/app/src/main/cpp/skyline/services/audio/IAudioRenderer/voice.cpp index 4c4752f2..cbf69f3d 100644 --- a/app/src/main/cpp/skyline/services/audio/IAudioRenderer/voice.cpp +++ b/app/src/main/cpp/skyline/services/audio/IAudioRenderer/voice.cpp @@ -66,7 +66,7 @@ namespace skyline::service::audio::IAudioRenderer { switch (format) { case skyline::audio::AudioFormat::Int16: samples.resize(currentBuffer.size / sizeof(i16)); - buffer.copy_from(samples); + span(samples).copy_from(buffer); break; case skyline::audio::AudioFormat::ADPCM: { samples = adpcmDecoder->Decode(buffer);