#695931 madplay fails to play - device or resource busy

Package:
madplay
Source:
madplay
Description:
MPEG audio player in fixed point
Submitter:
Halim Sahin
Date:
2017-12-28 19:09:07 UTC
Severity:
important
#695931#5
Date:
2012-12-14 14:10:54 UTC
From:
To:
Madplay doesn't play anything.
madplay file.mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et
al.
audio: Device or resource busy

#695931#10
Date:
2012-12-14 17:26:06 UTC
From:
To:
Maybe the audio device has been opened by something else?

Note that madplay directly talks alsa by default.


Kurt

#695931#15
Date:
2012-12-14 19:35:34 UTC
From:
To:
Hello,
The attached patch fixes the reported issue.
Note: it works but only for native alsa output.
It fails when trying to use pulseaudio's alsa plugin.
The problem was opening plughw:0,0 alsa device.
If other apps are using the device at the same time, madplay can't use
that device.
The patch changes it to use default device which works here.
Regards
Halim