[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recording sound and rat port



Hi,

What is the proper way to record sound in OpenBSD (2.8)?

I have a cmpci-supported card. I can play sound, but I seem to have a
problem recording. The rec command from sox creates what appears to be
a silent audio file of roughly the right duration. Just doing a

  cat /dev/audio > x

and then

  cat x > /dev/audio

works, but the output is extremely noisy. When I do

  mixerctl -w outputs.line.mute=off

I can hear the sound through my speakers correctly.

I've included the output of mixerctl -a as it appears when the above
problem occurs.

Am I missing something simple?

The last time I rebuilt OpenBSD was a few days after the 2.8 release
date, if that's relevant.


Actually, I'm doing this in order to make the mbone/rat port work. When
it starts, and I click on "Get audio", nothing happens. Both volume
sliders are at 0 and the mute buttons are grayed.


Please cc me on replies.

Thanks,
Alexander

---

Output of mixerctl -a:

outputs.master=248,248
inputs.fmsynth=248,248
inputs.fmsynth.mute=off
inputs.fmsynth.swap=off
inputs.cd=128,128
inputs.cd.mute=off
inputs.cd.swap=off
outputs.cd.mute=on
outputs.dac=248,248
inputs.mic=248
inputs.mic.mute=off
inputs.mic.swap=off
outputs.mic.mute=off
inputs.line=248
inputs.line.mute=off
inputs.line.swap=off
outputs.line.mute=on
record.source=mic
equalization.treble=128,128
equalization.bass=128,128
inputs.pc_speaker=128,128
inputs.input=192,192
outputs.output=192,192
inputs.agc=off

---

Sound card:

cmpci0 at pci0 dev 12 function 0 "C-Media Electronics Inc. CMI8338A Audio" rev 0x10: irq 9
audio0 at cmpci0



Visit your host, monkey.org