Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hound errors out when trying to read samples from this file #81

Open
MathieuDuponchelle opened this issue Sep 10, 2024 · 1 comment
Open

Comments

@MathieuDuponchelle
Copy link

MathieuDuponchelle commented Sep 10, 2024

When trying to use hound from my application in such a way:

let data: Vec<u8> = wav_file_received_over_the_network;
let reader = match hound::WavReader::new(&data[..])

Hound fails with:

Ill-formed WAVE file: data chunk length is not a multiple of sample size

When dumping that data to file and attempting to use the rms example on it, hound fails in a similar way:

thread 'main' panicked at examples/rms.rs:31:34:
called `Result::unwrap()` on an `Err` value: IoError(Custom { kind: Other, error: "Failed to read enough bytes." })

The file plays back just fine with vlc, you can download it here: <www.mathieudu.com/misc/tmp.wav>

@MathieuDuponchelle
Copy link
Author

related to #63 I assume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant