Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv10449

Modified Files:
        Meter.cpp 
Log Message:
Use currently selected project rate for monitoring

Index: Meter.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/Meter.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- Meter.cpp   16 Sep 2006 05:54:38 -0000      1.24
+++ Meter.cpp   4 Oct 2006 02:43:56 -0000       1.25
@@ -910,11 +910,11 @@
          OnDisableMeter(dummy);
       }
       
-      gAudioIO->StartMonitoring(44100.0);
       AudacityProject *p = GetActiveProject();
       if (p) {
-         MeterToolBar *bar;
-         bar = p->GetMeterToolBar();
+         gAudioIO->StartMonitoring(p->GetRate());
+
+         MeterToolBar *bar = p->GetMeterToolBar();
          if (bar) {
             Meter *play, *record;
             bar->GetMeters(&play, &record);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to