I have set up a script, which executes an mplayer command, in order to play audio in crontab. It will be executed in a special set time, but this script can not play audio when ncmpcpp (a front-end for mpd, aka. Music Player Daemon) is playing music. But this script can play audio when I execute it from terminal like this:
sh bin/alarm.sh
I try to get output from either crontab or script, but to no avail. I guess some setting in ncmpcpp or mplayer is wrong, or mpd is using same daemon with crontab's daemon.
- Anyway, I can not find out the solution. If you know, please help me.
ao=pulsein~/.mplayer/config. but set mpd on pulseaudio is so complex. But it this splution is good. – stardiviner Nov 21 '11 at 04:41mplayerjust waits untilmpdis paused, then plays the sound. – Exeleration-G Dec 28 '15 at 09:06mplayerinstance was running - turns outmplayerhogged the sound device. Setting it topulseallowed them to share it perfectly. – juod May 06 '21 at 05:02