How to play a sound using a data pointer which holds Audio File data ? #465
Answered
by
mackron
ahmadharis4u
asked this question in
Q&A
-
I was looking under examples, but could not find anything which uses a data pointer to init/play sound. Any hint or example will be appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
mackron
May 5, 2022
Replies: 1 comment 2 replies
-
Use a decoder. The ma_decoder_init_memory(pData, dataSize, &decoderConfigOrNull, &decoder); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ahmadharis4u
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use a decoder. The
ma_decoder
object is a data source and can be plugged into any function that takes ama_data_source
parameter: