All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] echomixer - display fix
@ 2005-06-07 21:23 Giuliano Pochini
  2005-06-08 14:16 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Giuliano Pochini @ 2005-06-07 21:23 UTC (permalink / raw)
  To: Alsa-devel


- Fix a display bug in the vmixer part of the graphic mixer that was
introduced recently.


Signed-off-by: Giuliano Pochini <pochini@shiny.it>

--- alsa-tools/echomixer/echomixer.c__orig	Mon Jun  6 19:39:41 2005
+++ alsa-tools/echomixer/echomixer.c	Mon Jun  6 19:43:25 2005
@@ -739,8 +739,10 @@
   // Draw vmixer elements (Vmixer cards only)
   if (vmixerId) {
     for (o=0; o<GMixerSection.Outputs; o++)
-      for (i=0; i<vmixerControl.vchannels; i++)
-        DrawBar(o+1, i+GMixerSection.VmixerFirst, VirLevel[i], DONT_DRAW, vmixerControl.mixer[o][i].Gain);
+      for (i=0; i<vmixerControl.vchannels; i++) {
+        dB=Add_dB(vmixerControl.mixer[o][i].Gain, VirLevel[i]);
+        DrawBar(o+1, i+GMixerSection.VmixerFirst, dB, DONT_DRAW, vmixerControl.mixer[o][i].Gain);
+      }
   }
 
   gtk_widget_draw(Mixdarea, &update_rect);



--
Giuliano.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-08 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-07 21:23 [PATCH] echomixer - display fix Giuliano Pochini
2005-06-08 14:16 ` Takashi Iwai
2005-06-08 15:27   ` Giuliano Pochini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.