Closed yingshaoxo closed 2 years ago
Thanks for opening this issue!
I just created:
https://github.com/ardaku/fon/blob/4e48fbed2114b8b47b4ed8d62750c29617fb2b6d/examples/mix.rs
Which mixes two audio files in RAW Stereo 32-Bit Float PCM one at 44.1k and one at 48k into a final 48k audio file (same format). It's not as simple as I had thought it would be, so there's some work to be done in the library (thanks for helping me find it!). Most likely I will add the Mixer
struct to fon in place of AudioSink
.
Let me know if this answers your question, or if you have any follow-up questions.
Since this question has been open for over a week with no activity, I'm closing it. Feel free to re-open if you think it hasn't been answered properly.
I'm using a client, it uses a package says it
Only support PCM 16bit Mono
When I receive it in rust, it becomes
Vec<u8>
I would love to merge all of those incoming audio together in real-time, what should I do?