PipeWire  0.3.45
aec.h
1 /* PipeWire
2  *
3  * Copyright © 2021 Wim Taymans <wim.taymans@gmail.com>
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 
26 #include <spa/utils/dict.h>
27 #include <spa/utils/hook.h>
28 #include <spa/pod/pod.h>
29 #include <spa/param/audio/raw.h>
30 #include <spa/support/plugin.h>
31 
32 #define SPA_TYPE_INTERFACE_AEC SPA_TYPE_INFO_INTERFACE_BASE "AEC"
33 #define SPA_VERSION_AUDIO_AEC 1
34 
35 struct echo_cancel_info {
36  struct spa_interface iface;
37  const char *name;
38  const struct spa_dict info;
39  const char *latency;
40  int (*create) (struct spa_handle *handle, const struct spa_dict *args, const struct spa_audio_info_raw *info);
41  int (*run) (struct spa_handle *handle, const float *rec[], const float *play[], float *out[], uint32_t n_samples);
42  struct spa_dict *(*get_properties) (struct spa_handle *handle);
43  int (*set_properties) (struct spa_handle *handle, const struct spa_dict *args);
44 };
spa/param/audio/raw.h
spa/utils/hook.h
spa/support/plugin.h
spa/pod/pod.h
Definition: aec.h:40
int(* create)(struct spa_handle *handle, const struct spa_dict *args, const struct spa_audio_info_raw *info)
Definition: aec.h:45
const char * latency
Definition: aec.h:44
const struct spa_dict info
Definition: aec.h:43
int(* set_properties)(struct spa_handle *handle, const struct spa_dict *args)
Definition: aec.h:48
struct spa_interface iface
Definition: aec.h:41
int(* run)(struct spa_handle *handle, const float *rec[], const float *play[], float *out[], uint32_t n_samples)
Definition: aec.h:46
Audio information description.
Definition: raw.h:298
Definition: dict.h:59
Definition: plugin.h:50
Definition: hook.h:158
spa/utils/dict.h