Loading...
Searching...
No Matches
Gfx::GStreamer::AudioBuffer Struct Reference

Public Member Functions

void init (int nchannels)
 
void write (const float *interleaved, int num_samples, int channels)
 
void read_into_output (int block_size)
 

Public Attributes

int sample_rate {48000}
 
int num_channels {2}
 
std::vector< std::vector< float > > ring
 
std::atomic< std::size_t > write_pos {0}
 
std::atomic< std::size_t > read_pos {0}
 
std::vector< ossia::float_vector > * output_data {}
 
ossia::small_vector< std::span< float >, 8 > * output_spans {}
 

Static Public Attributes

static constexpr std::size_t ring_size = 65536
 
static constexpr std::size_t max_block = 1 << 15
 

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