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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



'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/]



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux