Re: ExtAudioFile question
Re: ExtAudioFile question
- Subject: Re: ExtAudioFile question
- From: Jens Alfke <email@hidden>
- Date: Thu, 22 Sep 2005 19:45:20 -0700
On Sep 22, 2005, at 7:20 PM, john wrote: I'm using an the ExtAudioFile API - I create a new file, add to it, the file grows, but I can't figure out how to read the data from the file without calling ExtAudioFileDispose first.
I'm no expert, but my understanding is that you can open an ExtAudioFile handle either for reading, or for writing, but not both at once. are there any plans to add some calls to be able to work with a newly recorded file without having to dispose of it and then recreate it again everytime data is added to it? Or am I just missing something?
It's possible you could open two ExtAudioFiles on the same file, one for reading and one for writing, but file-system permissions might prevent you, or you might have trouble with caching (the read side not detecting changes made by the write side).
Or you could avoid ExtAudioFile and store raw frames in a temporary file using regular filesystem APIs. (If the files aren't going to be too huge, an easy way to do this is to create a file in /tmp, memory-map it, unlink it, then point your audio buffers into that address space.) Then you can use ExtAudioFile just to convert to/from standard file formats.
--Jens |
_______________________________________________
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