ios - AudioToolbox to play nsdata in download -
i'm trying play audio audiotoolbox in xcode. search documentation little. want play nsdata while download internet. link: http://www.cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html , apple developer documentation can't understand have cast nsdata (that not complete because in download) in data audiotoolbox can read. apple documentation understand strutture must allocate:
typedef struct myaqstruct { audiofileid maudiofile; audiostreambasicdescription mdataformat; audioqueueref mqueue; audioqueuebufferref mbuffers[knumberbuffers]; sint64 mcurrentpacket; uint32 mnumpacketstoread; audiostreampacketdescription *mpacketdescs; bool mdone; }myaqstruct;
and callback function have call play, of variabile in struct rapresent data? maybe think audiostreambasicdescription. or audiofileid? , how can cast nsdata type?
Comments
Post a Comment