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

Writing a wav in memory #85

Open
PaulDotSH opened this issue Oct 20, 2024 · 1 comment
Open

Writing a wav in memory #85

PaulDotSH opened this issue Oct 20, 2024 · 1 comment

Comments

@PaulDotSH
Copy link

Hi, I have a usecase where I would need to send the wav to a server and I would like to write it in memory and send it that way, there shouldn't be a need to touch the disk at all, is this possible with hound? Since write_sample only works on a WavWriter which requires seek which isnt implemented by BufWriter

@ruuda
Copy link
Owner

ruuda commented Oct 21, 2024

Yes this is possible, you can write to an std::io::Cursor<Vec<u8>>.

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

2 participants