Skip to content

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
Discussion options

You must be logged in to vote

Use a decoder. The ma_decoder object is a data source and can be plugged into any function that takes a ma_data_source parameter:

ma_decoder_init_memory(pData, dataSize, &decoderConfigOrNull, &decoder);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ahmadharis4u
Comment options

@mackron
Comment options

Answer selected by ahmadharis4u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants