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

#include <videoaudio.h>

Public Member Functions

 VideoNode (NodeManager &nodeManager, int channelCount, bool mDecodeAudio)
 
int getChannelCount () const
 
OutputPingetOutput (int channel)
 
void setVideo (Video &video)
 
- Public Member Functions inherited from Node
 Node (NodeManager &manager)
 
const std::set< OutputPin * > & getOutputs () const
 
const std::set< InputPinBase * > & getInputs () const
 
- Public Member Functions inherited from Process
 Process (NodeManager &nodeManager)
 
 Process (ParentProcess &parent)
 
 Process (const Process &)=delete
 
Processoperator= (const Process &)=delete
 
virtual ~Process ()
 
void update ()
 
NodeManagergetNodeManager () const
 
int getBufferSize () const
 
float getSampleRate () const
 
DiscreteTimeValue getSampleTime () const
 

Additional Inherited Members

- Protected Member Functions inherited from Node
SampleBuffergetOutputBuffer (OutputPin &output)
 
- Protected Member Functions inherited from Process
virtual void sampleRateChanged (float sampleRate)
 
virtual void bufferSizeChanged (int bufferSize)
 
bool isRegisteredWithNodeManager () const
 

Description

An audio node that retrieves the audio data from a playing video object

Inheritance diagram for VideoNode:
[legend]
Collaboration diagram for VideoNode:
[legend]

Constructor & Destructor Documentation

◆ VideoNode()

VideoNode ( NodeManager nodeManager,
int  channelCount,
bool  mDecodeAudio 
)

Constructor takes the video object and the number of requested output channels.

Member Function Documentation

◆ getChannelCount()

int getChannelCount ( ) const
Returns
total number of audio output channels

◆ getOutput()

OutputPin& getOutput ( int  channel)
Parameters
channelaudio output channel index
Returns
a specific audio output channel

◆ setVideo()

void setVideo ( Video video)

Change the video source.

Parameters
videonew video source.