@@ -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++)
0 commit comments