Browse Source

Made AudioProcessor::applyBusLayouts() virtual

tags/2021-05-28
ed 6 years ago
parent
commit
9f9d86b91a
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      modules/juce_audio_processors/processors/juce_AudioProcessor.h

+ 8
- 2
modules/juce_audio_processors/processors/juce_AudioProcessor.h View File

@@ -1500,7 +1500,7 @@ protected:
*/
virtual bool isBusesLayoutSupported (const BusesLayout&) const { return true; }
/** Callback to check if a certain bus layout can now be applied
/** Callback to check if a certain bus layout can now be applied.
Most subclasses will not need to override this method and should instead
override the isBusesLayoutSupported callback to reject certain layout changes.
@@ -1533,6 +1533,13 @@ protected:
*/
virtual bool canApplyBusesLayout (const BusesLayout& layouts) const { return isBusesLayoutSupported (layouts); }
/** This method will be called when a new bus layout needs to be applied.
Most subclasses will not need to override this method and should just use the default
implementation.
*/
virtual bool applyBusLayouts (const BusesLayout& layouts);
//==============================================================================
/** Structure used for AudioProcessor Callbacks */
struct BusProperties
@@ -1678,7 +1685,6 @@ private:
AudioProcessorListener* getListenerLocked (int) const noexcept;
void updateSpeakerFormatStrings();
bool applyBusLayouts (const BusesLayout&);
void audioIOChanged (bool busNumberChanged, bool channelNumChanged);
void getNextBestLayout (const BusesLayout&, BusesLayout&) const;


Loading…
Cancel
Save