Loading...
Searching...
No Matches
ARAHostDocumentController Class Referencefinal

Wrapper class for ARA::Host::DocumentController. More...

#include <juce_ARAHosting.h>

Public Member Functions

 ~ARAHostDocumentController ()
 
ARA::Host::DocumentController & getDocumentController () const
 Returns the underlying ARA::Host::DocumentController reference.
 
ARAHostModel::PlugInExtensionInstance bindDocumentToPluginInstance (AudioPluginInstance &instance, ARA::ARAPlugInInstanceRoleFlags knownRoles, ARA::ARAPlugInInstanceRoleFlags assignedRoles)
 Binds the ARAHostDocumentController and its enclosed document to a plugin instance.
 

Static Public Member Functions

static std::unique_ptr< ARAHostDocumentControllercreate (ARAFactoryWrapper factory, const String &documentName, std::unique_ptr< ARA::Host::AudioAccessControllerInterface > audioAccessController, std::unique_ptr< ARA::Host::ArchivingControllerInterface > archivingController, std::unique_ptr< ARA::Host::ContentAccessControllerInterface > contentAccessController=nullptr, std::unique_ptr< ARA::Host::ModelUpdateControllerInterface > modelUpdateController=nullptr, std::unique_ptr< ARA::Host::PlaybackControllerInterface > playbackController=nullptr)
 Factory function.
 

Detailed Description

Wrapper class for ARA::Host::DocumentController.

In order to create an ARAHostDocumentController from an ARAFactoryWrapper you must provide at least two mandatory host side interfaces. You can create these implementations by inheriting from the base classes in the ARA::Host namespace.

Constructor & Destructor Documentation

◆ ~ARAHostDocumentController()

ARAHostDocumentController::~ARAHostDocumentController ( )

Member Function Documentation

◆ create()

static std::unique_ptr< ARAHostDocumentController > ARAHostDocumentController::create ( ARAFactoryWrapper factory,
const String & documentName,
std::unique_ptr< ARA::Host::AudioAccessControllerInterface > audioAccessController,
std::unique_ptr< ARA::Host::ArchivingControllerInterface > archivingController,
std::unique_ptr< ARA::Host::ContentAccessControllerInterface > contentAccessController = nullptr,
std::unique_ptr< ARA::Host::ModelUpdateControllerInterface > modelUpdateController = nullptr,
std::unique_ptr< ARA::Host::PlaybackControllerInterface > playbackController = nullptr )
static

Factory function.

You must check if the returned pointer is valid.

◆ getDocumentController()

ARA::Host::DocumentController & ARAHostDocumentController::getDocumentController ( ) const

Returns the underlying ARA::Host::DocumentController reference.

◆ bindDocumentToPluginInstance()

ARAHostModel::PlugInExtensionInstance ARAHostDocumentController::bindDocumentToPluginInstance ( AudioPluginInstance & instance,
ARA::ARAPlugInInstanceRoleFlags knownRoles,
ARA::ARAPlugInInstanceRoleFlags assignedRoles )

Binds the ARAHostDocumentController and its enclosed document to a plugin instance.

The resulting ARAHostModel::PlugInExtensionInstance is responsible for fulfilling the ARA specific roles of the plugin.

A single DocumentController can be bound to multiple plugin instances, which is a typical practice among hosts.


The documentation for this class was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram