Skip to content

Commit 18b897c

Browse files
author
falkTX
committed
Final fixes, don't build cabbage for now
1 parent 40ca182 commit 18b897c

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

ports/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ plugins: lv2 vst
1111
lv2:
1212
install -d ../bin/lv2
1313
$(MAKE) -C argotlunar/LV2
14-
$(MAKE) -C cabbage/LV2-fx
15-
$(MAKE) -C cabbage/LV2-ins
16-
$(MAKE) -C cabbage/LV2-midi
14+
# $(MAKE) -C cabbage/LV2-fx
15+
# $(MAKE) -C cabbage/LV2-ins
16+
# $(MAKE) -C cabbage/LV2-midi
1717
$(MAKE) -C protoplug/LV2-fx
1818
$(MAKE) -C protoplug/LV2-gen
1919
$(MAKE) -C PdPulp/LV2-fx
@@ -27,9 +27,9 @@ lv2:
2727
vst:
2828
install -d ../bin/vst
2929
$(MAKE) -C argotlunar/VST
30-
$(MAKE) -C cabbage/VST-fx
31-
$(MAKE) -C cabbage/VST-ins
32-
$(MAKE) -C cabbage/VST-midi
30+
# $(MAKE) -C cabbage/VST-fx
31+
# $(MAKE) -C cabbage/VST-ins
32+
# $(MAKE) -C cabbage/VST-midi
3333
$(MAKE) -C protoplug/VST-fx
3434
$(MAKE) -C protoplug/VST-gen
3535
$(MAKE) -C PdPulp/VST-fx

ports/PdPulp/Source/PluginProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ void PureDataAudioProcessor::setStateInformation (const void* data, int sizeInBy
299299
File path(child->getStringAttribute ("fullpath"));
300300
if (path.exists()) {
301301
patchfile = path; // creates a copy
302-
reloadPatch(NULL);
302+
reloadPatch(0.0);
303303
}
304304
}
305305

ports/cabbage/source/Plugin/CabbagePluginProcessor.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ CabbagePluginAudioProcessor::CabbagePluginAudioProcessor(String inputfile, bool
172172

173173
#ifdef CSOUND6
174174
csoundParams = new CSOUND_PARAMS();
175-
csoundParams->nchnls_override = this->getNumOutputChannels();
175+
csoundParams->nchnls_override = this->getTotalNumOutputChannels();
176176
csoundParams->displays = 0;
177177
csound->SetParams(csoundParams);
178178
#endif
@@ -390,7 +390,7 @@ CabbagePluginAudioProcessor::CabbagePluginAudioProcessor():
390390
startTimer(20);
391391
#ifdef CSOUND6
392392
csoundParams = new CSOUND_PARAMS();
393-
csoundParams->nchnls_override = this->getNumOutputChannels();
393+
csoundParams->nchnls_override = this->getTotalNumOutputChannels();
394394
csoundParams->displays = 0;
395395
csound->SetParams(csoundParams);
396396
#endif
@@ -1055,7 +1055,7 @@ void CabbagePluginAudioProcessor::startRecording ()
10551055
threadedWriter = new AudioFormatWriter::ThreadedWriter (writer, backgroundThread, 32768);
10561056

10571057
// Reset our recording thumbnail
1058-
//thumbnail.reset (writer->getNumChannels(), writer->getSampleRate());
1058+
//thumbnail.reset (writer->getTotalNumChannels(), writer->getSampleRate());
10591059
nextSampleNum = 0;
10601060

10611061
// And now, swap over our active writer pointer so that the audio callback will start using it..
@@ -1727,7 +1727,7 @@ void CabbagePluginAudioProcessor::prepareToPlay (double sampRate, int samplesPer
17271727
{
17281728
// Use this method as the place to do any pre-playback
17291729
// initialisation that you need..
1730-
//showMessage(String(this->getNumOutputChannels()));
1730+
//showMessage(String(this->getTotalNumOutputChannels()));
17311731
keyboardState.reset();
17321732
sampleRate = sampRate;
17331733
}
@@ -1773,7 +1773,7 @@ void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiB
17731773
ccBuffer = midiMessages;
17741774

17751775
//if no inputs are used clear buffer in case it's not empty..
1776-
if(getNumInputChannels()==0)
1776+
if(getTotalNumInputChannels()==0)
17771777
buffer.clear();
17781778

17791779
#if JucePlugin_ProducesMidiOutput
@@ -1807,10 +1807,10 @@ void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiB
18071807
}
18081808
if(csCompileResult==OK)
18091809
{
1810-
for(int channel = 0; channel < getNumOutputChannels(); channel++ )
1810+
for(int channel = 0; channel < getTotalNumOutputChannels(); channel++ )
18111811
{
18121812
audioBuffer = buffer.getWritePointer(channel,0);
1813-
pos = csndIndex*getNumOutputChannels();
1813+
pos = csndIndex*getTotalNumOutputChannels();
18141814
CSspin[channel+pos] = audioBuffer[i]*cs_scale;
18151815
audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
18161816
}
@@ -1828,7 +1828,7 @@ void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiB
18281828
}//if not compiled just mute output
18291829
else
18301830
{
1831-
for(int channel = 0; channel < getNumInputChannels(); channel++)
1831+
for(int channel = 0; channel < getTotalNumInputChannels(); channel++)
18321832
{
18331833
audioBuffer = buffer.getWritePointer(channel,0);
18341834
for(int i=0; i<numSamples; i++, csndIndex++)

ports/protoplug/Source/LuaLink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ void LuaLink::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages,
404404
0);
405405
#ifdef _PROTOGEN
406406
if (!res) {
407-
for (int channel = 0; channel < pfx->getNumOutputChannels(); ++channel)
407+
for (int channel = 0; channel < pfx->getTotalNumOutputChannels(); ++channel)
408408
{
409409
buffer.clear (channel, 0, buffer.getNumSamples());
410410
}

0 commit comments

Comments
 (0)