Browse Source

Fix `SoundSample::DuplicateFrom` mp3

Fixes #4392
pull/4408/head
Gleb Mazovetskiy 4 years ago
parent
commit
1d4a7fa3a2
  1. 6
      Source/utils/soundsample.h

6
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
}

Loading…
Cancel
Save