You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the bool suspended in LevelMeterSource would make a great use of an atomic boolean. This way (and I think it is intended that way?) the UI would be able to suspend a meter source since it nows when it is not showing the level meter. The audio thread doesn't even have to call measureBlock if it wants to suspend the level meter.
Let me know what you think / if I should create a pull request.
The text was updated successfully, but these errors were encountered:
You are right, it should be atomic. I am just thinking about it though, maybe it shouldn't be a flag but a ref counter how many UI objects are looking at it. There could be any number of LevelMeters looking at it and if one is destroyed it must not reset the flag if other meters still look at it.
I will add some counter...
Thank you for the suggestion.
I think the bool suspended in LevelMeterSource would make a great use of an atomic boolean. This way (and I think it is intended that way?) the UI would be able to suspend a meter source since it nows when it is not showing the level meter. The audio thread doesn't even have to call measureBlock if it wants to suspend the level meter.
Let me know what you think / if I should create a pull request.
The text was updated successfully, but these errors were encountered: