[opensuse] test for good /dev/dsp (sound device)
A script I have uses "play" in a script. If /dev/dsp (or dsp0) is locked up for some reason (generally after viewing a video on youtube), then "play" fails and the rest of the script horks. The error returned says "sox: Can't open output file '/dev/dsp': No such device". Sometimes I'll get a "device busy" error. Does anyone know a way to test /dev/dsp (in advance of this failure) so that the "play" error can be avoided? tnx -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* ken <gebser@speakeasy.net> [08-18-07 07:23]:
A script I have uses "play" in a script. If /dev/dsp (or dsp0) is locked up for some reason (generally after viewing a video on youtube), then "play" fails and the rest of the script horks. The error returned says "sox: Can't open output file '/dev/dsp': No such device". Sometimes I'll get a "device busy" error. Does anyone know a way to test /dev/dsp (in advance of this failure) so that the "play" error can be avoided?
You might try lsof, "man lsof" and "lsof /dev/dsp" -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 08/18/2007 07:32 AM somebody named Patrick Shanahan wrote:
* ken <gebser@speakeasy.net> [08-18-07 07:23]:
A script I have uses "play" in a script. If /dev/dsp (or dsp0) is locked up for some reason (generally after viewing a video on youtube), then "play" fails and the rest of the script horks. The error returned says "sox: Can't open output file '/dev/dsp': No such device". Sometimes I'll get a "device busy" error. Does anyone know a way to test /dev/dsp (in advance of this failure) so that the "play" error can be avoided?
You might try lsof, "man lsof" and "lsof /dev/dsp"
Yeah, that's a good command and would probably give good info if the device were busy, but "lsof /dev/dsp" returns nothing when there's "No such device"... which makes sense. Since posting my previous (original) email, I discovered that the audio alarm (to signal an appointment) on Korganizer works. If that works, why doesn't "play"? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
ken
-
Patrick Shanahan