Re: Recording sound...



In <voydnROGiq6I72TenZ2dnUVZ_s6dnZ2d@xxxxxxxxxxx>, on Sun, 19 Feb 2006
23:39:00 -0800, Steve Ahrendt wrote:
Steve Ackman wrote:
$ uname -a
FreeBSD wizard.dyndns.org 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Wed Jul 27
17:06:49 MDT 2005 root@xxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/CYRIXIII i386

$ dmesg | grep pcm0
pcm0: <VIA VT82C686A> port 0xd400-0xd403,0xd000-0xd003,0xcc00-0xccff irq 5
at device 7.5 on pci0
pcm0: <Realtek ALC100 AC97 Codec>

I can play CDs through the sound card fine.
I can play *.wav files from elsewhere using wavplay or
play, and they sound fine.

If I use wavrecord, and then wavplay, I hear a
slow-mo version of what I recorded.
...
Any ideas why "play" seems to work fine, but
"record" is messed up?

'cat /dev/sndstat' will show 2 different bitrates for play and record.

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <VIA VT82C686A> at io 0xcc00 irq 5 kld snd_via82c686 (1p/1r/0v
channels duplex default)

I have the same built-in sound system on my motherboard. I just added
another sound card for sound input.

With wavrec and wavplay, it just seems inexplicable
that in order to get the speed right, you have to
record at half the sample rate you play, AND if you
set -t to record for 20 seconds, you get a 10 second
record time on the clock, but the playback only covers
about 8.5 to 9 seconds of that:

$ wavrec -s 22050 -t 20 test.wav
$ wavplay -s 44100 test.wav

Sample recorded in audacity plays back in audacity
timed correctly, but an octave low!
Files recorded with 'record' playback fine in audacity.
Files recorded with 'wavrec' are slo-mo in audacity.

Record and playback using xmradio now all seem to work
fine: RAW, AU, WAV, VOC, AIFF, and MP3... I was under
the impression at the time of the OP, that one or more
of those formats failed.

At least there seems to be one solution at hand
for the microphone. Record only using 'record' then
use other programs to process that file. Weird.
Frustrating. But workable... for now, anyway.

I'm pretty sure I have a 16-bit original CreativeLabs
SB around here somewhere, and I even have an ISA slot
on this MB.
If I get really frustrated, I guess I can look for
that.

Thanks for the verification that the VIA VT82C686A
has problems.
.



Relevant Pages

  • IMS Telephone On-Hold Player 3.13
    ... The IMS plays telephone on hold messages or music using a computer ... background using the CPU idle time and the buffer on the sound card. ... play only on certain days of the week or times of day. ... feature or single line operation with a voice modem. ...
    (comp.software.shareware.announce)
  • Re: A Couple Of ALSA questions
    ... > for some niggly little problems I'm having with my sound Card? ... > wav etc.) I can't play midi files, nor audio cds directly from my CD ... You need a softsynth to play back midi files. ...
    (uk.comp.os.linux)
  • Re: Questions about WAV Files
    ... The WAV file samples should be thought of as a percentage of full scale, ... Since the sound card is designed to play up to full scale, ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: sound and internet problems on FC2
    ... > I am a very new linux user and I finally got XP and FC2 to play ... > 2) When I run the sound card test I hear the test sound out of my ... > speakers fine, but when I play a CD through gnome CD, nothing comes ... Is there an audio cable between the cdrom and the sound card? ...
    (Fedora)
  • Re: Can I change a midi file to a mp3 file, others files too
    ... So I dunno where you read that, but not on the Audacity website. ... well my pc is has a 32 bit, and it says that the sound card has to be 64 bits ... play in my website using the WMP 11. ... So to record a MIDI, you'd have to have some recording software, such ...
    (microsoft.public.windowsmedia.player)