25 const auto numSamples =
values[0].size();
26 const auto clip = std::make_shared<WaveClip>(
29 clip->InsertSilence(0, 1. * numSamples /
mSampleRate);
30 for (
auto i = 0u; i <
values.size(); ++i)
43 const std::vector<float>&
values,
size_t numChannels,
47 std::vector<std::vector<float>> {
values }, operations);
51 float value,
size_t numValues,
size_t numChannels,
54 std::vector<float>
values(numValues);
std::shared_ptr< SampleBlockFactory > SampleBlockFactoryPtr
std::shared_ptr< WaveClip > WaveClipHolder
const SampleBlockFactoryPtr mFactory
WaveClipHolder ClipFilledWith(const std::vector< std::vector< float > > &values, Operations operations=[](WaveClip &) {}) const
TestWaveClipMaker(int sampleRate, SampleBlockFactoryPtr)
std::function< void(WaveClip &)> Operations
constexpr auto sampleRate
const char * end(const char *str) noexcept
const char * begin(const char *str) noexcept
void copy(const T *src, T *dst, int32_t n)