MCPcopy Create free account
hub / github.com/audacity/audacity / FillBufferWithSampleView

Function FillBufferWithSampleView

src/MixerBoard.cpp:507–516  ·  view source on GitHub ↗

Assumes that buffer has capacity >= GetNumSamplesInView(view)

Source from the content-addressed store, hash-verified

505
506// Assumes that buffer has capacity >= GetNumSamplesInView(view)
507void FillBufferWithSampleView(float* buffer, const ChannelSampleView& view)
508{
509 size_t copiedSamples = 0;
510 for (const auto& segmentView : view)
511 {
512 const auto sampleCount = segmentView.GetSampleCount();
513 segmentView.Copy(buffer + copiedSamples, sampleCount);
514 copiedSamples += sampleCount;
515 }
516}
517}
518
519void MixerTrackCluster::UpdateMeter(const double t0, const double t1)

Callers 1

UpdateMeterMethod · 0.85

Calls 2

GetSampleCountMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected