add ability to save ins/wave as .dmp/.dmw
also saving wavetables as raw data
This commit is contained in:
parent
041a76ad81
commit
02fb5abc02
5 changed files with 282 additions and 9 deletions
|
|
@ -46,6 +46,20 @@ struct DivWavetable {
|
|||
* @return whether it was successful.
|
||||
*/
|
||||
bool save(const char* path);
|
||||
|
||||
/**
|
||||
* save this wavetable to a file in .dmw format.
|
||||
* @param path file path.
|
||||
* @return whether it was successful.
|
||||
*/
|
||||
bool saveDMW(const char* path);
|
||||
|
||||
/**
|
||||
* save this wavetable to a file in raw format.
|
||||
* @param path file path.
|
||||
* @return whether it was successful.
|
||||
*/
|
||||
bool saveRaw(const char* path);
|
||||
DivWavetable():
|
||||
len(32),
|
||||
min(0),
|
||||
|
|
@ -56,4 +70,4 @@ struct DivWavetable {
|
|||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue