On Sat, 12 Mar 2011 16:07:17 +0100 (CET) "Carlos E. R." <robin.listas@telefonica.net> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday, 2011-03-11 at 23:20 -0600, Malcolm wrote:
Tried here and it works both from CLI and cron Gnome DE. The man page for play talks about setting the AUDIODRIVER environment variable, maybe you need to add that.
Interesting... but it doesn't work here. In the CLI I get:
cer@Telcontar:~> AUDIODRIVER=oss play /tmp/time.wav play FAIL formats: can't open output file `/dev/dsp': Device or resource busy
which is true. With driver "alsa" it succeeds. But inside cron it doesn't. If the driver is oss I get the above error, if it is alsa I get:
ALSA lib pcm_dmix.c:1010:(snd_pcm_dmix_open) unable to open slave play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
which is the original error I was getting.
Which openSUSE version are you using? Mine is 11.2, and I'm also using gnome.
- -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux)
iEYEARECAAYFAk17jCwACgkQtTMYHG2NR9XmOACfZX/XIS/uT5U9BDY40/oWXIEs jRQAoIeNg24WwZDYt6X9Guu2C4ub/wd9 =kRsG -----END PGP SIGNATURE----- Hi 11.4 here, wonder if it's something in the config files. Do you have a ~/.asoundrc file or maybe one of the ones it /etc which won't be called via cron as there is no environment.
-- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 11.4 (x86_64) Kernel 2.6.37.1-1.2-desktop up 1 day 17:16, 5 users, load average: 0.36, 0.19, 0.31 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org