Skip to content

Updating ma_resource_manager_data source while it's playing #656

Answered by mackron
erikjalevik asked this question in Q&A
Discussion options

You must be logged in to vote

It's not very well documented, and is something I need to improve in time. Certainly you cannot seek - that's the biggest one and also the most common one I see in the wild.

There are other functions that are not thread safe, but they're the kind of things you would set up once at start up and then leave so they're not as important. These include anything that modifies the internal state of the data source, such as set_range() and set_loop_point().

ChatGPT is wrong about a few of these. set_looping() should be safe - that's using an explicit atomic operation for setting the internal flag. Also, get_length() is not safe to call from another thread while in the middle of reading in the gene…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@orcmid
Comment options

@erikjalevik
Comment options

@orcmid
Comment options

Comment options

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

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