orhun / daktilo

Turn your keyboard into a typewriter! 📇
https://daktilo.cli.rs/
Apache License 2.0
1.03k stars 18 forks source link

Failed to run multiple presets due to stream error: `The requested device is no longer available` #69

Open orhun opened 11 months ago

orhun commented 11 months ago

Describe the bug

I am getting the following error while trying to run multiple presets at the same time:

Stream error: `The requested device is no longer available. For example, it has been unplugged.`

It comes from https://docs.rs/rodio/latest/rodio/enum.StreamError.html

To reproduce

daktilo -p default -p musicbox -p drumkit

Expected behavior

Successful run.

Software information

Additional context

I'm using pulse-pipewire

Xenira commented 11 months ago

Unable to reproduce using:

Maybe we need to handle change of audio device gracefully?

orhun commented 11 months ago

Not sure, which audio server are you using?

Xenira commented 11 months ago

Currently PulseAudio