Base class for an audio processing block This object defines an interface for composing an audio processing chain.
More...
|
| | AudioBlock (const Config &config, ObjectBase *parent=nullptr) |
| | Constructs an AudioBlock with a given configuration.
|
| |
|
virtual | ~AudioBlock () |
| | Virtual destructor.
|
| |
|
bool | isSource () const |
| | Returns true if the audio block is a source.
|
| |
| bool | isSourceValid (size_t val) const |
| | Returns true if the given source index is valid.
|
| |
|
size_t | sourceChannels () const |
| | Returns the number of channels this object can source.
|
| |
| virtual AudioDesc | sourceDesc (size_t channel) const |
| | Returns the audio description for a given source channel.
|
| |
| virtual bool | setSourceDesc (size_t channel, const AudioDesc &val) |
| | Sets the audio description for a given source channel.
|
| |
| virtual String | sourceName (size_t channel) const |
| | Returns the name of a given source channel.
|
| |
| virtual bool | setSourceName (size_t channel, const String &val) |
| | Sets the name of a given source channel.
|
| |
| virtual ssize_t | sourceSamplesAvailable (size_t channel) const |
| | Returns the number of samples available on a source channel.
|
| |
| | PROMEKI_SIGNAL (sourceHasSamples, AudioBlock *, size_t) |
| | Signal emitted when a source has samples available.
|
| |
|
bool | isSink () const |
| | Returns true if the object is an audio sink.
|
| |
| bool | isSinkValid (size_t val) const |
| | Returns true if the given sink channel index is valid.
|
| |
|
size_t | sinkChannels () const |
| | Returns the number of sink channels.
|
| |
| virtual AudioDesc | sinkDesc (size_t channel) const |
| | Returns the audio description of a given sink channel.
|
| |
| virtual bool | setSinkDesc (size_t channel, const AudioDesc &val) |
| | Sets the audio description of a given sink channel.
|
| |
| virtual String | sinkName (size_t channel) const |
| | Returns the name of a given sink channel.
|
| |
| virtual bool | setSinkName (size_t channel, const String &val) |
| | Sets the name of a given sink channel.
|
| |
| virtual ssize_t | sinkSamplesAllowed (size_t channel) const |
| | Returns the number of samples a sink channel can currently accept.
|
| |
| | PROMEKI_SIGNAL (sinkReadyForSamples, AudioBlock *, size_t) |
| | Signal emitted whenever a sink channel can accept more samples.
|
| |
| | ObjectBase (ObjectBase *p=nullptr) |
| | Default ObjectBase constructor.
|
| |
|
virtual | ~ObjectBase () |
| | Destructor. Emits aboutToDestroy, detaches from parent, and destroys children.
|
| |
| ObjectBase * | parent () const |
| | Returns the parent object, if one. nullptr if none.
|
| |
|
void | setParent (ObjectBase *p) |
| | Sets the parent of this object. If the object already has a parent, it will be removed as a child from the old parent and added as a child to the new one.
|
| |
| const ObjectBaseList & | childList () const |
| | Returns a list of children of this object.
|
| |
| template<typename... Args> |
| int | registerSlot (Slot< Args... > *slot) |
| | Registers a slot with this object and assigns it an ID.
|
| |
| EventLoop * | eventLoop () const |
| | Returns the EventLoop this object is affiliated with.
|
| |
| void | moveToThread (EventLoop *loop) |
| | Changes the EventLoop affinity of this object.
|
| |
| int | startTimer (unsigned int intervalMs, bool singleShot=false) |
| | Starts a timer on this object's EventLoop.
|
| |
| void | stopTimer (int timerId) |
| | Stops a timer previously started with startTimer().
|
| |
|
template<typename... Args> |
| PROMEKI_NAMESPACE_BEGIN void | connect (Signal< Args... > *signal, Slot< Args... > *slot) |
| |
Base class for an audio processing block This object defines an interface for composing an audio processing chain.