Base class for Pipeline modules that aquire and dispatch audio buffers (like Producer::File)
More...
#include <Pipeline.hpp>
|
| using | Iterator = details::Iterator< decltype(_subscribers)> |
| | Iterator pointing to a subscriber of this producer.
|
| |
|
| virtual | ~ProducerModule ()=0 |
| |
| auto | subscribeFirst (AudioCallback c) -> Iterator |
| | Subscribes as first in the list of audio buffer receivers for this producer.
|
| |
| auto | subscribeLast (AudioCallback c) -> Iterator |
| | Subscribes as last in the list of audio buffer receivers for this producer.
|
| |
| void | unsubscribe (Iterator it) |
| | Unsubscribes from this producer audio buffer dispatch list.
|
| |
| virtual bool | open () |
| |
| virtual bool | run () |
| |
| virtual bool | start () |
| |
| virtual bool | stop () |
| |
| virtual bool | resume () |
| | Non-blocking call.
|
| |
| virtual bool | close () |
| |
| auto | lastError () const -> std::string const & |
| |
Base class for Pipeline modules that aquire and dispatch audio buffers (like Producer::File)
◆ Iterator
Iterator pointing to a subscriber of this producer.
◆ ProducerModule()
| Vsdk::Audio::ProducerModule::ProducerModule |
( |
| ) |
|
|
protecteddefault |
◆ ~ProducerModule()
| Vsdk::Audio::ProducerModule::~ProducerModule |
( |
| ) |
|
|
pure virtualdefault |
◆ subscribeFirst()
| auto ProducerModule::subscribeFirst |
( |
AudioCallback |
c | ) |
-> Iterator |
Subscribes as first in the list of audio buffer receivers for this producer.
◆ subscribeLast()
| auto ProducerModule::subscribeLast |
( |
AudioCallback |
c | ) |
-> Iterator |
Subscribes as last in the list of audio buffer receivers for this producer.
◆ unsubscribe()
| void ProducerModule::unsubscribe |
( |
Iterator |
it | ) |
|
Unsubscribes from this producer audio buffer dispatch list.
◆ open()
| virtual bool Vsdk::Audio::ProducerModule::open |
( |
| ) |
|
|
virtual |
◆ run()
| bool ProducerModule::run |
( |
| ) |
|
|
virtual |
◆ start()
| bool ProducerModule::start |
( |
| ) |
|
|
virtual |
◆ stop()
| bool ProducerModule::stop |
( |
| ) |
|
|
virtual |
◆ resume()
| bool ProducerModule::resume |
( |
| ) |
|
|
virtual |
Non-blocking call.
- Warning
- Do not override if you do not support async operations!
◆ close()
| virtual bool Vsdk::Audio::ProducerModule::close |
( |
| ) |
|
|
virtual |
◆ lastError()
| auto ProducerModule::lastError |
( |
| ) |
const -> std::string const & |
◆ setLastError() [1/2]
template<typename... Args>
| void Vsdk::Audio::ProducerModule::setLastError |
( |
char const * |
fmt, |
|
|
Args &&... |
args |
|
) |
| |
|
protected |
◆ setLastError() [2/2]
| void ProducerModule::setLastError |
( |
std::string |
error | ) |
|
|
protected |
◆ dispatchBuffer()
| void ProducerModule::dispatchBuffer |
( |
Buffer |
buffer, |
|
|
bool |
last |
|
) |
| |
|
protected |
◆ dispatchAudio()
template<typename T >
| void Vsdk::Audio::ProducerModule::dispatchAudio |
( |
T && |
data, |
|
|
int |
sampleRate, |
|
|
int |
channelCount, |
|
|
bool |
isLast |
|
) |
| |
|
protected |