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: Jens Alfke <email@hidden>
- Date: Thu, 14 Feb 2008 11:14:10 -0800
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