30 #ifndef SPA_AUDIO_AEC_H 31 #define SPA_AUDIO_AEC_H 37 #define SPA_TYPE_INTERFACE_AUDIO_AEC SPA_TYPE_INFO_INTERFACE_BASE "Audio:AEC" 39 #define SPA_VERSION_AUDIO_AEC 0 48 #define SPA_AUDIO_AEC_CHANGE_MASK_PROPS (1u<<0) 55 #define SPA_VERSION_AUDIO_AEC_EVENTS 0 63 #define SPA_VERSION_AUDIO_AEC_METHODS 0 72 int (*
run) (
void *data,
const float *rec[],
const float *play[],
float *out[], uint32_t n_samples);
76 #define spa_audio_aec_method(o,method,version,...) \ 78 int _res = -ENOTSUP; \ 79 struct spa_audio_aec *_o = o; \ 80 spa_interface_call_res(&_o->iface, \ 81 struct spa_audio_aec_methods, _res, \ 82 method, version, ##__VA_ARGS__); \ 86 #define spa_audio_aec_add_listener(o,...) spa_audio_aec_method(o, add_listener, 0, __VA_ARGS__) 87 #define spa_audio_aec_init(o,...) spa_audio_aec_method(o, init, 0, __VA_ARGS__) 88 #define spa_audio_aec_run(o,...) spa_audio_aec_method(o, run, 0, __VA_ARGS__) 89 #define spa_audio_aec_set_props(o,...) spa_audio_aec_method(o, set_props, 0, __VA_ARGS__) const struct spa_dict * info
Definition: aec.h:49
void(* info)(void *data, const struct spa_audio_aec_info *info)
Emitted when info changes.
Definition: aec.h:67
Audio information description.
Definition: raw.h:299
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:342
struct spa_interface iface
Definition: aec.h:47
uint32_t version
version of this structure
Definition: aec.h:64
int(* run)(void *data, const float *rec[], const float *play[], float *out[], uint32_t n_samples)
Definition: aec.h:81
uint64_t change_mask
Definition: aec.h:56
const char * latency
Definition: aec.h:50
int(* set_props)(void *data, const struct spa_dict *args)
Definition: aec.h:82
int(* add_listener)(void *object, struct spa_hook *listener, const struct spa_audio_aec_events *events, void *data)
Definition: aec.h:75
int(* init)(void *data, const struct spa_dict *args, const struct spa_audio_info_raw *info)
Definition: aec.h:80