summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/command/data_source/pcm_int16.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-09-10 19:40:25 +0200
committerGitHub <noreply@github.com>2023-09-10 19:40:25 +0200
commit3b7d112c8372ee3a1a79d824e4154cf137ddcdf9 (patch)
treed613cc9eee4e3a6730dd311a89c7a8a19fa1af7c /src/audio_core/renderer/command/data_source/pcm_int16.cpp
parentMerge pull request #11470 from GPUCode/bundle-vvl (diff)
parentFix data source version 1 command looping (diff)
downloadyuzu-3b7d112c8372ee3a1a79d824e4154cf137ddcdf9.tar
yuzu-3b7d112c8372ee3a1a79d824e4154cf137ddcdf9.tar.gz
yuzu-3b7d112c8372ee3a1a79d824e4154cf137ddcdf9.tar.bz2
yuzu-3b7d112c8372ee3a1a79d824e4154cf137ddcdf9.tar.lz
yuzu-3b7d112c8372ee3a1a79d824e4154cf137ddcdf9.tar.xz
yuzu-3b7d112c8372ee3a1a79d824e4154cf137ddcdf9.tar.zst
yuzu-3b7d112c8372ee3a1a79d824e4154cf137ddcdf9.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/renderer/command/data_source/pcm_int16.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio_core/renderer/command/data_source/pcm_int16.cpp b/src/audio_core/renderer/command/data_source/pcm_int16.cpp
index 649993068..c89a5aaac 100644
--- a/src/audio_core/renderer/command/data_source/pcm_int16.cpp
+++ b/src/audio_core/renderer/command/data_source/pcm_int16.cpp
@@ -23,6 +23,12 @@ void PcmInt16DataSourceVersion1Command::Process(
auto out_buffer = processor.mix_buffers.subspan(output_index * processor.sample_count,
processor.sample_count);
+ for (auto& wave_buffer : wave_buffers) {
+ wave_buffer.loop_start_offset = wave_buffer.start_offset;
+ wave_buffer.loop_end_offset = wave_buffer.end_offset;
+ wave_buffer.loop_count = wave_buffer.loop ? -1 : 0;
+ }
+
DecodeFromWaveBuffersArgs args{
.sample_format{SampleFormat::PcmInt16},
.output{out_buffer},