Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4119 - sox won't play through alsa. oss works fine

Attached to Project: Arch Linux
Opened by Paul Seropian (paranoos) - Monday, 06 March 2006, 20:58 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 14 April 2007, 18:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dale Blount (dale)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I'm trying to get sox to play sine waves through alsa to help me tune my guitar. (synth sine create %0 generates a 440Hz sine wave)

$ sox -w -s -r 48000 -t nul /dev/zero -t alsa /dev/snd/pcmC0D0p synth sine create %0
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM /dev/snd/pcmC0D0p
sox: Failed writing /dev/snd/pcmC0D0p: cannot open audio device

If I modprobe snd-pcm-oss and use '-t ossdsp /dev/dsp' it works, but I prefer to disable OSS. I searched Google and all I found was a German Debian mailing list. It seems their solution was 'apt-get -b source sox' which I think means they compiled the package themselves. I used makepkg to compile sox myself and installed the package, it didn't fix it :(

'sox wavefile.wav -t alsa /dev/snd/pcmC0D0p' should play a wavefile (or even an mp3) through alsa. I get the same error here.
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 14 April 2007, 18:58 GMT
Reason for closing:  Fixed
Comment by Dale Blount (dale) - Tuesday, 23 May 2006, 13:41 GMT
please try sox-12.18.1-1, just released.
Comment by Paul Seropian (paranoos) - Wednesday, 24 May 2006, 01:38 GMT
upgraded, same problem persists.
Comment by Roman Kyrylych (Romashka) - Saturday, 07 April 2007, 16:49 GMT
status?
Comment by Paul Seropian (paranoos) - Saturday, 07 April 2007, 17:08 GMT
it was working for a time, but now it's cropped up again.
i'm telling it to create unsigned word samples, and alsa is complaining that it doesn't support signed byte.
Comment by Dale Blount (dale) - Saturday, 14 April 2007, 17:54 GMT
Try "sox filename.wav -t alsa -w -s default"

Works for me using the just released 13.0.0 package.
Comment by Paul Seropian (paranoos) - Saturday, 14 April 2007, 18:47 GMT
ahh, the "default" fixed it... i could not play anything when telling alsa to use /dev/snd/pcmC0D0c or hw:0. i wonder why...

anyhow, thanks!

Loading...