71 unsigned samprate,
int rectype);
103LaError_t LA_play(
const void *buffer,
unsigned long bufsize,
unsigned samprate);
double LA_get_cur_play_time(void)
Get the current time (in seconds) of the playback stream.
int LA_is_playing(void)
Check if the playback stream is active.
int LaError_t
Return type for live audio functions.
LaError_t LA_terminate(void)
Shut down the PortAudio system.
LaError_t LA_init(void)
Initialise the PortAudio system.
LaError_t LA_record(void *buffer, unsigned long bufsize, unsigned samprate, int rectype)
Record audio from the default input device into a buffer.
LaError_t LA_play(const void *buffer, unsigned long bufsize, unsigned samprate)
Play audio from a buffer to the default output device.
LA_RECORDTYPE
Recording modes for LA_record().
@ LA_REC_CONT
Record continuously in a circular buffer.
@ LA_REC_ONCE
Record until the buffer is full, then stop.
LaError_t LA_record_callback(unsigned samprate, PaStreamCallback *cb, void *cb_data)
Record using a user-supplied PortAudio callback function.
void LA_stop_recording(void)
Stop the current recording.
LaError_t LA_play_callback(unsigned samprate, PaStreamCallback *cb, void *cb_data)
Play using a user-supplied PortAudio callback function.
LA_ERRORCODE
Error codes returned by live audio functions.
@ LA_OK
Operation succeeded.
@ LA_ERROR
Something went wrong.
int LA_is_recording(void)
Check if the recording stream is active.
void LA_print_last_error(FILE *stream)
Print the last PortAudio error message to the given stream.
void LA_stop_playing(void)
Stop the current playback.
double LA_get_cur_record_time(void)
Get the current time (in seconds) of the recording stream.