mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 23:21:22 +00:00
prepare for adding wavetable from file
This commit is contained in:
parent
d6f97e0c48
commit
69b56e6d4c
2 changed files with 10 additions and 0 deletions
|
@ -2535,6 +2535,13 @@ int DivEngine::addWave() {
|
||||||
return waveCount;
|
return waveCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool DivEngine::addWaveFromFile(const char* path) {
|
||||||
|
isBusy.lock();
|
||||||
|
// TODO
|
||||||
|
isBusy.unlock();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void DivEngine::delWave(int index) {
|
void DivEngine::delWave(int index) {
|
||||||
isBusy.lock();
|
isBusy.lock();
|
||||||
if (index>=0 && index<(int)song.wave.size()) {
|
if (index>=0 && index<(int)song.wave.size()) {
|
||||||
|
|
|
@ -325,6 +325,9 @@ class DivEngine {
|
||||||
// add wavetable
|
// add wavetable
|
||||||
int addWave();
|
int addWave();
|
||||||
|
|
||||||
|
// add wavetable from file
|
||||||
|
bool addWaveFromFile(const char* path);
|
||||||
|
|
||||||
// delete wavetable
|
// delete wavetable
|
||||||
void delWave(int index);
|
void delWave(int index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue