OSS and SoX

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

OSS and SoX

Postby scrman » Tue Feb 21, 2006 5:33 am

Trying to use rec from the SoX port, but I keep getting this:

# rec --device=/dev/dsp0 testsox.mp3
Send break (control-c) to end recording
sox: Failed reading /dev/dsp0: Invalid audio buffer size 0
#


play doesn't seem to work either. But, if I use a native FreeBSD audio driver, they both work. Google didn't help, I found a couple very old Linux related messages.

Thanks
scrman
New Member
 
Posts: 2
Joined: Tue Feb 21, 2006 5:30 am

Re: OSS and SoX

Postby dev » Tue Feb 21, 2006 7:07 am

scrman wrote:Trying to use rec from the SoX port, but I keep getting this:

# rec --device=/dev/dsp0 testsox.mp3
Send break (control-c) to end recording
sox: Failed reading /dev/dsp0: Invalid audio buffer size 0
#


play doesn't seem to work either. But, if I use a native FreeBSD audio driver, they both work. Google didn't help, I found a couple very old Linux related messages.

Thanks


use /usr/lib/oss/bin/ossrecord instead.
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Re: OSS and SoX

Postby dev » Tue Feb 21, 2006 7:07 am

dev wrote:
scrman wrote:Trying to use rec from the SoX port, but I keep getting this:

# rec --device=/dev/dsp0 testsox.mp3
Send break (control-c) to end recording
sox: Failed reading /dev/dsp0: Invalid audio buffer size 0
#


play doesn't seem to work either. But, if I use a native FreeBSD audio driver, they both work. Google didn't help, I found a couple very old Linux related messages.

Thanks


use /usr/lib/oss/bin/ossrecord and /usr/lib/oss/bin/ossplay instead.
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

OSS and Sox

Postby scrman » Tue Feb 21, 2006 3:03 pm

But I need to be able to send the result to stdout. Is ossrecord able to do that? (I didn't make that obvious in my example.)

Actually I found the solution late last night: copy /usr/local/lib/oss/include/sys/soundcard.h to /usr/include/sys/ and the reinstall SoX.

Thanks,

Denny
scrman
New Member
 
Posts: 2
Joined: Tue Feb 21, 2006 5:30 am


Return to BSD

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest