Re: About how many channels of 16/44.1 PCM audio should I be able to stream from disk on an iPhone 4?
Re: About how many channels of 16/44.1 PCM audio should I be able to stream from disk on an iPhone 4?
- Subject: Re: About how many channels of 16/44.1 PCM audio should I be able to stream from disk on an iPhone 4?
- From: Jack Nutting <email@hidden>
- Date: Tue, 08 May 2012 23:28:46 +0200
Just wanted to +1 this on principle. I just started using fileplayer
(today!) and haven't myself implemented the whole buffer-filling
alternative myself, and thank goodness for iOS 5 and fileplayer so I
don't have to! In general, Apple tests these components pretty
thoroughly, especially since they're eating their own dogfood, using
audio units for Logic, GarageBand, etc. I feel safe in assuming (and
experience confirms this so far) that what Apple provides with the
fileplayer unit is a solid piece of work that would take many days of
effort for me to match if I were to do the buffering on my own. Unless
your streaming needs are extremely unusual, the general case that
fileplayer implements is probably hard to beat.
On Tue, May 8, 2012 at 6:48 PM, Barry Duggan <email@hidden> wrote:
> If you want it to "just work" id say go and use the fileplayer audiounit.
> If you want to get you hands more dirty implement your own on demand sample
> fetching and buffer filling (producer / consumer).
>
> Fileplayer audiounit seems to totally take care of setting in memory buffers
> and sequencing the reading of files in time and efficiently.
>
> I think the bottleneck might have less to do with the size of the files and
> more to do with how many simultaneous reads from disk you are trying to do.
> The fileplayer handles this nicely. It wont try to overburden the disk. If a
> file has to wait a very long time for its next buffer to be read the unit
> seems to gracefully resize audio buffers accordingly.
>
> Agreed that benchmarking and testing disk read speeds could be quite an
> involved exercise so dont be to concerned about bottlenecks until you
> actually have a problem, which if you use file player unit, you probably
> wont (based on my experience of 20 mp3's).
>
> Disclaimer : My analysis of how the fileplayer unit works internally is
> purely an educated guess based on extensive use of it.... But, I can say for
> sure that it deffinately works great for mixing/playing multiple audio
> files.
--
// Jack Nutting
// email@hidden
// http://nuthole.com
// http://learncocoa.org
_______________________________________________
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