31#ifndef SPA_AUDIO_AEC_H
32#define SPA_AUDIO_AEC_H
38#define SPA_TYPE_INTERFACE_AUDIO_AEC SPA_TYPE_INFO_INTERFACE_BASE "Audio:AEC"
40#define SPA_VERSION_AUDIO_AEC 1
49#define SPA_AUDIO_AEC_CHANGE_MASK_PROPS (1u<<0)
56#define SPA_VERSION_AUDIO_AEC_EVENTS 0
64#define SPA_VERSION_AUDIO_AEC_METHODS 2
73 int (*
run) (
void *object,
const float *rec[],
const float *play[],
float *out[], uint32_t n_samples);
86#define spa_audio_aec_method(o,method,version,...) \
88 int _res = -ENOTSUP; \
89 struct spa_audio_aec *_o = (o); \
90 spa_interface_call_res(&_o->iface, \
91 struct spa_audio_aec_methods, _res, \
92 method, (version), ##__VA_ARGS__); \
96#define spa_audio_aec_add_listener(o,...) spa_audio_aec_method(o, add_listener, 0, __VA_ARGS__)
97#define spa_audio_aec_init(o,...) spa_audio_aec_method(o, init, 0, __VA_ARGS__)
98#define spa_audio_aec_run(o,...) spa_audio_aec_method(o, run, 0, __VA_ARGS__)
99#define spa_audio_aec_set_props(o,...) spa_audio_aec_method(o, set_props, 0, __VA_ARGS__)
100#define spa_audio_aec_activate(o) spa_audio_aec_method(o, activate, 1)
101#define spa_audio_aec_deactivate(o) spa_audio_aec_method(o, deactivate, 1)
102#define spa_audio_aec_enum_props(o,...) spa_audio_aec_method(o, enum_props, 2, __VA_ARGS__)
103#define spa_audio_aec_get_params(o,...) spa_audio_aec_method(o, get_params, 2, __VA_ARGS__)
104#define spa_audio_aec_set_params(o,...) spa_audio_aec_method(o, set_params, 2, __VA_ARGS__)
void(* info)(void *data, const struct spa_audio_aec_info *info)
Emitted when info changes.
Definition: aec.h:68
uint32_t version
version of this structure
Definition: aec.h:65
uint64_t change_mask
Definition: aec.h:57
int(* get_params)(void *object, struct spa_pod_builder *builder)
Definition: aec.h:91
int(* add_listener)(void *object, struct spa_hook *listener, const struct spa_audio_aec_events *events, void *data)
Definition: aec.h:76
int(* set_props)(void *object, const struct spa_dict *args)
Definition: aec.h:83
int(* deactivate)(void *object)
Definition: aec.h:87
int(* activate)(void *object)
Definition: aec.h:85
int(* enum_props)(void *object, int index, struct spa_pod_builder *builder)
Definition: aec.h:90
int(* run)(void *object, const float *rec[], const float *play[], float *out[], uint32_t n_samples)
Definition: aec.h:82
int(* set_params)(void *object, const struct spa_pod *args)
Definition: aec.h:92
int(* init)(void *object, const struct spa_dict *args, const struct spa_audio_info_raw *info)
Definition: aec.h:81
const struct spa_dict * info
Definition: aec.h:50
const char * latency
Definition: aec.h:51
struct spa_interface iface
Definition: aec.h:48
Audio information description.
Definition: audio/raw.h:298
Definition: utils/dict.h:59
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:351