We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f35d90 commit 820196dCopy full SHA for 820196d
core/src/backend/audio/mixer.rs
@@ -193,6 +193,16 @@ impl AudioMixer {
193
data: Cursor<ArcAsRef>,
194
) -> Result<Box<dyn SeekableDecoder>, Error> {
195
let decoder: Box<dyn SeekableDecoder> = match format.compression {
196
+ AudioCompression::UncompressedUnknownEndian => {
197
+ // Cross fingers that it's little endian.
198
+ log::warn!("make_decoder: PCM sound is unknown endian; assuming little endian");
199
+ Box::new(PcmDecoder::new(
200
+ data,
201
+ format.is_stereo,
202
+ format.sample_rate,
203
+ format.is_16_bit,
204
+ ))
205
+ }
206
AudioCompression::Uncompressed => Box::new(PcmDecoder::new(
207
data,
208
format.is_stereo,
0 commit comments