#pragma once #include #include "../codec/codec.h" struct camu_audio { bool (*init)(struct camu_audio *, str *); void (*pick_format)(struct camu_audio *, struct camu_resampler_format *); bool (*configure_stream)(struct camu_audio *, void *); u64 (*get_latency)(struct camu_audio *); void (*start)(struct camu_audio *); void (*stop)(struct camu_audio *); void (*free)(struct camu_audio **); s32 (*data_callback)(void *, u8 *, s32, bool *); void *userdata; };