mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
d50d954a3c
Using callbacks is still problematic with cosmo_dlopen() due to the need to restore the TLS register. So using callbacks is even more strict than using signal handlers. We are better off introducing a cosmoaudio_poll() function. It makes the API more UNIX-like. How bad could the latency be?
12 lines
448 B
C
12 lines
448 B
C
#ifndef COSMOPOLITAN_DSP_AUDIO_DESCRIBE_H_
|
|
#define COSMOPOLITAN_DSP_AUDIO_DESCRIBE_H_
|
|
#include "dsp/audio/cosmoaudio/cosmoaudio.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
const char *cosmoaudio_describe_status(char *, int, int);
|
|
const char *cosmoaudio_describe_open_options(
|
|
char *, int, const struct CosmoAudioOpenOptions *);
|
|
const char *cosmoaudio_describe_poll_frames(char *, int, int *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_DSP_AUDIO_DESCRIBE_H_ */
|