~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to src/toolbars/MeterToolBar.cpp

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#include "MeterToolBar.h"
34
34
 
 
35
#include "../AudioIO.h"
35
36
#include "../widgets/Meter.h"
36
37
 
37
38
IMPLEMENT_CLASS(MeterToolBar, ToolBar);
93
94
   mPlayMeter->SetToolTip( _("Output level meter") );
94
95
   mRecordMeter->SetToolTip( _("Input level meter - click to monitor input") );
95
96
#endif
 
97
 
 
98
   if (gAudioIO) {
 
99
      gAudioIO->SetMeters(mRecordMeter, mPlayMeter);
 
100
   }
 
101
}
 
102
 
 
103
bool MeterToolBar::DestroyChildren()
 
104
{
 
105
   mPlayMeter = NULL;
 
106
   mRecordMeter = NULL;
 
107
   gAudioIO->SetMeters(NULL, NULL);
 
108
   return ToolBar::DestroyChildren();
96
109
}
97
110
 
98
111
void MeterToolBar::OnSize( wxSizeEvent & evt )
160
173
   *recordMeter = mRecordMeter;
161
174
}
162
175
 
 
176
void MeterToolBar::StartMonitoring()
 
177
{
 
178
   wxASSERT( mRecordMeter );
 
179
   mRecordMeter->StartMonitoring();
 
180
   //wxASSERT( mPlayMeter );
 
181
   //mPlayMeter->StartMonitoring();
 
182
 
 
183
}
 
184
 
163
185
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
164
186
// version control system. Please do not modify past this point.
165
187
//