audiobuffersplit: Calculate the correct size for fixed size buffers
authorJan Schmidt <jan@centricular.com>
Wed, 16 Dec 2020 17:41:18 +0000 (04:41 +1100)
committerJan Schmidt <jan@centricular.com>
Wed, 16 Dec 2020 17:41:18 +0000 (04:41 +1100)
commit1b3ba87d137d64306fb3f2a1bdf980acafa5d60c
treec9cc967c34f2e905142b4f47b73d65fd216f14e5
parentc123b79900dbb72396091f5be5be3df0bf62e24c
audiobuffersplit: Calculate the correct size for fixed size buffers

Fix the output-buffer-size property to do what it says by calculating
the correct audio buffer size for that target size, rounded down to
the nearest whole number of samples.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1887>
gst/audiobuffersplit/gstaudiobuffersplit.c