NAP
Public Member Functions | List of all members
SequencePlayerAudioOutputComponentInstance Class Reference

#include <sequenceplayeraudiooutputcomponent.h>

Public Member Functions

 SequencePlayerAudioOutputComponentInstance (EntityInstance &entity, Component &resource)
 
int getChannelCount () const override
 
OutputPingetOutputForChannel (int channel) override
 
void onDestroy () override
 
bool init (utility::ErrorState &errorState) override
 
- Public Member Functions inherited from AudioComponentBaseInstance
 AudioComponentBaseInstance (EntityInstance &entity, Component &resource)
 
- Public Member Functions inherited from ComponentInstance
 ComponentInstance (EntityInstance &entity, Component &resource)
 
virtual void update (double deltaTime)
 
nap::EntityInstancegetEntityInstance () const
 
nap::ComponentgetComponent () const
 
template<typename T >
T * getComponent () const
 
virtual bool init (utility::ErrorState &errorState)
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 
- Public Member Functions inherited from IMultiChannelOutput
virtual ~IMultiChannelOutput ()=default
 
OutputPintryGetOutputForChannel (unsigned int)
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 
- Protected Member Functions inherited from AudioComponentBaseInstance
NodeManagergetNodeManager ()
 
AudioServicegetAudioService ()
 
Inheritance diagram for SequencePlayerAudioOutputComponentInstance:
[legend]
Collaboration diagram for SequencePlayerAudioOutputComponentInstance:
[legend]

Constructor & Destructor Documentation

◆ SequencePlayerAudioOutputComponentInstance()

Constructor

Parameters
entity
resource

Member Function Documentation

◆ getChannelCount()

int getChannelCount ( ) const
overridevirtual

Returns all available channels of output

Returns
all available audio channels

Implements IMultiChannelOutput.

◆ getOutputForChannel()

OutputPin* getOutputForChannel ( int  channel)
overridevirtual

returns pointer to OutputPin of given channel, assert if out of bounds

Parameters
channelchannel of OutputPin
Returns
pointer to OutputPin

Implements IMultiChannelOutput.

◆ init()

bool init ( utility::ErrorState errorState)
overridevirtual

Initializes this component based on it's resource.

Parameters
errorStatecontains the error when initialization fails.
Returns
if initialization succeeded.

Reimplemented from ComponentInstance.

◆ onDestroy()

void onDestroy ( )
overridevirtual

onDestroy is called before deconstruction

Reimplemented from Object.