Audio buffer from the Frame #86
-
Would you have any example of how to get the audio buffer from the Frame? |
Beta Was this translation helpful? Give feedback.
Answered by
asticode
Oct 16, 2024
Replies: 1 comment 2 replies
-
For now there's none for the simple fact that retrieving an audio buffer from a frame has not yet been implemented 🫣 But I'll take a look this week and keep you posted 👍 And to make sure we're on the same page, with audio with several channels, you'll end up with one big []byte which will be the concatenation of buffer from channel 1 then buffer from channel 2, etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI I've added methods to manipulate a frame's audio buffer. You can either use SamplesCopyToBuffer directly or use
Frame.Data()
as described in the exampleLet me know whether that answer your question 👍