Assumes that buffer has capacity >= GetNumSamplesInView(view)
| 505 | |
| 506 | // Assumes that buffer has capacity >= GetNumSamplesInView(view) |
| 507 | void 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 | |
| 519 | void MixerTrackCluster::UpdateMeter(const double t0, const double t1) |
no test coverage detected