2009/12/31 Alexandre Ratchov <a...@caoua.org> > On Thu, Dec 31, 2009 at 02:13:52AM +0300, Andrej Elizarov wrote: > > Trying to get fully working my shiny OpenBSD 4.6-stable. > > > > Now i had some problem with recording. > > I'm just playing around about two days and still no love. > > Can't enumerate all variants that i tried. > > > > Try to record with: > > #aucat -o file.raw > > or > > #aucat -e s16le -h raw -o file.raw > > > > could you kill aucat and then try the following: > > Does ``aucat -o file.raw'' produces a file with a plausible > size, around 4 * 44100 * recorded seconds ? >
# aucat -o file.raw # ls -l file.raw -rw-r--r-- 1 root wheel 706560 Dec 31 16:04 file.raw > If the file size is ok, does record.errors (exposed by > audioctl) stay zero (or a small integer) ? > # audioctl |grep error play.error=0 play.errors=0 record.error=0 record.errors=0 If so, does the file contain noise or just zeros? What is > the result of: > > hexdump file.raw |head > hexdump file.raw |head 0000000 ffdb ffdb ff6a ff74 ff7f ff85 ff6d ff78 0000010 ffdd ffdd 0003 0005 fffa fffa 0000 fffd 0000020 fff8 fffe fffd fffc fffc fffb fff9 fffc 0000030 fffb fffd fffc fffb fffd fffc fffe fffd 0000040 fffc fffc fffc fffb fffe fffc fffc fffc 0000050 fffe fffc fffe fffc fffc fffe fffb fffe 0000060 fffc fffb fffc fffe fffc fffd fffc fffd 0000070 fff9 fffc fffb fff9 fffd fffa fffb fffa 0000080 fffc fffc fffb fffc fffc fffb fffd fffd 0000090 fffc fffc fffe fffc fff9 fffc fffd ffff Seems it's noise. > If it contains noise, then it's a mixer or wiring problem. > > If so, could you set to ``off'' all ``inputs.xxx.mute'' > controls, set to 255 all inputs.xxx, and check that your > microphone actually works? (you should hear what you're > saying on the mic). > Already tryied it with two diferent mics, standalone and from wired headset, nothing comes out . Both mics works, tested on win powered notebook. > If it works, try one by one all possible values of > record.source until ``aucat -o file.raw'' produces > a file with sound. > > If it works, does running ``aucat -l'' changes > anything? > > > While playing > > #aucat -e s16le -h raw -i file.raw > > has no sound at all, while recording or playing. > > If in testing time i had in mplayer new Scrubs episodes (or whatever) i > > hear that video volume is slightly decreases while "aucat -o file.raw". > > > > you mean volume decreases during ``aucat -i file.raw'' (not > ``aucat -o file.raw''), right ? > yes, misspelled. If mic plugged in line input, but inputs.mic.source=mic0 still, i get: #pkill -9 aucat # aucat -o file.raw # audioctl |grep erro play.error=0 play.errors=0 record.error=0 record.errors=0 # aucat -i file.raw aucat freeze, so i must ^C # audioctl |grep erro play.error=1 play.errors=2944 record.error=0 record.errors=0 Same, if mic plugged in mic-input, and inputs.mic.source=mic1. #echo "Here is new mixerctl output" # mixerctl -v outputs.master=255,255 volume outputs.master.mute=off [ off on ] outputs.mono=255 volume outputs.mono.mute=off [ off on ] outputs.mono.source=mixerout [ mixerout mic ] outputs.hp=255,255 volume outputs.hp.mute=off [ off on ] outputs.surround=255,255 volume outputs.surround.mute=off [ off on ] outputs.center=255 volume outputs.center.mute=off [ off on ] outputs.lfe=255 volume outputs.lfe.mute=off [ off on ] inputs.spkr=255 volume inputs.spkr.mute=off [ off on ] inputs.phone=255 volume inputs.phone.mute=off [ off on ] inputs.mic=255 volume inputs.mic.mute=off [ off on ] inputs.mic.preamp=on [ off on ] inputs.mic.source=mic0 [ mic0 mic1 ] inputs.line=255,255 volume inputs.line.mute=off [ off on ] inputs.cd=255,255 volume inputs.cd.mute=off [ off on ] inputs.video=255,255 volume inputs.video.mute=off [ off on ] inputs.aux=255,255 volume inputs.aux.mute=off [ off on ] inputs.dac=255,255 volume inputs.dac.mute=off [ off on ] record.source=mic [ mic cd video aux line mixerout mixeroutmono phone ] record.volume=255,255 volume record.volume.mute=off [ off on ] outputs.extamp=off [ off on ] outputs.spdif=off [ off on ]