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
Both guides, AAudio and Oboe, say after the stream is closed I cannot call its methods.
With AAudio that's what I've experienced. But with Oboe, though I cannot start or stop the stream, (I can call requestStart() or requestStop() without crash,) I can still get informations by calling methods like getState().
So, was I just lucky, things still somewhere in the memory though that wouldn't have to be the case, or is there still something left that is reliable and can be used if needed?
If there is something left, would I have too free that memory at some point (if so how, delete seems strange without having used new) or can I assume it is cleared automatically at some point?
(Needless to say I'm not too experienced in programming)
The text was updated successfully, but these errors were encountered:
What we need is some proper unit tests to test this behaviour. We're working on that at the moment. Thanks for continuing to file issues - it's very helpful to us.
In AAudio it's simple: When you call close the stream it also deletes the stream, so if you try and dereference the pointer to the stream you'll get undefined behaviour ("use after free").
In Oboe, you can close the oboestream and it will not be deleted. The theory being that you can still query the stream object and its state will be "closed". We need a test to ensure this works.
Both guides, AAudio and Oboe, say after the stream is closed I cannot call its methods.
With AAudio that's what I've experienced. But with Oboe, though I cannot start or stop the stream, (I can call requestStart() or requestStop() without crash,) I can still get informations by calling methods like getState().
So, was I just lucky, things still somewhere in the memory though that wouldn't have to be the case, or is there still something left that is reliable and can be used if needed?
If there is something left, would I have too free that memory at some point (if so how, delete seems strange without having used new) or can I assume it is cleared automatically at some point?
(Needless to say I'm not too experienced in programming)
The text was updated successfully, but these errors were encountered: