Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2009 10:44:44 -0600
From:      Kernel Jake <kerneljake@hotmail.com>
To:        <freebsd-multimedia@freebsd.org>
Subject:   sox in freebsd 8.0
Message-ID:  <COL116-W9D3DE0A24F5E5C528018ED1840@phx.gbl>

next in thread | raw e-mail | index | archive | help

I recently upgraded from 6.2 to 8.0-RELEASE.  In 6.2 I recorded audio using=
 the following command:

$ /usr/local/bin/sox -c2 -w -r32000 -tossdsp /dev/audio -t wav -r 44100 -w =
-c 2 -

The sox option -w has changed to -2 since then=2C but the new sox command d=
oesn't work in 8.0.  I get the following error:

$ /usr/local/bin/sox -c2 -2 -r32000 -tossdsp /dev/audio -t wav -r 44100 -2 =
-c 2 -
/usr/local/bin/sox WARN wav: Length in output .wav header will be wrong sin=
ce can't seek to fix it
Input File     : '/dev/audio' (ossdsp)
Channels       : 2
Sample Rate    : 32000
Precision      : 16-bit
Sample Encoding: 16-bit Signed Integer PCM

In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0 =
  =20
In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0 =
  =20
Done.
/usr/local/bin/sox FAIL sox: `/dev/audio' lsx_readbuf: Invalid argument
RIFF$??WAVEfmt D??data??

I tried to use a simpler sox command and received the same error:
$ /usr/local/bin/sox -t ossdsp /dev/dsp -t .wav -r 44100 -c 2 -

In /var/log/messages I see:
canary kernel: pcm0: chn_read(): pcm0:record:dsp0.r1: record interrupt time=
out=2C channel dead

> uname -a
FreeBSD canary 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Sat Dec 19 01:19:14 CST =
2009 jake@canary:/usr/obj/usr/src/sys/CANARY  i386
 		 	   		 =20
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?COL116-W9D3DE0A24F5E5C528018ED1840>