49#define SAMPLE_RATE 44100
52#ifndef AUDIO_BUFFER_SIZE
57#define AUDIO_BUFFER_SIZE 4410
60#ifndef BUFFER_DURATION_NS
65#define BUFFER_DURATION_NS 100000000LL
81#define MAX_AMPLITUDE 32765
int64_t instant_t
Time instant.
Definition tag.h:101
int lf_play_audio_waveform(lf_waveform_t *waveform, float emphasis, instant_t start_time)
Play the specified waveform with the specified emphasis at the specified time.
void lf_stop_audio_loop()
Stop the audio loop thread.
void lf_start_audio_loop(instant_t start_time)
Start an audio loop thread that becomes ready to receive audio amplitude samples via add_to_sound().
void add_to_sound(int index_offset, double value)
Add the given value to the current write buffer at the specified index.
Time and tag definitions and functions for Lingua Franca.
Utility function for reading WAV audio files.