Mailing List archive

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

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



Karlheinz Pischke wrote:
> 
> Hi Klaus,
> 
> why do you insist on having "normal" and "special" audio handling ?
> 
> Wouldn't it be a better approach (from design point of view) to use just
> - cVideoDevice
> - cAudioDevice
> and do the exception handling (like Mono, Stereo, DD, AC3, DTS or
> whatever)
> afterwards ?
> This would make the design and API cleaner and better structured,
> wouldn't it ?
> 
> You have already implemented (up to 1.0.x) the "normal" audio handling.
> In
> your new design you also have to only implement the "normal" audio
> handling
> as a kind of reference design for the audio handling class/plugin.

The thing is that a "normal" recording simply consists of a video and
an audio data stream. That's pretty much 99% of what VDR handles, so I'd
like to keep that simple. As it is right now, the video and audio data is
in one multiplexed stream and can be sent to the driver as such, no need
to take it apart.

With DD and friends it's different, since these are "extra" streams.
They will be sent to a function that distributes them to whatever
audio plugins are registered. Each of the plugins can then extract
whatever data it recognizes and play it.

The main work I'm currently faced with is to take the current cDvbApi,
cReplayBuffer and cReplayControl apart and restructure them to have
an abstract interface, so that plugins can hook into them.

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