• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AudioFile doesn't Honor AIFF block-align offset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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):

http://art.bitshiftaudio.com/download/34snare1.aif
http://art.bitshiftaudio.com/download/34snare2.aif

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

  • Follow-Ups:
    • Re: AudioFile doesn't Honor AIFF block-align offset
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: two or more data types in declaration of 'Process'
  • Next by Date: Re: AudioFile doesn't Honor AIFF block-align offset
  • Previous by thread: Re: two or more data types in declaration of 'Process'
  • Next by thread: Re: AudioFile doesn't Honor AIFF block-align offset
  • Index(es):
    • Date
    • Thread