|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Holds the plumbing for one audio output registered from a Nexus object. More...
#include <Sinks.hpp>
Collaboration diagram for MayaFlux::Nexus::AudioSink:Public Attributes | |
| std::shared_ptr< Buffers::AudioBuffer > | buf |
| uint32_t | channel {} |
| std::function< Kakshya::DataVariant(const InfluenceContext &)> | fn |
| std::string | fn_name |
| std::shared_ptr< Buffers::AudioWriteProcessor > | writer |
Holds the plumbing for one audio output registered from a Nexus object.
Created by add_audio_sink(). Owns the AudioBuffer and AudioWriteProcessor. The buffer is registered with the supplied BufferManager on construction and unregistered on destruction via remove_audio_sink().
If fn is set, dispatch_audio_sinks() calls it with the current InfluenceContext and forwards the result to the writer. If fn is empty, data arrives only via push_audio_data().