[polypaudio-commits] r783 - /trunk/src/polyp/volume.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Apr 23 12:46:16 PDT 2006


Author: lennart
Date: Sun Apr 23 21:46:16 2006
New Revision: 783

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=783&root=polypaudio&view=rev
Log:
fix multiplication of software pa_cvolumes

Modified:
    trunk/src/polyp/volume.c

Modified: trunk/src/polyp/volume.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/volume.c?rev=783&root=polypaudio&r1=782&r2=783&view=diff
==============================================================================
--- trunk/src/polyp/volume.c (original)
+++ trunk/src/polyp/volume.c Sun Apr 23 21:46:16 2006
@@ -154,7 +154,7 @@
     assert(a);
     assert(b);
 
-    for (i = 0; i < a->channels || i < b->channels || i < PA_CHANNELS_MAX; i++) {
+    for (i = 0; i < a->channels && i < b->channels && i < PA_CHANNELS_MAX; i++) {
 
         dest->values[i] = pa_sw_volume_multiply(
             i < a->channels ? a->values[i] : PA_VOLUME_NORM,




More information about the pulseaudio-commits mailing list