miniDSP
A small C library for audio DSP
Loading...
Searching...
No Matches
LA_simpleData Struct Reference

Simple audio buffer with read/write positions. More...

Data Fields

int16_t * audiodata
 Pointer to the sample buffer.
 
unsigned long len
 Total number of samples in the buffer.
 
unsigned long pos_r
 Current read position (playback).
 
unsigned long pos_w
 Current write position (recording).
 

Detailed Description

Simple audio buffer with read/write positions.

This struct is shared between the main thread and the PortAudio callback thread. The callback writes (during recording) or reads (during playback) from the buffer.

Definition at line 28 of file liveio.c.

Field Documentation

◆ audiodata

int16_t* LA_simpleData::audiodata

Pointer to the sample buffer.


Definition at line 29 of file liveio.c.

◆ len

unsigned long LA_simpleData::len

Total number of samples in the buffer.

Definition at line 30 of file liveio.c.

◆ pos_r

unsigned long LA_simpleData::pos_r

Current read position (playback).


Definition at line 31 of file liveio.c.

◆ pos_w

unsigned long LA_simpleData::pos_w

Current write position (recording).


Definition at line 32 of file liveio.c.


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