MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Buffers::MixSource Struct Reference

Represents a source audio buffer with its data and mixing properties. More...

#include <MixProcessor.hpp>

+ Collaboration diagram for MayaFlux::Buffers::MixSource:

Public Member Functions

 MixSource (std::shared_ptr< AudioBuffer > buffer, double level=1.0, bool once_flag=false)
 
bool is_valid () const
 
bool refresh_data ()
 
bool matches_buffer (const std::shared_ptr< AudioBuffer > &buffer) const
 
bool has_sample_at (size_t index) const
 
double get_mixed_sample (size_t index) const
 

Public Attributes

std::span< double > data
 
double mix_level = 1.0
 
bool once = false
 

Private Attributes

std::weak_ptr< AudioBufferbuffer_ref
 

Detailed Description

Represents a source audio buffer with its data and mixing properties.

This structure holds a reference to an audio buffer and its data, along with the mix level and a flag indicating if it should be mixed only once.

Definition at line 15 of file MixProcessor.hpp.


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