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'm setting up a audioDescription with 44100, but connecting to a bluetooth speaker with a sampleRate of 8800. When I try stopping the audio engine, audioUnitStreamFormatChanged gets called (not sure why) which then calls updateSampleRate causing the session to be rebuilt due to a change in sampleRate and audio starts again.
Adding if ( !_started) return; to the top of updateSampleRate fixes this, but I'm not sure it's the ideal location for the check as I'm not sure why updateSampleRate is being called on stop to begin with.
The text was updated successfully, but these errors were encountered:
I'm setting up a audioDescription with 44100, but connecting to a bluetooth speaker with a sampleRate of 8800. When I try stopping the audio engine,
audioUnitStreamFormatChanged
gets called (not sure why) which then callsupdateSampleRate
causing the session to be rebuilt due to a change in sampleRate and audio starts again.Adding
if ( !_started) return;
to the top ofupdateSampleRate
fixes this, but I'm not sure it's the ideal location for the check as I'm not sure whyupdateSampleRate
is being called onstop
to begin with.The text was updated successfully, but these errors were encountered: