Audacity 3.2.0
|
#include <MockPlayableSequence.h>
Public Member Functions | |
MockPlayableSequence (int sampleRate, size_t numChannels) | |
bool | DoGet (size_t iChannel, size_t nBuffers, const samplePtr buffers[], sampleFormat format, sampleCount start, size_t len, bool backwards, fillFormat fill=FillFormat::fillZero, bool mayThrow=true, sampleCount *pNumWithinClips=nullptr) const override |
size_t | NChannels () const override |
A constant property. More... | |
float | GetChannelVolume (int channel) const override |
double | GetStartTime () const override |
double | GetEndTime () const override |
double | GetRate () const override |
sampleFormat | WidestEffectiveFormat () const override |
bool | HasTrivialEnvelope () const override |
void | GetEnvelopeValues (double *buffer, size_t bufferLen, double t0, bool backwards) const override |
AudioGraph::ChannelType | GetChannelType () const override |
Classify this channel. More... | |
const ChannelGroup * | FindChannelGroup () const override |
Find associated ChannelGroup if any. More... | |
bool | GetSolo () const override |
May vary asynchronously. More... | |
bool | GetMute () const override |
May vary asynchronously. More... | |
Public Member Functions inherited from PlayableSequence | |
~PlayableSequence () override | |
virtual const ChannelGroup * | FindChannelGroup () const =0 |
Find associated ChannelGroup if any. More... | |
virtual bool | GetSolo () const =0 |
May vary asynchronously. More... | |
virtual bool | GetMute () const =0 |
May vary asynchronously. More... | |
Public Member Functions inherited from WideSampleSequence | |
virtual | ~WideSampleSequence () |
virtual size_t | NChannels () const =0 |
A constant property. More... | |
virtual float | GetChannelVolume (int channel) const =0 |
bool | GetFloats (size_t iChannel, size_t nBuffers, float *const buffers[], sampleCount start, size_t len, bool backwards=false, fillFormat fill=FillFormat::fillZero, bool mayThrow=true, sampleCount *pNumWithinClips=nullptr) const |
virtual bool | DoGet (size_t iChannel, size_t nBuffers, const samplePtr buffers[], sampleFormat format, sampleCount start, size_t len, bool backward, fillFormat fill=FillFormat::fillZero, bool mayThrow=true, sampleCount *pNumWithinClips=nullptr) const =0 |
virtual double | GetStartTime () const =0 |
virtual double | GetEndTime () const =0 |
virtual double | GetRate () const =0 |
sampleCount | TimeToLongSamples (double t0) const |
double | LongSamplesToTime (sampleCount pos) const |
double | SnapToSample (double t) const |
virtual sampleFormat | WidestEffectiveFormat () const =0 |
virtual bool | HasTrivialEnvelope () const =0 |
virtual void | GetEnvelopeValues (double *buffer, size_t bufferLen, double t0, bool backwards) const =0 |
Public Member Functions inherited from AudioGraph::Channel | |
virtual | ~Channel () |
virtual ChannelType | GetChannelType () const =0 |
Classify this channel. More... | |
Public Attributes | |
const int | sampleRate |
const size_t | numChannels |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 15 of file MockPlayableSequence.h.
|
inline |
Definition at line 18 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Retrieve samples of one of the channels from a sequence in a specified format
format | sample format of the destination buffer |
backward | retrieves samples from start (inclusive) to start + len if false, else from start (exclusive) to start - len in reverse order. |
Implements WideSampleSequence.
Definition at line 25 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Find associated ChannelGroup if any.
Implements PlayableSequence.
Definition at line 82 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Classify this channel.
Implements AudioGraph::Channel.
Definition at line 76 of file MockPlayableSequence.h.
References AudioGraph::MonoChannel.
|
inlineoverridevirtual |
Extra gain factor to apply to a channel when mixing, may change asynchronously
Implements WideSampleSequence.
Definition at line 39 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Implements WideSampleSequence.
Definition at line 49 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Fetch envelope values corresponding to uniformly separated sample times starting at the given time
backwards | if true, fetch values in reverse order, from t0 to t0 - bufferLen / rate |
Implements WideSampleSequence.
Definition at line 69 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
May vary asynchronously.
Implements PlayableSequence.
Definition at line 92 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Implements WideSampleSequence.
Definition at line 54 of file MockPlayableSequence.h.
References sampleRate.
|
inlineoverridevirtual |
May vary asynchronously.
Implements PlayableSequence.
Definition at line 87 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Implements WideSampleSequence.
Definition at line 44 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
Implements WideSampleSequence.
Definition at line 64 of file MockPlayableSequence.h.
|
inlineoverridevirtual |
A constant property.
result > 0
Implements WideSampleSequence.
Definition at line 34 of file MockPlayableSequence.h.
References numChannels.
|
inlineoverridevirtual |
Implements WideSampleSequence.
Definition at line 59 of file MockPlayableSequence.h.
References floatSample.
const size_t MockPlayableSequence::numChannels |
Definition at line 98 of file MockPlayableSequence.h.
Referenced by NChannels().
const int MockPlayableSequence::sampleRate |
Definition at line 97 of file MockPlayableSequence.h.
Referenced by GetRate().