mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
echo-cancel: Add function pa_echo_canceller_blocksize_power2()
computes EC block size in frames (rounded down to nearest power-of-2) based on sample rate and milliseconds move code from speex AEC implementation to module-echo-cancel such that functionality can be reused by other AEC implementations Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
This commit is contained in:
parent
e845c86c64
commit
db7415b7e9
3 changed files with 22 additions and 9 deletions
|
|
@ -131,6 +131,10 @@ struct pa_echo_canceller {
|
|||
void pa_echo_canceller_get_capture_volume(pa_echo_canceller *ec, pa_cvolume *v);
|
||||
void pa_echo_canceller_set_capture_volume(pa_echo_canceller *ec, pa_cvolume *v);
|
||||
|
||||
/* Computes EC block size in frames (rounded down to nearest power-of-2) based
|
||||
* on sample rate and milliseconds. */
|
||||
uint32_t pa_echo_canceller_blocksize_power2(unsigned rate, unsigned ms);
|
||||
|
||||
/* Null canceller functions */
|
||||
pa_bool_t pa_null_ec_init(pa_core *c, pa_echo_canceller *ec,
|
||||
pa_sample_spec *source_ss, pa_channel_map *source_map,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue