Base class for Pipeline modules that aquire and dispatch audio buffers (like Producer::File)
More...
|
using | Iterator = details::Iterator< decltype(_subscribers)> |
| Iterator pointing to a subscriber of this producer. More...
|
|
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 |