Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Daemon stops if device is busy #22

Open
ik666 opened this issue Oct 7, 2014 · 2 comments
Open

Daemon stops if device is busy #22

ik666 opened this issue Oct 7, 2014 · 2 comments
Labels

Comments

@ik666
Copy link

ik666 commented Oct 7, 2014

Background:

I have MPD and SPOP running on the same server maschine. Both daemons are using ALSA, sharing the hardware audio device.

Working Secenario:

  • play a song with MPD
  • stop playing with MPD
  • start playing a song with SPOP (play command)
  • stop playing with SPOP (stop command)
  • start playing with MPD

Not working scenario:

  • play a song with MPD (while song is still playing)
  • start playing a song with SPOP (play command)
  • SPOP daemon quits (see log)

Requirement / possible solution:

  • if an audio device is busy, the SPOP daemon should not stop
  • if an audio device is busy, the SPOP daemon should inform the caller in the response message about the issue (to unblock the audio device prior to calling a SPOP play function).

SPOP-Log:

Okt 05 08:00:10 music spopd[19810]: ao_alsa ERROR: Unable to open ALSA device 'default' for playback => Device or resource busy
Okt 05 08:00:10 music spopd[19810]: 2014-10-05 08:00:10 [ERR ] Error while opening libao device: Cannot open the device
Okt 05 08:00:10 music systemd[1]: spop.service: main process exited, code=killed, status=5/TRAP
Okt 05 08:00:10 music systemd[1]: Unit spop.service entered failed state.

@Schnouki
Copy link
Owner

Schnouki commented Oct 9, 2014

Agreed, an audio device error should not cause the demon to exit.

@Schnouki Schnouki added the bug label Oct 9, 2014
@ning-yu
Copy link

ning-yu commented Apr 5, 2015

I'd like to add +1 for this issue :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants