Closed kinetiknz closed 1 year ago
The lifetime of the stream is guaranteed to outlive any items running on the serial queue. This is ensured by stream destroy flushing the serial queue before freeing stream resources.
The Arc<Mutex<&mut AudioUnitStream>> seems to be unnecessary.
Arc<Mutex<&mut AudioUnitStream>>
This PR is just the second commit, but is based on https://github.com/mozilla/cubeb-coreaudio-rs/pull/182
The lifetime of the stream is guaranteed to outlive any items running on the serial queue. This is ensured by stream destroy flushing the serial queue before freeing stream resources.
The
Arc<Mutex<&mut AudioUnitStream>>
seems to be unnecessary.This PR is just the second commit, but is based on https://github.com/mozilla/cubeb-coreaudio-rs/pull/182