mozilla / cubeb-coreaudio-rs

The audio backend of Firefox on Mac OS X.
ISC License
25 stars 10 forks source link

Close the stream before entering error state #158

Closed ChunMinChang closed 2 years ago

ChunMinChang commented 2 years ago

The audio stream will enter an error state once its device is unplugged. But before firing the error callback, we should stop its AudioUnits to stop getting the unnecessary data callbacks.