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
AudioFileStream not returning PacketSizeUpperBound
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
AudioFileStream not returning PacketSizeUpperBound
Subject
:
AudioFileStream not returning PacketSizeUpperBound
From: Jens Alfke <
email@hidden
>
Date: Fri, 15 Feb 2008 15:46:11 -0800
I'm now using AudioFileStream to feed incoming streamed MP3 audio into an AudioQueue. But I'm running into a problem: the kAudioFileStreamProperty_PacketSizeUpperBound* isn't available. It doesn't get reported to my property callback, and if I try to get the property value after I get the 'redy' property, I get back an error -4 (which is not one of the errors listed in the header file; MacErrors.h says it's 'unimpErr'.)
However, if I read the _exact same file_ using the regular AudioFile API, the corresponding property (kAudioFilePropertyPacketSizeUpperBound) does exist and has a reasonable value (1448).
This is causing trouble for me because my AudioQueue code (based on aqplay.cpp) uses the max packet size to help derive the buffer size to use ... when streaming, it ends up dividing by zero and crashing.
Any ideas? I can hardcode a value to use if the property's missing, but that's a kludge, and this kind of looks like a bug in the framework.
—Jens
* Note that I don't mean kAudioFileStreamProperty_MaximumPacketSize. In other words, I'm asking for the "theoretical maximum packet size" for the file format, not the actual largest packet in the file (which a streaming API wouldn't know until it finished reading the whole file.) _______________________________________________
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: AudioFileStream not returning PacketSizeUpperBound
From:
William Stewart <email@hidden>
Prev by Date:
Re: Bank Name
Next by Date:
FilterDemo + Logic
Previous by thread:
NSSound thread priority
Next by thread:
Re: AudioFileStream not returning PacketSizeUpperBound
Index(es):
Date
Thread