Re: Streaming to AudioQueue without having random access to data?
Re: Streaming to AudioQueue without having random access to data?
- Subject: Re: Streaming to AudioQueue without having random access to data?
- From: William Stewart <email@hidden>
- Date: Thu, 14 Feb 2008 11:57:27 -0800
We did a presentation of using AudioFileStream and AudioQueue at last
year's WWDC if you have those slides (the code was also on the WWDC
disks). I think that sample code can still be downloaded from the ADR
web site (look for AudioFileStream) or as a tech note
If you can't find it, let me know and I"ll see what I can track down
On Feb 14, 2008, at 11:14 AM, Jens Alfke wrote:
I hate it when I find a (potential?) answer to a question right
after I ask it... :-/
I grepped "AudioStreamPacketDescription" in the AudioToolbox
headers, and found AudioFileStream.h, a header I had never noticed
before. This looks like what I want — I feed it bytes in sequence,
as read from a socket, and it calls me back with packet descriptions.
It looks like I'll need to do some buffering of my own, since I
can't control when the data arrives on the socket or when the
AudioQueue asks me for data. Does anyone have advice on how to do
this, or (even better) sample code?
—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
_______________________________________________
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