![]() |
Audacity 3.2.0
|
#include <DownmixSource.h>
Public Member Functions | |
| SimpleDonwmixSource (AudioGraph::Source &downstream, size_t channels) | |
| AudioGraph::Source & | GetDownstream () const override |
Returns underlying AudioGraph::Source processed by Mixer. More... | |
| size_t | NChannels () const override |
| Number of output channels of the underlying Source. More... | |
| float | GetChannelGain (size_t channel) const override |
| Gain multiplier that should be applied to the channel. More... | |
| void | FindChannelFlags (unsigned char *channelFlags, size_t numChannels, size_t iChannel) override |
| bool | CanMakeMono () const override |
| Returns true if source channels could be combined into mono if needed. More... | |
Public Member Functions inherited from DownmixSource | |
| DownmixSource ()=default | |
| virtual | ~DownmixSource ()=default |
| virtual AudioGraph::Source & | GetDownstream () const =0 |
Returns underlying AudioGraph::Source processed by Mixer. More... | |
| virtual size_t | NChannels () const =0 |
| Number of output channels of the underlying Source. More... | |
| virtual float | GetChannelGain (size_t channel) const =0 |
| Gain multiplier that should be applied to the channel. More... | |
| virtual void | FindChannelFlags (unsigned char *channelFlags, size_t numChannels, size_t iChannel)=0 |
| virtual bool | CanMakeMono () const =0 |
| Returns true if source channels could be combined into mono if needed. More... | |
Private Attributes | |
| AudioGraph::Source & | mDownstream |
| size_t | mNChannels |
No gain applied, channels are either mapped to corresponding ones or combined into mono, depending on FindChannelFlags input
Definition at line 68 of file DownmixSource.h.
| SimpleDonwmixSource::SimpleDonwmixSource | ( | AudioGraph::Source & | downstream, |
| size_t | channels | ||
| ) |
Definition at line 67 of file DownmixSource.cpp.
|
overridevirtual |
Returns true if source channels could be combined into mono if needed.
Implements DownmixSource.
Definition at line 101 of file DownmixSource.cpp.
|
overridevirtual |
For the given iChannel fills the channelFlags array, that describes to which output it should go.
Implements DownmixSource.
Definition at line 87 of file DownmixSource.cpp.
References anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel, and mNChannels.
|
overridevirtual |
Gain multiplier that should be applied to the channel.
Implements DownmixSource.
Definition at line 82 of file DownmixSource.cpp.
|
overridevirtual |
Returns underlying AudioGraph::Source processed by Mixer.
Implements DownmixSource.
Definition at line 72 of file DownmixSource.cpp.
References mDownstream.
|
overridevirtual |
Number of output channels of the underlying Source.
Implements DownmixSource.
Definition at line 77 of file DownmixSource.cpp.
References mNChannels.
|
private |
Definition at line 70 of file DownmixSource.h.
Referenced by GetDownstream().
|
private |
Definition at line 71 of file DownmixSource.h.
Referenced by FindChannelFlags(), and NChannels().