MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nexus::AudioSink Struct Reference

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::AudioBufferbuf
 
uint32_t channel {}
 
std::function< Kakshya::DataVariant(const InfluenceContext &)> fn
 
std::string fn_name
 
std::shared_ptr< Buffers::AudioWriteProcessorwriter
 

Detailed Description

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().

Definition at line 42 of file Sinks.hpp.


The documentation for this struct was generated from the following file: