Re: New Sample: ExtAudioFile/Recording
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