- fixed leakage
- fixed assertion failure - fixed warnings - fixed version number git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@238 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+4
-3
@@ -882,7 +882,8 @@ void JaySynth::renderNextBlock (AudioSampleBuffer& outputBuffer,
|
||||
float *buf1, *buf2;
|
||||
|
||||
// must set the sample rate before using this!
|
||||
jassert (sampleRate != 0);
|
||||
float sr = Synthesiser::getSampleRate();
|
||||
jassert (sr != 0);
|
||||
|
||||
const ScopedLock sl (lock);
|
||||
|
||||
@@ -1375,8 +1376,8 @@ void JaySynthThread::run(void)
|
||||
m_buffer->clear (0, 0, m_sample_len);
|
||||
m_buffer->clear (1, 0, m_sample_len);
|
||||
|
||||
buf1 = m_buffer->getSampleData (0, 0);
|
||||
buf2 = m_buffer->getSampleData (1, 0);
|
||||
buf1 = m_buffer->getWritePointer (0, 0);
|
||||
buf2 = m_buffer->getWritePointer (1, 0);
|
||||
|
||||
for (int i = m_voice_offset; i < m_num_voices; i += m_voice_step)
|
||||
{
|
||||
|
||||
+1
-2
@@ -208,7 +208,6 @@ public:
|
||||
|
||||
private:
|
||||
int m_num_audiothreads;
|
||||
float sampleRate;
|
||||
BigInteger sustainPedalsDown;
|
||||
int paramID_changed, next_possible_voice, oldest_voice;
|
||||
JaySynthMidiCC *pMidCC_editBuffer;
|
||||
@@ -244,7 +243,7 @@ private:
|
||||
midi_note_info_t last_midi_note_info;
|
||||
voice_t *m_pVoices;
|
||||
JaySynthThread **m_ppAudioThread;
|
||||
WaitableEvent *m_pEventAudioThreadRdy;
|
||||
ScopedPointer <WaitableEvent> m_pEventAudioThreadRdy;
|
||||
JaySynthMonophonicMGR m_monoMGR;
|
||||
};
|
||||
|
||||
|
||||
@@ -5370,32 +5370,32 @@ void JaySynthAudioProcessorEditor::paramUpdate(int paramID, bool doHostUpdate)
|
||||
switch(paramID)
|
||||
{
|
||||
case SYNTH_PARAM_OSC_0_FM_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_FM_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_FM_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
case SYNTH_PARAM_OSC_1_FM_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_FM_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_FM_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
case SYNTH_PARAM_OSC_0_AM_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_AM_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_AM_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
case SYNTH_PARAM_OSC_1_AM_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_AM_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_AM_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
case SYNTH_PARAM_OSC_0_PWM_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_PWM_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_PWM_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
case SYNTH_PARAM_OSC_1_PWM_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_PWM_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_PWM_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
case SYNTH_PARAM_VCF_F_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_F_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_F_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
case SYNTH_PARAM_VCF_Q_SRC_1:
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_Q_SRC_OP)), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_Q_SRC_OP)), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
|
||||
default:
|
||||
pComboBox->setSelectedId(1 + (int)getProcessor()->getParam(paramID), juce::NotificationType::sendNotification);
|
||||
pComboBox->setSelectedId(1 + (int)getProcessor()->getParam(paramID), juce::NotificationType::dontSendNotification);
|
||||
break;
|
||||
}
|
||||
pComboBox->setColour (ComboBox:: backgroundColourId, combobox_colour);
|
||||
|
||||
@@ -561,7 +561,7 @@ VelKey_PopUp::VelKey_PopUp (JaySynthMidiCC *pMidiCC, int paramID, synth_float_t
|
||||
m_velKey_constraints.pcenter = -1E18;
|
||||
|
||||
label_parameter_name->setText(name, juce::NotificationType::dontSendNotification);
|
||||
comboBoxOPSel->setSelectedId(1 + pMidiCC->getVelKeyCombineOP(pMidiCC_container), juce::NotificationType::sendNotification);
|
||||
comboBoxOPSel->setSelectedId(1 + pMidiCC->getVelKeyCombineOP(pMidiCC_container), juce::NotificationType::dontSendNotification);
|
||||
|
||||
slider_vel_kexp->setValue(toSlider(&m_shape_xform, pMidiCC->getVelCurve(pMidiCC_container)->kexp), juce::NotificationType::dontSendNotification);
|
||||
slider_vel_scenter->setValue(toSlider(&m_skew_xform, pMidiCC->getVelCurve(pMidiCC_container)->scenter), juce::NotificationType::dontSendNotification);
|
||||
|
||||
@@ -799,7 +799,7 @@ if ((pcenter < pmin) || (pcenter > pmax))
|
||||
|
||||
}
|
||||
|
||||
void paramInfoInit(param_info_t *pObj, UINT32 id, char *pName)
|
||||
void paramInfoInit(param_info_t *pObj, UINT32 id, const char *pName)
|
||||
{
|
||||
pObj->id = id;
|
||||
|
||||
@@ -855,7 +855,7 @@ void paramInfoSet(param_info_t *pObj,
|
||||
pObj->pinterval = pinterval;
|
||||
}
|
||||
|
||||
void paramInfoCopy(param_info_t *pDst, param_info_t *pSrc)
|
||||
void paramInfoCopy(param_info_t *pDst, param_info_t const *pSrc)
|
||||
{
|
||||
pDst->base = pSrc->base;
|
||||
pDst->kexp = pSrc->kexp;
|
||||
|
||||
@@ -161,7 +161,7 @@ extern "C" {
|
||||
// --------------------------------------------------------------
|
||||
// Exported functions
|
||||
// --------------------------------------------------------------
|
||||
void paramInfoInit(param_info_t *pObj, UINT32 id, char *pName);
|
||||
void paramInfoInit(param_info_t *pObj, UINT32 id, const char *pName);
|
||||
void paramInfoFree(param_info_t *pObj);
|
||||
void paramInfoSetPMIN(param_info_t *pObj, synth_float_t value);
|
||||
void paramInfoSetPMAX(param_info_t *pObj, synth_float_t value);
|
||||
@@ -174,7 +174,7 @@ void paramInfoSet(param_info_t *pObj,
|
||||
synth_float_t pmax,
|
||||
synth_float_t pinterval);
|
||||
|
||||
void paramInfoCopy(param_info_t *pDst, param_info_t *pSrc);
|
||||
void paramInfoCopy(param_info_t *pDst, param_info_t const *pSrc);
|
||||
synth_float_t clampParam(param_info_t *pObj, synth_float_t p);
|
||||
synth_float_t toParam(param_info_t *pObj, synth_float_t s);
|
||||
synth_float_t toSlider(param_info_t *pObj, synth_float_t p);
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
void SynthDebug(char *fmtstr, ...);
|
||||
void SynthDebug(const char *fmtstr, ...);
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user