• 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
Re: Streaming to AudioQueue without having random access to data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Streaming to AudioQueue without having random access to data?
      • From: William Stewart <email@hidden>
References: 
 >Streaming to AudioQueue without having random access to data? (From: Jens Alfke <email@hidden>)

  • Prev by Date: NSSound thread priority
  • Next by Date: Re: AudioFile data format falsely indicating VBR on CBR files
  • Previous by thread: Streaming to AudioQueue without having random access to data?
  • Next by thread: Re: Streaming to AudioQueue without having random access to data?
  • Index(es):
    • Date
    • Thread