AudioFile doesn't Honor AIFF block-align offset
AudioFile doesn't Honor AIFF block-align offset
- Subject: AudioFile doesn't Honor AIFF block-align offset
- From: Art Gillespie <email@hidden>
- Date: Fri, 1 Jul 2005 17:44:59 -0700
Given an AIFF with the SSND chunk's offset field set to something other than 0, AudioFileGetBytes returns the entire WaveFormData field with all of the initial pad bytes. Depending on the offset, the effects when played back run from undetectable to monitor-destroying.
I've worked around this by reading in the offset myself and passing it to AudioFileGetBytes' inStartingByte parameter (and subtracting the offset from the value returned by kAudioFilePropertyAudioDataByteCount).
I've posted two real-world files which demonstrate this (i.e., both have SSND.offset > 0):
What I'm wondering if there's a property I should be using instead to get the proper offset to pass to AudioFileGetBytes or if this is an oversight in the AudioFile implementation.
Best,
Art Glaresoft, Inc. 520.245.7839
|
_______________________________________________
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