Producer modules with an accessible constructor should inherit this one. More...
#include <ProducerModule.hpp>
Public Member Functions | |
| ProducerModuleImpl ()=default | |
| Public Member Functions inherited from Vsdk::Audio::ProducerModule | |
| ProducerModule () | |
| ProducerModule (ProducerModule &&) | |
| ProducerModule & | operator= (ProducerModule &&) |
| virtual | ~ProducerModule ()=0 |
| ProducerModule (ProducerModule const &)=delete | |
| ProducerModule & | operator= (ProducerModule const &)=delete |
| 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) noexcept |
| Unsubscribes from this producer audio buffer dispatch list. | |
| auto | state () const -> State |
| bool | isOpened () const |
| bool | isRunning () const |
| bool | isStarted () const |
| bool | isPaused () const |
| bool | isIdle () const |
| bool | isClosed () const |
| void | open () |
| Attempts to open the underlying resource(s) of the producer. | |
| void | run () |
| void | start () |
| void | pause () |
| Attempts to pause a started producer. | |
| void | resume () |
| Attempts to resume a paused producer. | |
| void | stop () |
| Attempts to stop a started producer. | |
| void | close () |
| void | setStateChangedCallback (StateChangedCallback c) |
Static Public Member Functions | |
| template<typename... Args> | |
| static auto | make (Args &&... args) -> std::shared_ptr< T > |
Additional Inherited Members | |
| Public Types inherited from Vsdk::Audio::ProducerModule | |
| enum class | State { Closed , Opened , Running , Started , Paused , Idle } |
| using | StateChangedCallback = std::function<void(State)> |
| using | Iterator = Vsdk::Utils::Iterator<decltype(_subscribers)> |
| Iterator pointing to a subscriber of this producer. | |
| Protected Member Functions inherited from Vsdk::Audio::ProducerModule | |
| virtual void | openImpl () |
| virtual void | runImpl () |
| virtual void | startImpl () |
| virtual void | pauseImpl () |
| virtual void | resumeImpl () |
| virtual void | stopImpl () |
| virtual void | closeImpl () |
| void | setState (State s) |
| void | dispatchBuffer (Buffer buffer, bool last) |
| template<typename T> | |
| void | dispatchAudio (T &&data, int sampleRate, int channelCount, bool isLast) |
Producer modules with an accessible constructor should inherit this one.
|
default |
|
static |