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

Method SaveFile

Source/SamplePlayer.cpp:762–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762void SamplePlayer::SaveFile()
763{
764 FileChooser chooser("Save sample", File(ofToSamplePath("")),
765 "*.wav", true, false, TheSynth->GetFileChooserParent());
766 if (chooser.browseForFileToSave(true))
767 {
768 auto file = chooser.getResult();
769 Sample::WriteDataToFile(file.getFullPathName().toStdString().c_str(), mSample->Data(), mSample->LengthInSamples());
770 }
771}
772
773void SamplePlayer::FillData(std::vector<float> data)
774{

Callers

nothing calls this directly

Calls 4

ofToSamplePathFunction · 0.85
GetFileChooserParentMethod · 0.80
DataMethod · 0.80
LengthInSamplesMethod · 0.80

Tested by

no test coverage detected