17 : mNumChannels { numChannels }
18 , mNumRemainingSamples { numSamples }
25 const size_t numSamplesToProduce =
29 auto buffer = buffers[i];
30 std::fill(buffer, buffer + numSamplesToProduce, 0.f);
33 return numSamplesToProduce;
bool Empty() const override
Whether the segment has no more samples to provide.
sampleCount mNumRemainingSamples
const size_t mNumChannels
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.
size_t NChannels() const override
The number of channels in the segment.
Positions or offsets within audio files need a wide type.
long long as_long_long() const