| 277 | } |
| 278 | |
| 279 | bool CInstrumentEditorDPCM::LoadSample(const CStringW &FilePath, const CStringW &FileName) |
| 280 | { |
| 281 | CFile SampleFile; |
| 282 | |
| 283 | if (!SampleFile.Open(FilePath, CFile::modeRead)) { |
| 284 | AfxMessageBox(IDS_FILE_OPEN_ERROR); |
| 285 | return false; |
| 286 | } |
| 287 | |
| 288 | if (!InsertSample(LoadSampleFromFile(SampleFile, conv::to_utf8(FileName)))) // // // |
| 289 | return false; |
| 290 | |
| 291 | BuildSampleList(); |
| 292 | SampleFile.Close(); |
| 293 | return true; |
| 294 | } |
| 295 | |
| 296 | bool CInstrumentEditorDPCM::InsertSample(std::shared_ptr<ft0cc::doc::dpcm_sample> pNewSample) // // // |
| 297 | { |
nothing calls this directly
no test coverage detected