Re: Empty file created with ExtAudioFileWrite
Re: Empty file created with ExtAudioFileWrite
- Subject: Re: Empty file created with ExtAudioFileWrite
- From: Lee Falin <email@hidden>
- Date: Mon, 17 Jul 2006 14:46:06 -0400
Ok, now I have tried the following:
unsigned int numberOfFrames = sizeof(outputData) / 4;
OSErr test2 = ExtAudioFileWrite(outRef, numberOfFrames,outputData);
Gives same empty file
I also tried:
OSErr test2 = ExtAudioFileWrite(outRef,MTAudioBufferListFrameCount
(outputData) ,outputData);
Which gives a file with data, but always the same garbled spike.
I have also tried setting the client input format via:
AudioStreamBasicDescription indesc;
indesc.mSampleRate = 44100;
indesc.mFormatID = kAudioFormatLinearPCM;
ExtAudioFileSetProperty
(outRef,kExtAudioFileProperty_ClientDataFormat,sizeof
(AudioStreamBasicDescription),&indesc);
Which doesn't seem to have an effect under either scenario. Is my
problem that I am recording the data with MTCoreAudio and then trying
to record it with the regular Core Audio API?
On Jul 17, 2006, at 2:00 PM, Doug Wyatt wrote:
On Jul 15, 2006, at 13:54 , Lee Falin wrote:
Can someone tell me what I am missing? I realize that I'm probably
doing this wrong:
Yes.
OSErr test2 = ExtAudioFileWrite(outRef,sizeof
(outputData),outputData);
But I wasn't sure whre to get the number of frames from.
You know the number of bytes, and since it's presumably PCM, you
know the number of bytes per frame...
--
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