mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
Made AudioProcessor::applyBusLayouts() virtual
This commit is contained in:
parent
1221374be9
commit
9f9d86b91a
1 changed files with 8 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue