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

-- 
Halim Sahin
E-Mail:                         
halim.sahin (at) t-online.de
--- audio_alsa.c.orig   2012-12-14 21:04:47.081986940 +0100
+++ audio_alsa.c        2012-12-14 21:05:18.805980761 +0100
@@ -46,7 +46,7 @@
 
 int buffer_time                = 500000;
 int period_time                = 100000;
-char *defaultdev       = "plughw:0,0";
+char *defaultdev       = "default";
 
 snd_pcm_hw_params_t *alsa_hwparams;
 snd_pcm_sw_params_t *alsa_swparams;

Reply via email to