twilio / audioswitch

An Android audio management library for real-time communication apps.
Apache License 2.0
160 stars 49 forks source link

Enumerate devices first before starting connection listeners #142

Closed ocarevs closed 1 year ago

ocarevs commented 1 year ago

Description

enumerateDevices() method call from wired and bluetooth connection receivers could overlap with enumerateDevices() call when AudioSwitch is started. This lead to two potential issues, especially when AudioSwitch was stoped and then restarted:

Breakdown

Validation

Additional Notes

Related reported issues: https://github.com/twilio/audioswitch/issues/114 https://github.com/twilio/audioswitch/issues/120

Submission Checklist