Skip to content

How to play MemoryStream audio files on demand #1752

Answered by pschatzmann
xXxOlivierxXx asked this question in Q&A
Discussion options

You must be logged in to vote

I think the error messages are pretty speaking: this is not valid C++ syntax!

Please check the Class documentation for the methods that are available.
In addition your logic is completely flawed: if you press the butten, you will call playAudio() servarl thousend times per second as long as it is pressed!

I suggest that you read the second chapter in the Wiki or you google the topc how to debouce the input...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xXxOlivierxXx
Comment options

Answer selected by pschatzmann
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