Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR plugins - RFC - audio handling



Andreas Schultz wrote:
> 
> On Thursday 23 May 2002 18:07, Klaus Schmidinger wrote:
> > Andreas Schultz wrote:
> 
> [...]
> 
> > Ok, I'll then make it so that the cDevice (an abstract "thing" that can
> > replay video and audio data, but by itself doesn't know how - the actual
> > action will be implemented by classes derived from cDevice, one of them
> > being cDvbDevice) will have a PlayVideo() and a PlayAudio() function. A
> > player shall feed video data into the PlayVideo() function, and (any kind
> > of!) audio data into the PlayAudio() function. PlayAudio() will simply
> > distribute the audio data to any registered audio device (which can be
> > implemented via plugins).
> 
> great, thanks
> 
> > The question is: If _all_ audio data is presented to every audio device,
> > will the various devices be able to filter out exactly the kind of data
> > they can handle? If not, then we would need several PlayAudio() functions
> > (or a PlayAudio() with a controlling parameter) for the various types if
> > audio data, and the player would have to decide where to send each chunk of
> > audio data. Personally I'd prefer the first method.
> 
> Me thinks the first method is better.

Ok, I'm glad you think so, too.

Would it be feasible to require each chunk of data given to the PlayAudio()
function to be "complete" (i.e., for instance, an entire PES packet) and "unique"
(meaning that it contains only _one_ type of audio data). That way an audio
plugin would only have to look at the first few bytes to be able to tell
whether that chunk is of any meaning to it (and would not have to parse the
entire data block).

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________




Home | Main Index | Thread Index