On Tue, 24 Feb 2009 05:36:27 +0000 Jacob Meuser
<[email protected]> wrote:

> > My shellfu with audio devices leaves a lot to be desired, and my
> > mind reading skills are even worse. :-) 
> > 
> > Could you give me the exact commands you want to see run?
> 
> # configure mic on uvideo
> $ audioctl -f /dev/audioctl1 record.channels=1
> $ audioctl -f /dev/audioctl1 record.encoding=slinear_le
> $ audioctl -f /dev/audioctl1 record.precision=16
> $ audioctl -f /dev/audioctl1 record.rate=16000
> # record from mic
> $ cat > file < /dev/sound1
> <speak into mic>
> ^C
> # configure onboard sound card
> $ audioctl -f /dev/audioctl0 play.channels=1
> $ audioctl -f /dev/audioctl0 play.encoding=slinear_le
> $ audioctl -f /dev/audioctl0 play.precision=16
> $ audioctl -f /dev/audioctl0 play.rate=16000
> # play recording from mic on soundcard
> $ cat file > /dev/sound0

The commands as above:
http://www.designtools.org/OpenBSD/test1-44.txt
http://www.designtools.org/OpenBSD/test1-45.txt

The resulting recording files (renamed):
http://www.designtools.org/OpenBSD/test1-44
http://www.designtools.org/OpenBSD/test1-45

Output of dmesg, audioctl{0,1}, mixerctl{0,1}
http://www.designtools.org/OpenBSD/test-info44.txt
http://www.designtools.org/OpenBSD/test-info45.txt

The result on 44 is it plays correctly.
The result on 45 is it plays too fast, and has distortion.

On the bright side, this new "plays too fast" feature might get me a
part in the next chipmunks movie. :-)


-- 
J.C. Roberts

Reply via email to