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

Colin Guthrie gmane at colin.guthr.ie
Thu Aug 11 01:39:08 PDT 2011


'Twas brillig, and Lu Guanqun at 10/08/11 17:12 did gyre and gimble:
> 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))

Thanks, in my tree now.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]



More information about the pulseaudio-discuss mailing list