Re: Creating audio files
Re: Creating audio files
- Subject: Re: Creating audio files
- From: William Stewart <email@hidden>
- Date: Mon, 9 Feb 2009 10:57:16 -0800
You open an existing file, rather than trying to create a new one. You
can open a file for read/write so you should be able to append to it
On Feb 9, 2009, at 2:35 AM, Mahaboob wrote:
I'm using a table view to show all the audio files. When I'm
selecting one
file among these and click on the record button, the newly recording
sound
should be attached to the end of the selected file.
I'm referring the SpeakeHere example of apple.
But in the documentation, I found a method that is also using in my
application:
OSStatus AudioFileCreateWithURL (
CFURLRef inFileRef,
AudioFileTypeID inFileType,
const AudioStreamBasicDescription *inFormat,
UInt32 inFlags,
AudioFileID *outAudioFile);
inFlags:
Relevant flags for creating or opening the file. If
kAudioFileFlags_EraseFile is set, it erases an existing file. If the
flag is
not set, the function fails fails if the URL is an existing file.
So is there any way to create audio file without erasing the
existing file?
Thanks in advance
Mahaboob
_______________________________________________
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
_______________________________________________
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