mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
core: Replace assert()s with pa_assert()s
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
59334021d3
commit
101092465d
7 changed files with 11 additions and 12 deletions
|
|
@ -1559,14 +1559,14 @@ uint32_t pa_echo_canceller_blocksize_power2(unsigned rate, unsigned ms) {
|
|||
unsigned nframes = (rate * ms) / 1000;
|
||||
uint32_t y = 1 << ((8 * sizeof(uint32_t)) - 2);
|
||||
|
||||
assert(rate >= 4000);
|
||||
assert(ms >= 1);
|
||||
pa_assert(rate >= 4000);
|
||||
pa_assert(ms >= 1);
|
||||
|
||||
/* nframes should be a power of 2, round down to nearest power of two */
|
||||
while (y > nframes)
|
||||
y >>= 1;
|
||||
|
||||
assert(y >= 1);
|
||||
pa_assert(y >= 1);
|
||||
return y;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue