diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2011-08-10 23:12:12 +0800 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-08-11 10:36:21 +0200 |
commit | 625380d809c6c9c57f669917f86cb002e36df664 (patch) | |
tree | 4430f49ff6e206ab16da505d569946db0347304f | |
parent | 1824fc6d73bf0e73bd8e3d9be197222851d7adee (diff) |
sample-util: use built-in function
use built-in function pa_frame_aligned().
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
-rw-r--r-- | 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 8a13495c..16ec4ad2 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)) |