]> code.delx.au - pulseaudio/commit
echo-cancel: keep frame_size a power of 2
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 31 Aug 2010 16:04:33 +0000 (18:04 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Sep 2010 15:31:37 +0000 (17:31 +0200)
commitd18cae458f0aabfeb4a36d82c60a00422fc98c69
tree9edfd7aa592da2a73c1d6305e9395dac44501a0a
parent1983337f0ea7008903b2a1327d4d9ce9f7b69392
echo-cancel: keep frame_size a power of 2

The speex echo canceler prefers a power of 2 for the frame size. Round down the
ideal frame_size to the nearest power of two. This makes sure we don't create
more than the requested frame_size_ms latency while still providing a power of 2
to the speex echo canceller.
src/modules/module-echo-cancel.c