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

« back to all changes in this revision

Viewing changes to src/prefs/AudioIOPrefs.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:
147
147
      S.TieCheckBox( _("&Play other tracks while recording new one"),
148
148
         wxT("Duplex"),true);
149
149
#ifdef __MACOSX__
150
 
      S.TieCheckBox( _("&Hardware Playthrough (Play new track while recording it)"),
 
150
      S.TieCheckBox( _("&Hardware Playthrough: Play new track while recording it"),
151
151
         wxT("Playthrough"),false);
 
152
      S.TieCheckBox( _("&Software Playthrough: Play new track while recording it"),
 
153
         wxT("SWPlaythrough"),false);
 
154
#else
 
155
      S.TieCheckBox( _("&Software Playthrough: Play new track while recording it (uncheck when recording \"stereo mix\")"),
 
156
         wxT("SWPlaythrough"),false);
152
157
#endif
153
 
      S.TieCheckBox( _("&Software Playthrough (Play new track while recording it)"),
154
 
         wxT("SWPlaythrough"),false);
 
158
 
155
159
   }
156
160
   S.EndStatic();
157
161
   S.StartHorizontalLay( wxEXPAND, 0 );
 
162
   S.StartStatic( _("Effects Preview"),1 );
 
163
   {
 
164
      S.StartThreeColumn();
 
165
      S.TieTextBox( _("Length of preview:"), wxT("EffectsPreviewLen"), 3.0,9);
 
166
      S.AddUnits( _("seconds") );
 
167
      S.EndThreeColumn();
 
168
   }
 
169
   S.EndStatic();
158
170
   S.StartStatic( _("Cut Preview"),1 );
159
171
   {
160
172
      S.StartThreeColumn();
161
 
      S.TieTextBox( _("Play before cut region:"), wxT("CutPreviewBeforeLen"),1.0,9);
 
173
      S.TieTextBox( _("Preview before cut region:"), wxT("CutPreviewBeforeLen"),1.0,9);
162
174
      S.AddUnits(  _("seconds") );
163
 
      S.TieTextBox( _("Play after cut region:"),wxT("CutPreviewAfterLen"), 1.0,9);
 
175
      S.TieTextBox( _("Preview after cut region:"),wxT("CutPreviewAfterLen"), 1.0,9);
164
176
      S.AddUnits(  _("seconds") );
165
177
      S.EndThreeColumn();
166
178
   }
167
179
   S.EndStatic();
 
180
   S.EndHorizontalLay();
 
181
   S.StartHorizontalLay( wxEXPAND, 0 );
 
182
 
168
183
   S.StartStatic( _("Latency"),1 );
169
184
   {
170
185
      S.StartThreeColumn();
171
186
#if USE_PORTAUDIO_V19
172
187
      // only show the following controls if we use Portaudio v19, because
173
 
      // for Portaudio v19 we always use default buffer sizes
174
 
      S.TieTextBox( _("Audio to buffer:"),wxT("LatencyDuration"),100.0,9);
 
188
      // for Portaudio v18 we always use default buffer sizes
 
189
      S.TieTextBox( _("Audio to buffer:\n(higher = more latency)"),wxT("LatencyDuration"),100.0,9);
175
190
      S.AddUnits(  _("milliseconds") );
176
191
#endif
177
 
      S.TieTextBox( _("Latency correction:"),wxT("LatencyCorrection"),0.0,9);
 
192
      S.TieTextBox( _("Latency correction:\n(negative = backwards)"),wxT("LatencyCorrection"),0.0,9);
178
193
      S.AddUnits(  _("milliseconds") );
179
194
      S.EndThreeColumn();
180
195
   }
181
196
   S.EndStatic();
182
 
   S.EndHorizontalLay();
183
 
   S.StartHorizontalLay( wxEXPAND, 0 );
184
 
   S.StartStatic( _("Seek Time"),1 );
 
197
   S.StartStatic( _("Seek Time when playing"),1 );
185
198
   {
186
199
      S.StartThreeColumn();
187
200
      S.TieTextBox( _("Short period:"), wxT("SeekShortPeriod"),1.0,9);
191
204
      S.EndThreeColumn();
192
205
   }
193
206
   S.EndStatic();
194
 
   S.StartStatic( _("Effects Preview"),1 );
195
 
   {
196
 
      S.StartThreeColumn();
197
 
      S.TieTextBox( _("Play when previewing:"), wxT("EffectsPreviewLen"), 3.0,9);
198
 
      S.AddUnits( _("seconds") );
199
 
      S.EndThreeColumn();
200
 
   }
201
207
 
202
208
   gPrefs->SetPath(wxT("/"));
203
209
}
235
241
   ShuttleGui S( this, eIsSavingToPrefs );
236
242
   PopulateOrExchange( S );
237
243
 
 
244
#if USE_PORTAUDIO_V19
 
245
   double latencyDuration = 100.0;
 
246
   gPrefs->Read(wxT("/AudioIO/LatencyDuration"), &latencyDuration);
 
247
   if (latencyDuration < 0)
 
248
      gPrefs->Write(wxT("/AudioIO/LatencyDuration"), 100.0);
 
249
#endif
 
250
 
238
251
#if USE_PORTMIXER
239
252
   if (gAudioIO)
240
253
      gAudioIO->HandleDeviceChange();