X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e8c185c3c5870f21f8352c9684e6feb9c1ef37a5..ec57f6c97b41d54ade912f7e3b9f727b40e38e16:/lib/uaudio.h diff --git a/lib/uaudio.h b/lib/uaudio.h index a6996f8..be396df 100644 --- a/lib/uaudio.h +++ b/lib/uaudio.h @@ -103,23 +103,40 @@ void uaudio_thread_start(uaudio_callback *callback, void uaudio_thread_stop(void); void uaudio_thread_activate(void); void uaudio_thread_deactivate(void); +void uaudio_schedule_synchronize(void); +void uaudio_schedule_update(size_t written_samples); +void uaudio_schedule_init(void); + +extern uint64_t uaudio_schedule_timestamp; +extern int uaudio_schedule_reactivated; #if HAVE_COREAUDIO_AUDIOHARDWARE_H extern const struct uaudio uaudio_coreaudio; +#ifndef UAUDIO_DEFAULT +# define UAUDIO_DEFAULT uaudio_coreaudio +#endif #endif #if HAVE_ALSA_ASOUNDLIB_H extern const struct uaudio uaudio_alsa; +#ifndef UAUDIO_DEFAULT +# define UAUDIO_DEFAULT uaudio_alsa +#endif #endif #if HAVE_SYS_SOUNDCARD_H || EMPEG_HOST extern const struct uaudio uaudio_oss; +#ifndef UAUDIO_DEFAULT +# define UAUDIO_DEFAULT uaudio_oss +#endif #endif extern const struct uaudio uaudio_rtp; -extern const struct uaudio uaudio_command; +#ifndef UAUDIO_DEFAULT +# define UAUDIO_DEFAULT uaudio_rtp +#endif -extern const struct uaudio *uaudio_apis[]; +extern const struct uaudio uaudio_command; #endif /* UAUDIO_H */