Audacity 3.2.0
|
#include <SilenceSegment.h>
Public Member Functions | |
SilenceSegment (size_t numChannels, sampleCount numSamples) | |
size_t | GetFloats (float *const *buffers, size_t numSamples) override |
Fills buffers with as many as numSamples or the number of remaining samples, whichever is smaller. More... | |
bool | Empty () const override |
Whether the segment has no more samples to provide. More... | |
size_t | NChannels () const override |
The number of channels in the segment. More... | |
Public Member Functions inherited from AudioSegment | |
virtual | ~AudioSegment () |
virtual size_t | GetFloats (float *const *buffers, size_t numSamples)=0 |
Fills buffers with as many as numSamples or the number of remaining samples, whichever is smaller. More... | |
virtual size_t | NChannels () const =0 |
The number of channels in the segment. More... | |
virtual bool | Empty () const =0 |
Whether the segment has no more samples to provide. More... | |
Private Attributes | |
const size_t | mNumChannels |
sampleCount | mNumRemainingSamples |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 17 of file SilenceSegment.h.
SilenceSegment::SilenceSegment | ( | size_t | numChannels, |
sampleCount | numSamples | ||
) |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 16 of file SilenceSegment.cpp.
|
overridevirtual |
Whether the segment has no more samples to provide.
Implements AudioSegment.
Definition at line 36 of file SilenceSegment.cpp.
References mNumRemainingSamples.
Referenced by TEST_CASE().
|
overridevirtual |
Fills buffers
with as many as numSamples
or the number of remaining samples, whichever is smaller.
buffers | Pointers to buffers, one for each channel. |
numSamples | The max. number of samples to write to each buffer. |
Implements AudioSegment.
Definition at line 23 of file SilenceSegment.cpp.
References sampleCount::as_long_long(), mNumChannels, and mNumRemainingSamples.
Referenced by TEST_CASE().
|
overridevirtual |
The number of channels in the segment.
Implements AudioSegment.
Definition at line 41 of file SilenceSegment.cpp.
References mNumChannels.
|
private |
Definition at line 26 of file SilenceSegment.h.
Referenced by GetFloats(), and NChannels().
|
private |
Definition at line 27 of file SilenceSegment.h.
Referenced by Empty(), and GetFloats().