Re: Streaming Audio - AudioFileStream, CFReadStreamRead and AudioQueue
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