mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 13:31:51 +01:00
Fix audren voice sample copying
This commit is contained in:
parent
745ea19f42
commit
17feb68eb5
@ -66,7 +66,7 @@ namespace skyline::service::audio::IAudioRenderer {
|
|||||||
switch (format) {
|
switch (format) {
|
||||||
case skyline::audio::AudioFormat::Int16:
|
case skyline::audio::AudioFormat::Int16:
|
||||||
samples.resize(currentBuffer.size / sizeof(i16));
|
samples.resize(currentBuffer.size / sizeof(i16));
|
||||||
buffer.copy_from(samples);
|
span(samples).copy_from(buffer);
|
||||||
break;
|
break;
|
||||||
case skyline::audio::AudioFormat::ADPCM: {
|
case skyline::audio::AudioFormat::ADPCM: {
|
||||||
samples = adpcmDecoder->Decode(buffer);
|
samples = adpcmDecoder->Decode(buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user