• 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: New Sample: ExtAudioFile/Recording
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Sample: ExtAudioFile/Recording


  • Subject: Re: New Sample: ExtAudioFile/Recording
  • From: Doug Wyatt <email@hidden>
  • Date: Fri, 21 Jul 2006 12:49:30 -0700


On Jul 20, 2006, at 22:43 , tahome izwah wrote:
One more question if you don't mind: how do I get the example to
record in WAV file format? If I change line 139 in
DCAudioFileRecorder.cpp from kAudioFileM4AType to kAudioFileWAVEType
(or any other format) I get the error

[Session started at 2006-07-21 07:28:53 +0200.]
ExtAudioFileCreateNew FAILED! 1718449215 'fmt?'
Recording stoped.

I'm certain that I am missing something related to the corresponding
AudioStreamBasicDescription but I don't know where to look, can you
help?

The data format you're supplying for the file is incompatible with the file format. For WAVE you probably want a little-endian 8, 16, or 24-bit linear PCM format.


See my earlier message today for examples of how to determine the compatible data formats for a given file format.

--
Doug Wyatt
Core Audio, Apple

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: New Sample: ExtAudioFile/Recording
      • From: "tahome izwah" <email@hidden>
References: 
 >New Sample: ExtAudioFile/Recording (From: Kevin Avila <email@hidden>)
 >Re: New Sample: ExtAudioFile/Recording (From: "tahome izwah" <email@hidden>)

  • Prev by Date: Re: Audio data format and file type - how to match?
  • Next by Date: RecordAudioToFile Sample Code
  • Previous by thread: Re: New Sample: ExtAudioFile/Recording
  • Next by thread: Re: New Sample: ExtAudioFile/Recording
  • Index(es):
    • Date
    • Thread