Cosmetics and debug messages
This commit is contained in:
parent
1a14ea5916
commit
af41c44f7e
2 changed files with 2 additions and 3 deletions
|
|
@ -77,6 +77,7 @@ int process(jack_nframes_t numFrames, void* arg [[maybe_unused]])
|
|||
auto numMidiEvents = jack_midi_get_event_count(buffer);
|
||||
jack_midi_event_t event;
|
||||
|
||||
// Midi dispatching
|
||||
for (uint32_t i = 0; i < numMidiEvents; ++i) {
|
||||
if (jack_midi_event_get(&event, buffer, i) != 0)
|
||||
continue;
|
||||
|
|
@ -114,7 +115,7 @@ int process(jack_nframes_t numFrames, void* arg [[maybe_unused]])
|
|||
break;
|
||||
}
|
||||
}
|
||||
// DBG("Num frames: " << numFrames);
|
||||
|
||||
StereoSpan<float> output {
|
||||
jack_port_get_buffer(outputPort1, numFrames),
|
||||
jack_port_get_buffer(outputPort2, numFrames),
|
||||
|
|
|
|||
|
|
@ -259,7 +259,6 @@ void sfz::Synth::garbageCollect() noexcept
|
|||
|
||||
void sfz::Synth::setSamplesPerBlock(int samplesPerBlock) noexcept
|
||||
{
|
||||
DBG("[Synth] Samples per block set to " << samplesPerBlock);
|
||||
this->samplesPerBlock = samplesPerBlock;
|
||||
this->tempBuffer.resize(samplesPerBlock);
|
||||
for (auto& voice : voices)
|
||||
|
|
@ -268,7 +267,6 @@ void sfz::Synth::setSamplesPerBlock(int samplesPerBlock) noexcept
|
|||
|
||||
void sfz::Synth::setSampleRate(float sampleRate) noexcept
|
||||
{
|
||||
DBG("[Synth] Sample rate set to " << sampleRate);
|
||||
this->sampleRate = sampleRate;
|
||||
for (auto& voice : voices)
|
||||
voice->setSampleRate(sampleRate);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue