| 760 | } |
| 761 | |
| 762 | void 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 | |
| 773 | void SamplePlayer::FillData(std::vector<float> data) |
| 774 | { |
nothing calls this directly
no test coverage detected