Constructing an AudioFileID
Constructing an AudioFileID
- Subject: Constructing an AudioFileID
- From: Geoff Hufford <email@hidden>
- Date: Wed, 30 Nov 2005 00:41:11 -0600
I am using the Public Utility class CAAudioFile to open and playback WAV
files from disk. I have some files that do not have properly formatted
headers so the call to AudioFileOpen will fail. Is there a way to manually
construct an AudioFileID that I can then pass to CAAudioFile::Wrap()? The
files I am dealing with are simple 44k stereo files, so no custom codec is
necessary. And I do not need to write these files.
I assume I will open and parse the file header myself, and then need a way
to instantiate an AudioFileID and associate it with the open file, set the
data format, file offset to the data, and the file length. I just cant find
any docs that show how.
[I understand that the ExtendedFile API that came along with Tiger could be
used, but I would like to be able to run on 10.3]
Thanks,
Geoff
_______________________________________________
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