#include <BufferModule.hpp>
Public Member Functions | |
BufferModule () noexcept | |
BufferModule (size_t fireRate) noexcept | |
~BufferModule () override | |
auto | buffer () -> Buffer & |
auto | buffer () const -> Buffer const & |
auto | fireRate () const -> size_t |
void | setFireRate (size_t fireRate) |
bool | run () override |
bool | start () override |
bool | stop () override |
Public Member Functions inherited from Vsdk::Audio::ProducerModule | |
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 & |
Public Member Functions inherited from Vsdk::Audio::ConsumerModule | |
virtual | ~ConsumerModule ()=default |
virtual void | process (Buffer const &, bool last)=0 |
Additional Inherited Members | |
Public Types inherited from Vsdk::Audio::ProducerModule | |
using | Iterator = details::Iterator< decltype(_subscribers)> |
Iterator pointing to a subscriber of this producer. | |
Static Public Member Functions inherited from Vsdk::Audio::ProducerModuleImpl< BufferModule > | |
static auto | make (Args &&... args) -> std::shared_ptr< BufferModule > |
Protected Member Functions inherited from Vsdk::Audio::ProducerModuleImpl< BufferModule > | |
ProducerModuleImpl ()=default | |
Protected Member Functions inherited from Vsdk::Audio::ProducerModule | |
ProducerModule ()=default | |
template<typename... Args> | |
void | setLastError (char const *fmt, Args &&... args) |
void | setLastError (std::string error) |
void | dispatchBuffer (Buffer buffer, bool last) |
template<typename T > | |
void | dispatchAudio (T &&data, int sampleRate, int channelCount, bool isLast) |
|
noexcept |
|
explicitnoexcept |
|
override |
auto Vsdk::Audio::BufferModule::buffer | ( | ) | -> Buffer & |
auto Vsdk::Audio::BufferModule::buffer | ( | ) | const -> Buffer const & |
auto Vsdk::Audio::BufferModule::fireRate | ( | ) | const -> size_t |
void Vsdk::Audio::BufferModule::setFireRate | ( | size_t | fireRate | ) |
|
overridevirtual |
Reimplemented from Vsdk::Audio::ProducerModule.
|
overridevirtual |
Reimplemented from Vsdk::Audio::ProducerModule.
|
overridevirtual |
Reimplemented from Vsdk::Audio::ProducerModule.