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

Method StoreBufferBlock

libraries/lib-builtin-effects/LoudnessBase.cpp:365–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365bool LoudnessBase::StoreBufferBlock(
366 WaveChannel& track, size_t nChannels, sampleCount pos, size_t len)
367{
368 size_t idx = 0;
369 const auto setOne = [&](WaveChannel& channel) {
370 // Copy the newly-changed samples back onto the track.
371 return channel.SetFloats(mTrackBuffer[idx].get(), pos, len);
372 };
373
374 if (nChannels == 1)
375 return setOne(track);
376 else
377 {
378 for (auto channel : track.GetTrack().Channels())
379 {
380 if (!setOne(*channel))
381 return false;
382 ++idx;
383 }
384 return true;
385 }
386}
387
388bool LoudnessBase::UpdateProgress()
389{

Callers

nothing calls this directly

Calls 4

SetFloatsMethod · 0.80
ChannelsMethod · 0.80
getMethod · 0.45
GetTrackMethod · 0.45

Tested by

no test coverage detected