• 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 Audio - AudioFileStream, CFReadStreamRead and AudioQueue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue


  • Subject: Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 30 Jul 2008 22:38:42 -0700


On 30 Jul '08, at 5:16 AM, Erik Aigner wrote:

Save the audiodata continuously to a temporary file and use the AudioQueue
sample project apple provides to read from that file (while the other process
is appending data to its end).

You don't need a file for this, just an in-memory queue of packets. Using the filesystem has extra overhead, including the fact that by reading and writing the disk regularly you're preventing it from ever spinning down during playback, which can affect battery life on laptops.


It also leaks disk space as that temp file grows continuously. And depending on where you put the temp file, there could be security concerns (i.e. letting someone else who can see the file listen in on the audio.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue (From: Erik Aigner <email@hidden>)

  • Prev by Date: Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue
  • Next by Date: Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue
  • Previous by thread: Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue
  • Next by thread: Mac compatible 5.1 audio sound cards
  • Index(es):
    • Date
    • Thread