You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WavDecoder uses hound to decode the WAV to i16 samples, but hound return a Result that errors when the target format is smaller than the bit depth of the file, or is in the wrong format (float vs int). audio-engine is currently unwrapping this Result and panicking.
audio-engine should not panic. Should at least decode the samples as i32 or f32 and convert them to i16 (and ideally support more sample formats).
The
WavDecoder
uses hound to decode the WAV to i16 samples, but hound return a Result that errors when the target format is smaller than the bit depth of the file, or is in the wrong format (float vs int).audio-engine
is currently unwrapping this Result and panicking.audio-engine
should not panic. Should at least decode the samples as i32 or f32 and convert them to i16 (and ideally support more sample formats).Relevant source code:
audio-engine/src/wav.rs
Lines 36 to 48 in b256adb
The text was updated successfully, but these errors were encountered: