|
CFx SDK Documentation 2024 SP0
|
#include <FxAVAudioOutput.h>
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) |
| CFxUIObject * | parent () |
| const CFxUIObject * | parent () 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 | |
| CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
| CFxUIObjectImpl * | m_pImpl |
| CFxUIObjectData * | m_pData |
Class CFxAVAudioOutput.
Definition at line 29 of file FxAVAudioOutput.h.
|
strong |
This enum indicates the state of the playback process.
| Enumerator | |
|---|---|
| ActiveState | |
| SuspendedState | |
| StoppedState | |
| IdleState | |
| InterruptedState | |
Definition at line 35 of file FxAVAudioOutput.h.
| CFxAVAudioOutput::CFxAVAudioOutput | ( | ) |
Constructor
|
virtual |
Destructor
| void CFxAVAudioOutput::resume | ( | ) |
Resume playback if it was suspended.
| void CFxAVAudioOutput::start | ( | const std::vector< unsigned char > & | buffer | ) |
Start playback. Playback data is read from the buffer.
| [out] | buffer | Playback data is read from the provided buffer. |
| State CFxAVAudioOutput::state | ( | ) |
Returns current state of the process
| void CFxAVAudioOutput::stop | ( | ) |
Stop playback.
| CFxUISignal< void(void)> & CFxAVAudioOutput::stopped | ( | ) |
Signal that is emitted when the playback stops.
| void CFxAVAudioOutput::suspend | ( | ) |
Suspend (pause) playback.