mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Replaced some uses of the now-deprecated AudioProcessor::getTotalNumInputChannels()
This commit is contained in:
parent
f7524d0d09
commit
baab7546f4
8 changed files with 54 additions and 51 deletions
|
|
@ -498,8 +498,8 @@ public:
|
|||
midiTransport = new CEffectMIDITransport (&mMIDIWorld);
|
||||
midiEvents.ensureSize (2048);
|
||||
|
||||
channels.calloc (jmax (juceFilter->getNumInputChannels(),
|
||||
juceFilter->getNumOutputChannels()));
|
||||
channels.calloc (jmax (juceFilter->getTotalNumInputChannels(),
|
||||
juceFilter->getTotalNumOutputChannels()));
|
||||
|
||||
juceFilter->setPlayHead (this);
|
||||
juceFilter->addListener (this);
|
||||
|
|
@ -539,14 +539,14 @@ public:
|
|||
|
||||
#if JUCE_DEBUG || JUCE_LOG_ASSERTIONS
|
||||
const int numMidiEventsComingIn = midiEvents.getNumEvents();
|
||||
(void) numMidiEventsComingIn;
|
||||
ignoreUnused (numMidiEventsComingIn);
|
||||
#endif
|
||||
|
||||
{
|
||||
const ScopedLock sl (juceFilter->getCallbackLock());
|
||||
|
||||
const int numIn = juceFilter->getNumInputChannels();
|
||||
const int numOut = juceFilter->getNumOutputChannels();
|
||||
const int numIn = juceFilter->getTotalNumInputChannels();
|
||||
const int numOut = juceFilter->getTotalNumOutputChannels();
|
||||
const int totalChans = jmax (numIn, numOut);
|
||||
|
||||
if (juceFilter->isSuspended())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue