MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / FillData

Method FillData

Source/SamplePlayer.cpp:773–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void SamplePlayer::FillData(std::vector<float> data)
774{
775 Sample* sample = new Sample();
776 sample->Create((int)data.size());
777 float* sampleData = sample->Data()->GetChannel(0);
778 for (size_t i = 0; i < data.size(); ++i)
779 sampleData[i] = data[i];
780 UpdateSample(sample, true);
781}
782
783void SamplePlayer::OnClicked(float x, float y, bool right)
784{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
GetChannelMethod · 0.80
DataMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected