#include <iso_synth_link_conversion_strategy.h>
Inherits iso::synth::Strategy.
Inherited by iso::synth::ChannelConversionStrategy, iso::synth::FrameConversionStrategy, and iso::synth::RateConversionStrategy.
Inheritance diagram for iso::synth::LinkConversionStrategy:
Public Member Functions | |
LinkConversionStrategy (unsigned int pFrameCount, unsigned int pChannelCount, Link *pLink) | |
parameter based constructor | |
virtual | ~LinkConversionStrategy () |
destructor | |
LinkConversionStrategy * | nextStrategy () |
returns next conversion strategy | |
void | setNextStrategy (LinkConversionStrategy *pStrategy) |
set next conversion strategy | |
virtual void | process (Buffer *pBuffer)=0 |
process buffer | |
virtual String | info (bool pPropagate=false) const =0 |
obtain textual link conversion strategy information | |
Protected Member Functions | |
LinkConversionStrategy () | |
Protected Attributes | |
Buffer * | mBuffer |
internal backup buffer | |
LinkConversionStrategy * | mStrategy |
next conversion strategy | |
Link * | mLink |
link, this process strategy is part of |
conversions and process calls
Created by Daniel Bisig on 6/7/06.
LinkConversionStrategy::LinkConversionStrategy | ( | unsigned int | pFrameCount, | |
unsigned int | pChannelCount, | |||
Link * | pLink | |||
) |
parameter based constructor
pFrameCount | number of frames of internal backup buffer | |
pChannelCount | numbder of channels of internal backup buffer | |
pLink | link, this link conversion strategy is part of |
LinkConversionStrategy::~LinkConversionStrategy | ( | ) | [virtual] |
destructor
LinkConversionStrategy::LinkConversionStrategy | ( | ) | [protected] |
LinkConversionStrategy * LinkConversionStrategy::nextStrategy | ( | ) |
returns next conversion strategy
void LinkConversionStrategy::setNextStrategy | ( | LinkConversionStrategy * | pStrategy | ) |
set next conversion strategy
pStrategy | next conversion strategy |
virtual void iso::synth::LinkConversionStrategy::process | ( | Buffer * | pBuffer | ) | [pure virtual] |
process buffer
pBuffer | buffer to operate on |
Implements iso::synth::Strategy.
Implemented in iso::synth::ChannelConversionStrategy, iso::synth::FrameCopySamplesStrategy, iso::synth::RateRepeatSamplesStrategy, and iso::synth::RateSkipSamplesStrategy.
virtual String iso::synth::LinkConversionStrategy::info | ( | bool | pPropagate = false |
) | const [pure virtual] |
obtain textual link conversion strategy information
pPropagate | if true, the unit calls the info method of the next conversion strategy |
Implements iso::synth::Strategy.
Implemented in iso::synth::ChannelMixCombineStrategy, iso::synth::ChannelMixDirectStrategy, iso::synth::ChannelMixDownCombineStrategy, iso::synth::ChannelMixDownDropStrategy, iso::synth::ChannelMixUpDistributeStrategy, iso::synth::ChannelMixUpIgnoreStrategy, iso::synth::FrameConversionStrategy, iso::synth::FrameCopySamplesStrategy, iso::synth::RateConversionStrategy, iso::synth::RateRepeatSamplesStrategy, and iso::synth::RateSkipSamplesStrategy.
Buffer* iso::synth::LinkConversionStrategy::mBuffer [protected] |
internal backup buffer
next conversion strategy
conversion strategies can be linked in series, each one calling the process function of the next conversion strategy
Link* iso::synth::LinkConversionStrategy::mLink [protected] |
link, this process strategy is part of