prepare for .opm support

goodbye addInstrumentFromFile
hello instrumentFromFile + addInstrumentPtr

these changes are required to allow loading instrument banks
This commit is contained in:
tildearrow 2022-04-03 01:56:49 -05:00
parent 44d72c2106
commit e44d081adc
3 changed files with 49 additions and 32 deletions

View file

@ -491,8 +491,12 @@ class DivEngine {
// add instrument
int addInstrument(int refChan=0);
// add instrument from file
bool addInstrumentFromFile(const char* path);
// add instrument from pointer
int addInstrumentPtr(DivInstrument* which);
// get instrument from file
// if the returned vector is empty then there was an error.
std::vector<DivInstrument*> instrumentFromFile(const char* path);
// delete instrument
void delInstrument(int index);