Closed lacc97 closed 2 years ago
Hi, what is the context of this? When would the state be something other than Closed
but source
invalid/null?
I'm not entirely sure. A game I was playing would randomly crash sometimes and this seems to fix that.
Do you have a backtrace?
Hmm this is a bit unusual, I have tried to reproduce it again right now but so far it seems to not crash anymore.
I wrote this a couple of months ago so I'm not sure what could have changed.
Just check that
ALStream::source
is not null before callingsource->sampleRate()
.