[nas] audiooss buffer underrun
jonshan at eden.rutgers.edu
jonshan at eden.rutgers.edu
Mon Aug 13 18:42:58 MDT 2007
> On Fri, 10 Aug 2007 jonshan at eden.rutgers.edu wrote:
>> node:/dev# play ~/sounds/sounds/fanfare.wav -t ossdsp /dev/dsp
>> play stio: Can't open input file `/dev/dsp': No such file or directory
I'm not too familiar with strace. All I changed was /etc/ld.so.preload to
include /usr/lib/libaudiooss.so.1. Same result.
node1-2:~# grep open 2logfile
open("/usr/lib/libaudiooss.so.1", O_RDONLY) = 3
/* all libraries open with result 3 */
open("/dev/dsp", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
write(2, "Can\'t open input file `/dev/dsp\'"..., 59) = 59
>> node:/dev# sox -t wav ~/sounds/sounds/fanfare.wav -t ossdsp /dev/dsp
>> sox stio: Failed writing /dev/dsp: Unable to reset OSS driver. Possibly
>> accessing an invalid file/device
node1-2:~# grep open soxlog
open("/usr/lib/libaudiooss.so.1", O_RDONLY) = 3
/* all libraries open with result 3 */
open("/root/sounds/sounds/fanfare.wav", O_RDONLY|O_LARGEFILE) = 3
open("/dev/dsp", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
> Hmm... I seem to remember Erik having some issues originally in
> properly intercepting open() calls for /dev/dsp et. al.
>
> I don't suppose stracing it provides any clues? This will take some
> debugging. I could try it here, though I'm using slackware. What
> linux are you using?
I'm using Debian.
Jonathan Shan
More information about the Nas
mailing list