WaveSynth: initialize wave to 0 on SCC/Bubble Syst

This commit is contained in:
tildearrow 2022-06-09 18:16:51 -05:00
parent eac4f50d92
commit dd05429c0e
4 changed files with 9 additions and 4 deletions

View file

@ -243,8 +243,13 @@ void DivWaveSynth::changeWave2(int num) {
first=true;
}
void DivWaveSynth::setEngine(DivEngine* engine) {
void DivWaveSynth::setEngine(DivEngine* engine, int waveFloor) {
e=engine;
memset(wave1,waveFloor,256);
memset(wave2,waveFloor,256);
for (int i=0; i<256; i++) {
output[i]=waveFloor;
}
}
void DivWaveSynth::init(DivInstrument* which, int w, int h, bool insChanged) {