Audacity 3.2.0
|
#include <TestWaveClipMaker.h>
Public Types | |
using | Operations = std::function< void(WaveClip &)> |
Public Member Functions | |
TestWaveClipMaker (int sampleRate, SampleBlockFactoryPtr) | |
WaveClipHolder | ClipFilledWith (const std::vector< std::vector< float > > &values, Operations operations=[](WaveClip &) {}) const |
WaveClipHolder | ClipFilledWith (const std::vector< float > &values, size_t numChannels, Operations operations=[](WaveClip &) {}) const |
WaveClipHolder | ClipFilledWith (float value, size_t numValues, size_t numChannels, Operations operations=[](WaveClip &) {}) const |
Private Attributes | |
const int | mSampleRate |
const SampleBlockFactoryPtr | mFactory |
Static Private Attributes | |
static constexpr bool | copyCutLines = false |
Definition at line 20 of file TestWaveClipMaker.h.
using TestWaveClipMaker::Operations = std::function<void(WaveClip&)> |
Definition at line 25 of file TestWaveClipMaker.h.
TestWaveClipMaker::TestWaveClipMaker | ( | int | sampleRate, |
SampleBlockFactoryPtr | factory | ||
) |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 15 of file TestWaveClipMaker.cpp.
WaveClipHolder TestWaveClipMaker::ClipFilledWith | ( | const std::vector< float > & | values, |
size_t | numChannels, | ||
Operations | operations = [](WaveClip&) {} |
||
) | const |
Definition at line 42 of file TestWaveClipMaker.cpp.
References ClipFilledWith(), and values.
WaveClipHolder TestWaveClipMaker::ClipFilledWith | ( | const std::vector< std::vector< float > > & | values, |
Operations | operations = [](WaveClip&) {} |
||
) | const |
Definition at line 22 of file TestWaveClipMaker.cpp.
References audio, details::begin(), staffpad::vo::copy(), details::end(), floatSample, mFactory, mSampleRate, and values.
Referenced by ClipFilledWith(), and TEST_CASE().
WaveClipHolder TestWaveClipMaker::ClipFilledWith | ( | float | value, |
size_t | numValues, | ||
size_t | numChannels, | ||
Operations | operations = [](WaveClip&) {} |
||
) | const |
Definition at line 50 of file TestWaveClipMaker.cpp.
References ClipFilledWith(), and values.
|
staticconstexprprivate |
Definition at line 40 of file TestWaveClipMaker.h.
|
private |
Definition at line 43 of file TestWaveClipMaker.h.
Referenced by ClipFilledWith().
|
private |
Definition at line 42 of file TestWaveClipMaker.h.
Referenced by ClipFilledWith().