make sample rate changeable, probably

This commit is contained in:
Alex Birch
2018-04-15 21:32:26 +01:00
parent a82e7e450b
commit b5a807fe91
3 changed files with 16 additions and 0 deletions

View File

@ -111,6 +111,7 @@ void JuicySFAudioProcessor::prepareToPlay (double sampleRate, int /*samplesPerBl
// initialisation that you need..
synth.setCurrentPlaybackSampleRate (sampleRate);
keyboardState.reset();
fluidSynthModel.setSampleRate(static_cast<float>(sampleRate));
reset();
}