Public Member Functions | List of all members
VideoAudioComponentInstance Class Reference

#include <videoaudiocomponent.h>

Public Member Functions

 VideoAudioComponentInstance (EntityInstance &entity, Component &resource)
bool init (utility::ErrorState &errorState) override
int getChannelCount () const override
OutputPingetOutputForChannel (int channel) 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
- Public Member Functions inherited from Object
 Object ()
virtual ~Object ()
virtual void onDestroy ()
 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 ()


Instance part of the of VideoAudioComponent, outputs audio from a video stream. Without this component no video-audio is processed and therefore outputted.

Inheritance diagram for VideoAudioComponentInstance:
Collaboration diagram for VideoAudioComponentInstance:

Constructor & Destructor Documentation

◆ VideoAudioComponentInstance()

VideoAudioComponentInstance ( EntityInstance entity,
Component resource 

Member Function Documentation

◆ getChannelCount()

int getChannelCount ( ) const
the total number of audio channels

Implements IMultiChannelOutput.

◆ getOutputForChannel()

OutputPin* getOutputForChannel ( int  channel)
channelindex of the output channel.
the output pin associated with the given channel.

Implements IMultiChannelOutput.

◆ init()

bool init ( utility::ErrorState errorState)

Initializes this component based on it's resource.

errorStatecontains the error when initialization fails.
if initialization succeeded.

Reimplemented from ComponentInstance.