fixed includes
This commit is contained in:
@@ -544,16 +544,14 @@ void JaySynthAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer
|
||||
int i;
|
||||
float *buf1 = buffer.getWritePointer (0, 0);
|
||||
float *buf2 = buffer.getWritePointer (1, 0);
|
||||
synth_float_t limiter_env[SYNTH_MAX_BUFSIZE];
|
||||
synth_float_t limiter_gain[SYNTH_MAX_BUFSIZE];
|
||||
synth_float_t buf[2][SYNTH_MAX_BUFSIZE];
|
||||
synth_float_t x, limiter_ar, limiter_af, limiter_threshold;
|
||||
float synth_gain;
|
||||
|
||||
AudioPlayHead::CurrentPositionInfo pos;
|
||||
getPlayHead()->getCurrentPosition(pos);
|
||||
AudioPlayHead::CurrentPositionInfo posInfo;
|
||||
getPlayHead()->getCurrentPosition(posInfo);
|
||||
|
||||
m_JK_MidiClock.generateMidiclock(pos, &midiMessages, numSamples, getSampleRate());
|
||||
// Parse midi buffer and add midi clock messages
|
||||
m_JK_MidiClock.generateMidiclock(posInfo, &midiMessages, numSamples, getSampleRate());
|
||||
|
||||
// Now pass any incoming midi messages to our keyboard state object, and let it
|
||||
// add messages to the buffer if the user is clicking on the on-screen keys
|
||||
@@ -579,6 +577,10 @@ void JaySynthAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer
|
||||
m_limiter_active = 0;
|
||||
|
||||
#ifdef WITH_LIMITER
|
||||
synth_float_t limiter_env[SYNTH_MAX_BUFSIZE];
|
||||
synth_float_t limiter_gain[SYNTH_MAX_BUFSIZE];
|
||||
synth_float_t x, limiter_ar, limiter_af, limiter_threshold;
|
||||
|
||||
// Limiter
|
||||
limiter_ar = 5.0/(SYNTH_LIMITER_RISE_TIME*m_fs);
|
||||
limiter_af = 5.0/(SYNTH_LIMITER_FALL_TIME*m_fs);
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
// --------------------------------------------------------------
|
||||
@@ -31,7 +29,11 @@ void SynthDebug(const char *fmtstr, ...)
|
||||
va_start(args, fmtstr);
|
||||
vsprintf(buf, fmtstr, args);
|
||||
va_end(args);
|
||||
#ifdef WIN32
|
||||
OutputDebugString(buf);
|
||||
#else
|
||||
puts(buf);
|
||||
#endif
|
||||
|
||||
#endif /* SYNTH_DEBUG */
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#ifndef _SYNTH_TYPES_H_
|
||||
#define _SYNTH_TYPES_H_
|
||||
|
||||
#include <inttypes.h>
|
||||
// --------------------------------------------------------------
|
||||
// Types
|
||||
// --------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user