• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about afrecord.cpp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Question about afrecord.cpp (From: Stan Jou <email@hidden>)

  • Prev by Date: Question about afrecord.cpp
  • Next by Date: Re: Core Audio SDK 1.3.1
  • Previous by thread: Question about afrecord.cpp
  • Next by thread: Re: Core Audio SDK 1.3.1
  • Index(es):
    • Date
    • Thread