[pulseaudio-discuss] [PATCH 2/2] sample-util: use built-in function

Lu Guanqun guanqun.lu at intel.com
Wed Aug 10 08:12:12 PDT 2011


use built-in function pa_frame_aligned().

Signed-off-by: Lu Guanqun <guanqun.lu at intel.com>
---
 src/pulsecore/sample-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pulsecore/sample-util.c b/src/pulsecore/sample-util.c
index 8a13495..16ec4ad 100644
--- a/src/pulsecore/sample-util.c
+++ b/src/pulsecore/sample-util.c
@@ -734,7 +734,7 @@ void pa_volume_memchunk(
 
     pa_assert(c);
     pa_assert(spec);
-    pa_assert(c->length % pa_frame_size(spec) == 0);
+    pa_assert(pa_frame_aligned(c->length, spec));
     pa_assert(volume);
 
     if (pa_memblock_is_silence(c->memblock))



More information about the pulseaudio-discuss mailing list