| @@ -1500,7 +1500,7 @@ protected: | |||||
| */ | */ | ||||
| virtual bool isBusesLayoutSupported (const BusesLayout&) const { return true; } | 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 | Most subclasses will not need to override this method and should instead | ||||
| override the isBusesLayoutSupported callback to reject certain layout changes. | override the isBusesLayoutSupported callback to reject certain layout changes. | ||||
| @@ -1533,6 +1533,13 @@ protected: | |||||
| */ | */ | ||||
| virtual bool canApplyBusesLayout (const BusesLayout& layouts) const { return isBusesLayoutSupported (layouts); } | 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 */ | /** Structure used for AudioProcessor Callbacks */ | ||||
| struct BusProperties | struct BusProperties | ||||
| @@ -1678,7 +1685,6 @@ private: | |||||
| AudioProcessorListener* getListenerLocked (int) const noexcept; | AudioProcessorListener* getListenerLocked (int) const noexcept; | ||||
| void updateSpeakerFormatStrings(); | void updateSpeakerFormatStrings(); | ||||
| bool applyBusLayouts (const BusesLayout&); | |||||
| void audioIOChanged (bool busNumberChanged, bool channelNumChanged); | void audioIOChanged (bool busNumberChanged, bool channelNumChanged); | ||||
| void getNextBestLayout (const BusesLayout&, BusesLayout&) const; | void getNextBestLayout (const BusesLayout&, BusesLayout&) const; | ||||