CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | List of all members
CFxAVAudioOutput Class Reference

#include <FxAVAudioOutput.h>

Inheritance diagram for CFxAVAudioOutput:
CFxUIObject

Public Types

enum class  State {
  ActiveState , SuspendedState , StoppedState , IdleState ,
  InterruptedState
}
 

Public Member Functions

 CFxAVAudioOutput ()
 
virtual ~CFxAVAudioOutput ()
 
void start (const std::vector< unsigned char > &buffer)
 
void stop ()
 
void suspend ()
 
void resume ()
 
State state ()
 
CFxUISignal< void(void)> & stopped ()
 
- Public Member Functions inherited from CFxUIObject
 CFxUIObject ()
 
virtual ~CFxUIObject ()
 
FxNativeHandle getHandle () const
 
void setHandle (FxNativeHandle handle)
 
void setParent (CFxUIObject *parent)
 
CFxUIObjectparent ()
 
const CFxUIObjectparent () const
 
void setObjectName (const CFxUIString &objectName)
 
CFxUIString objectName () const
 
bool setProperty (const char *name, const CFxUIVariant &value)
 
CFxUIVariant property (const char *name)
 
CFxUIList< CFxUIObject * > children () const
 
template<typename T >
CFxUIList< T > findChildren (const CFxUIString &name=CFxUIString())
 
void blockSignals (bool block)
 
bool signalsBlocked () const
 

Additional Inherited Members

- Protected Member Functions inherited from CFxUIObject
CFxUIObjectsender ()
 
- Protected Attributes inherited from CFxUIObject
CFxUIObjectImpl * m_pImpl
 
CFxUIObjectData * m_pData
 

Detailed Description

Class CFxAVAudioOutput.

Definition at line 29 of file FxAVAudioOutput.h.

Member Enumeration Documentation

◆ State

This enum indicates the state of the playback process.

Enumerator
ActiveState 
SuspendedState 
StoppedState 
IdleState 
InterruptedState 

Definition at line 35 of file FxAVAudioOutput.h.

Constructor & Destructor Documentation

◆ CFxAVAudioOutput()

CFxAVAudioOutput::CFxAVAudioOutput ( )

Constructor

◆ ~CFxAVAudioOutput()

virtual CFxAVAudioOutput::~CFxAVAudioOutput ( )
virtual

Destructor

Member Function Documentation

◆ resume()

void CFxAVAudioOutput::resume ( )

Resume playback if it was suspended.

◆ start()

void CFxAVAudioOutput::start ( const std::vector< unsigned char > &  buffer)

Start playback. Playback data is read from the buffer.

Parameters
[out]bufferPlayback data is read from the provided buffer.

◆ state()

State CFxAVAudioOutput::state ( )

Returns current state of the process

◆ stop()

void CFxAVAudioOutput::stop ( )

Stop playback.

◆ stopped()

CFxUISignal<void( void )>& CFxAVAudioOutput::stopped ( )

Signal that is emitted when the playback stops.

◆ suspend()

void CFxAVAudioOutput::suspend ( )

Suspend (pause) playback.


The documentation for this class was generated from the following file: