LiVES  3.2.0
Data Fields
lives_audio_buf_t Struct Reference

#include <audio.h>

Data Fields

lives_operation_t operation
 
volatile boolean is_ready
 
boolean eof
 did we read EOF ? [readonly by client] More...
 
int fileno
 
off_t seek
 
ticks_t start_tc
 
int arate
 
ssize_t bytesize
 
boolean in_interleaf
 
boolean out_interleaf
 
int in_achans
 channels for _filebuffer side More...
 
int out_achans
 channels for buffer* side More...
 
int in_asamps
 
int out_asamps
 
int swap_sign
 
int swap_endian
 
double shrink_factor
 resampling ratio More...
 
size_t samp_space
 buffer space in samples (* by sizeof(type) to get bytesize) [if interleaf, also * by chans] More...
 
boolean sequential
 hint that we will read sequentially starting from seek More...
 
uint8_t ** buffer8
 sample data in 8 bit format (or NULL) More...
 
union {
   short **   buffer16
 sample data in 16 bit format (or NULL) More...
 
   uint8_t **   buffer16_8
 sample data in 8 bit format (or NULL) More...
 
}; 
 
int32_t ** buffer24
 sample data in 24 bit format (or NULL) More...
 
int32_t ** buffer32
 sample data in 32 bit format (or NULL) More...
 
float ** bufferf
 sample data in float format (or NULL) More...
 
boolean s8_signed
 
boolean s16_signed
 
boolean s24_signed
 
boolean s32_signed
 
volatile size_t samples_filled
 number of samples filled (readonly client) More...
 
size_t start_sample
 used for reading (readonly server) More...
 
uint8_t * _filebuffer
 raw data to/from file - can be cast to int16_t More...
 
ssize_t _cbytesize
 current _filebuffer bytesize; if this changes we need to realloc _filebuffer More...
 
size_t _csamp_space
 current sample buffer size in single channel samples More...
 
int _fd
 file descriptor More...
 
int _cfileno
 current fileno More...
 
int _cseek
 current seek pos More...
 
int _cachans
 current output channels More...
 
int _cin_interleaf
 
int _cout_interleaf
 
int _casamps
 current out_asamps More...
 
double _shrink_factor
 resampling ratio More...
 
volatile boolean die
 set to TRUE to shut down thread More...
 

Detailed Description

Definition at line 76 of file audio.h.

Field Documentation

◆ @1

union { ... }

◆ _cachans

int lives_audio_buf_t::_cachans

current output channels

Definition at line 134 of file audio.h.

◆ _casamps

int lives_audio_buf_t::_casamps

current out_asamps

Definition at line 137 of file audio.h.

◆ _cbytesize

ssize_t lives_audio_buf_t::_cbytesize

current _filebuffer bytesize; if this changes we need to realloc _filebuffer

Definition at line 129 of file audio.h.

◆ _cfileno

int lives_audio_buf_t::_cfileno

current fileno

Definition at line 132 of file audio.h.

◆ _cin_interleaf

int lives_audio_buf_t::_cin_interleaf

Definition at line 135 of file audio.h.

◆ _cout_interleaf

int lives_audio_buf_t::_cout_interleaf

Definition at line 136 of file audio.h.

◆ _csamp_space

size_t lives_audio_buf_t::_csamp_space

current sample buffer size in single channel samples

Definition at line 130 of file audio.h.

◆ _cseek

int lives_audio_buf_t::_cseek

current seek pos

Definition at line 133 of file audio.h.

◆ _fd

int lives_audio_buf_t::_fd

file descriptor

Definition at line 131 of file audio.h.

◆ _filebuffer

uint8_t* lives_audio_buf_t::_filebuffer

raw data to/from file - can be cast to int16_t

Definition at line 128 of file audio.h.

◆ _shrink_factor

double lives_audio_buf_t::_shrink_factor

resampling ratio

Definition at line 138 of file audio.h.

◆ arate

int lives_audio_buf_t::arate

◆ buffer16

short** lives_audio_buf_t::buffer16

sample data in 16 bit format (or NULL)

Definition at line 110 of file audio.h.

Referenced by append_to_audio_buffer16(), free_audio_frame_buffer(), push_audio_to_channel(), and sample_move_abuf_int16().

◆ buffer16_8

uint8_t** lives_audio_buf_t::buffer16_8

sample data in 8 bit format (or NULL)

Definition at line 111 of file audio.h.

◆ buffer24

int32_t** lives_audio_buf_t::buffer24

sample data in 24 bit format (or NULL)

Definition at line 113 of file audio.h.

Referenced by free_audio_frame_buffer().

◆ buffer32

int32_t** lives_audio_buf_t::buffer32

sample data in 32 bit format (or NULL)

Definition at line 114 of file audio.h.

Referenced by free_audio_frame_buffer().

◆ buffer8

uint8_t** lives_audio_buf_t::buffer8

sample data in 8 bit format (or NULL)

Definition at line 108 of file audio.h.

Referenced by free_audio_frame_buffer(), and push_audio_to_channel().

◆ bufferf

float** lives_audio_buf_t::bufferf

sample data in float format (or NULL)

Definition at line 115 of file audio.h.

Referenced by append_to_audio_bufferf(), free_audio_frame_buffer(), push_audio_to_channel(), and sample_move_abuf_float().

◆ bytesize

ssize_t lives_audio_buf_t::bytesize

Definition at line 90 of file audio.h.

◆ die

volatile boolean lives_audio_buf_t::die

set to TRUE to shut down thread

Definition at line 140 of file audio.h.

◆ eof

boolean lives_audio_buf_t::eof

did we read EOF ? [readonly by client]

Definition at line 79 of file audio.h.

◆ fileno

int lives_audio_buf_t::fileno

Definition at line 80 of file audio.h.

◆ in_achans

int lives_audio_buf_t::in_achans

channels for _filebuffer side

Definition at line 95 of file audio.h.

Referenced by init_audio_frame_buffers(), and push_audio_to_channel().

◆ in_asamps

int lives_audio_buf_t::in_asamps

Definition at line 97 of file audio.h.

◆ in_interleaf

boolean lives_audio_buf_t::in_interleaf

Definition at line 92 of file audio.h.

Referenced by init_audio_frame_buffers(), and push_audio_to_channel().

◆ is_ready

volatile boolean lives_audio_buf_t::is_ready

Definition at line 78 of file audio.h.

◆ operation

lives_operation_t lives_audio_buf_t::operation

Definition at line 77 of file audio.h.

◆ out_achans

int lives_audio_buf_t::out_achans

◆ out_asamps

int lives_audio_buf_t::out_asamps

Definition at line 98 of file audio.h.

Referenced by render_audio_segment().

◆ out_interleaf

boolean lives_audio_buf_t::out_interleaf

Definition at line 93 of file audio.h.

Referenced by init_audio_frame_buffers(), and push_audio_to_channel().

◆ s16_signed

boolean lives_audio_buf_t::s16_signed

Definition at line 119 of file audio.h.

Referenced by init_audio_frame_buffers(), and push_audio_to_channel().

◆ s24_signed

boolean lives_audio_buf_t::s24_signed

Definition at line 120 of file audio.h.

◆ s32_signed

boolean lives_audio_buf_t::s32_signed

Definition at line 121 of file audio.h.

◆ s8_signed

boolean lives_audio_buf_t::s8_signed

Definition at line 118 of file audio.h.

Referenced by push_audio_to_channel().

◆ samp_space

size_t lives_audio_buf_t::samp_space

buffer space in samples (* by sizeof(type) to get bytesize) [if interleaf, also * by chans]

Definition at line 103 of file audio.h.

Referenced by fill_abuffer_from().

◆ samples_filled

volatile size_t lives_audio_buf_t::samples_filled

◆ seek

off_t lives_audio_buf_t::seek

Definition at line 85 of file audio.h.

◆ sequential

boolean lives_audio_buf_t::sequential

hint that we will read sequentially starting from seek

Definition at line 105 of file audio.h.

◆ shrink_factor

double lives_audio_buf_t::shrink_factor

resampling ratio

Definition at line 101 of file audio.h.

◆ start_sample

size_t lives_audio_buf_t::start_sample

used for reading (readonly server)

Definition at line 125 of file audio.h.

Referenced by fill_abuffer_from(), free_audio_frame_buffer(), init_audio_frame_buffers(), sample_move_abuf_float(), and sample_move_abuf_int16().

◆ start_tc

ticks_t lives_audio_buf_t::start_tc

Definition at line 86 of file audio.h.

◆ swap_endian

int lives_audio_buf_t::swap_endian

Definition at line 100 of file audio.h.

Referenced by init_audio_frame_buffers(), and push_audio_to_channel().

◆ swap_sign

int lives_audio_buf_t::swap_sign

Definition at line 99 of file audio.h.


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