Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: theauthor on August 25, 2006, 09:34:41 AM

Title: Possible to decode more than one stream at the same time?
Post by: theauthor on August 25, 2006, 09:34:41 AM
Hey all,

First of all, love rockbox :) Awesome stuff, thanks to everyone so far who has made it like it is.

I have an idea for a plugin that I'd like to try to create (no experience yet but always up for a challenge :)) - however, before I do, I need to know if the iPod (5G) is capable of decoding more than one audio (say mp3) stream at a time and mixing them? I'm guessing it can do this in some form, as the crossfade does this, but does the limited memory/processing power mean that this is only possible for a few seconds of audio? And if not, will it be more feasible once the second CPU is being used?

Cheers,
Tom
Title: Re: Possible to decode more than one stream at the same time?
Post by: Bagder on August 25, 2006, 09:41:25 AM
The crossfading doesn't decode both at the same time, it just has a buffer so that when it is done with the first it starts with the next and mixes them in the buffer.

We have no infrastructure within Rockbox to deal with two decodings at the same time, but I guess there's no technical reasons why it couldn't be attempted.
Title: Re: Possible to decode more than one stream at the same time?
Post by: theauthor on August 25, 2006, 09:45:47 AM
Cheers, I'll have a look at the source to the relevant parts and see what I can figure out - and keep you posted on my plan :)