mozilla / cubeb-coreaudio-rs

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

Do not reinitialize audio stream if its device isn't changed #149

Open ChunMinChang opened 2 years ago

ChunMinChang commented 2 years ago

Step to reproduce

  1. Make sure the computer has at least two input/output devices, and device S is the system default input/output device
  2. Initialize an input/output stream with device X, where X is not the system default input device.
  3. Change the system default input/output device to another device

Expect

The audio stream keeps playing without being initialized.

Actual

The audio stream is re-initialized even though nothing change for its device