daktilo icon indicating copy to clipboard operation
daktilo copied to clipboard

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

Open orhun opened this issue 1 year ago • 3 comments

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

  • Operating system: Arch Linux
  • Rust version: rustc 1.73.0 (cc66ad468 2023-10-03)
  • Project version: git

Additional context

I'm using pulse-pipewire

orhun avatar Nov 05 '23 11:11 orhun

Unable to reproduce using:

  • Operating system: Manjaro
  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • Project version: https://github.com/orhun/daktilo.git#5776676f

Maybe we need to handle change of audio device gracefully?

Xenira avatar Nov 05 '23 19:11 Xenira

Not sure, which audio server are you using?

orhun avatar Nov 05 '23 21:11 orhun

Currently PulseAudio

Xenira avatar Nov 06 '23 00:11 Xenira