When you select the same audio device in macOS settings and in CPAL, the feedback example is working.
When you select another audio device in macOS settings then in CPAL, the feedback example is crashing.
Reproduce:
Working:
- Select "MacBook Air Speakers" in macOS as output.
- Start Feedback Example:
cargo run --release --example feedback -- -i "BlackHole 2ch" -o "MacBook Air Speakers"
Not Working:
- Select "BlackHole 2ch" in macOS as output.
- Start Feedback Example:
cargo run --release --example feedback -- -i "BlackHole 2ch" -o "MacBook Air Speakers"
- Crashes with:
thread 'main' panicked at 'failed to find output device'