Fix audren voice sample copying

This commit is contained in:
Billy Laws 2020-10-11 19:38:00 +01:00 committed by ◱ PixelyIon
parent 745ea19f42
commit 17feb68eb5

View File

@ -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);