From 1d4a7fa3a2a586f96950dc60e2501295af7766e0 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 11 Apr 2022 08:09:45 +0100 Subject: [PATCH] Fix `SoundSample::DuplicateFrom` mp3 Fixes #4392 --- Source/utils/soundsample.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/utils/soundsample.h b/Source/utils/soundsample.h index d3c27c436..62efda66d 100644 --- a/Source/utils/soundsample.h +++ b/Source/utils/soundsample.h @@ -58,11 +58,11 @@ public: int DuplicateFrom(const SoundSample &other) { #ifdef STREAM_ALL_AUDIO - return SetChunkStream(other.file_path_); + return SetChunkStream(other.file_path_, other.isMp3_); #else if (other.IsStreaming()) - return SetChunkStream(other.file_path_, isMp3_); - return SetChunk(other.file_data_, other.file_data_size_, isMp3_); + return SetChunkStream(other.file_path_, other.isMp3_); + return SetChunk(other.file_data_, other.file_data_size_, other.isMp3_); #endif }