Re: Question about afrecord.cpp
Re: Question about afrecord.cpp
- Subject: Re: Question about afrecord.cpp
- From: Mark Cookson <email@hidden>
- Date: Thu, 8 Jul 2004 16:26:23 -0500
On Jul 8, 2004, at 3:34 PM, Stan Jou wrote:
Here comes the problem:
In CoreAudio/Services/AudioFileTools/afrecord.cpp,
the sampling rate is set (?) in a line
dataFormat.mSampleRate = 44100.; // later get this from the
hardware
When I changed 44100 to 16000,
afrecord compiles but seems not working.
It only outputs a 4096 byte file.
Does the built in hardware on your computer actually support 16000? I
suspect that it does not and that you're getting an error when you
attempt to record in an unsupported format. You can verify the
supported formats in Audio MIDI Setup or IORegistry Explorer
(preferred).
You'll need to use an audio unit to convert the sample rate to 16k from
whatever the hardware supports.
--
Mark Cookson
M-Audio
225 Locust St.
Hudson, WI 54016
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.