Leaning about audio formats #276
Unanswered
erwanvivien
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey 👋
First of all, awesome crate, it is really powerful, I love it.
Second of all, I am kind of an audio noob, I'm trying to learn audio.
I was checking the source code of symphonia-play and wanted to see how you were writing the audio samples to the host machine ring-buffer (which I assume is provided by the OS for you to write on)
I came upon this code: https://github.com/pdeljanov/Symphonia/blob/a5ac0ec/symphonia-core/src/audio.rs#L819-L864 (copy_interleaved_*)
I wanted to know why the interleaving is necessary and just to be sure, when you create the audio_output using
output::try_open(spec, duration).unwrap()
those n_channels count are use for the interleaved decoding behind the scene, right?As a more general question, where can I find good resources to learn how audio works in general and learn some audio algos like BPM solver for example
Again, thanks a lot for the library 💜
Beta Was this translation helpful? Give feedback.
All reactions