MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / prepareToPlay

Method prepareToPlay

NeuralNote/Source/Player.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void Player::prepareToPlay(double inSampleRate, int inSamplesPerBlock)
33{
34 mSynth->setCurrentPlaybackSampleRate(inSampleRate);
35 mSynthController->setSampleRate(inSampleRate);
36 mSampleRate = inSampleRate;
37 mInternalBuffer.setSize(2, inSamplesPerBlock);
38}
39
40void Player::processBlock(AudioBuffer<float>& inAudioBuffer, MidiBuffer& outMidiBuffer)
41{

Callers

nothing calls this directly

Calls 1

setSampleRateMethod · 0.45

Tested by

no test coverage detected