Skip to content
Discussion options

You must be logged in to vote

I would suggest to use a queue with objects that contain the input parameters of your function to drive your sound task.
You can e.g use my QueueFreeRTOS class for this.
So play(float frequency, float volume, int durationMs) would fill this queue and the task would just call your playV method.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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