|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
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< AudioBuffer > | buffer_ref |
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.