From 136759a298606b9f0c83763962e9d7819ba120c6 Mon Sep 17 00:00:00 2001 From: Tim Phipps Date: Sat, 8 May 2010 00:21:15 -0700 Subject: mixramp: Remove maths from pcm_mix when using MixRamp overlaps. --- src/pcm_mix.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pcm_mix.h') diff --git a/src/pcm_mix.h b/src/pcm_mix.h index 5134bf071..086d5501e 100644 --- a/src/pcm_mix.h +++ b/src/pcm_mix.h @@ -35,7 +35,8 @@ struct audio_format; * @param size the size of both buffers in bytes * @param format the audio format of both buffers * @param portion1 a number between 0.0 and 1.0 specifying the portion - * of the first buffer in the mix; portion2 = (1.0 - portion1) + * of the first buffer in the mix; portion2 = (1.0 - portion1). The value + * NaN is used by the MixRamp code to specify that simple addition is required. */ void pcm_mix(void *buffer1, const void *buffer2, size_t size, -- cgit v1.2.3