Audacity  2.2.2
Macros | Functions
Audacity.h File Reference

Go to the source code of this file.

Macros

#define AUDACITY_BUILD_LEVEL   0
 
#define IS_ALPHA
 
#define USE_ALPHA_MANUAL
 
#define AUDACITY_VERSION   2
 
#define AUDACITY_RELEASE   3
 
#define AUDACITY_REVISION   0
 
#define AUDACITY_MODLEVEL   0
 
#define AUDACITY_SUFFIX   wxT("-alpha-") __TDATE__
 
#define AUDACITY_MAKESTR(x)   #x
 
#define AUDACITY_QUOTE(x)   AUDACITY_MAKESTR( x )
 
#define AUDACITY_VERSION_STRING
 
#define AUDACITY_FILE_VERSION
 
#define AUDACITY_PREFS_VERSION_STRING   "1.1.1r1"
 
#define AUDACITY_FILE_FORMAT_VERSION   "1.3.0"
 
#define PLATFORM_MAX_PATH   260
 
#define PROFILE_DLL_API   AUDACITY_DLL_API
 
#define QUANTIZED_TIME(time, rate)   (floor(((double)(time) * (rate)) + 0.5) / (rate))
 
#define DB_TO_LINEAR(x)   (pow(10.0, (x) / 20.0))
 
#define LINEAR_TO_DB(x)   (20.0 * log10(x))
 
#define MAX_AUDIO   (1. - 1./(1<<15))
 
#define JUST_BELOW_MAX_AUDIO   (1.f - 1.f/(1<<14))
 
#define PROHIBITED   = delete
 
#define safenew   new
 
#define __AUDACITY_H__
 
#define AUDACITY_BUILD_LEVEL   0
 
#define IS_ALPHA
 
#define USE_ALPHA_MANUAL
 
#define AUDACITY_VERSION   2
 
#define AUDACITY_RELEASE   3
 
#define AUDACITY_REVISION   0
 
#define AUDACITY_MODLEVEL   0
 
#define AUDACITY_SUFFIX   wxT("-alpha-") __TDATE__
 
#define AUDACITY_MAKESTR(x)   #x
 
#define AUDACITY_QUOTE(x)   AUDACITY_MAKESTR( x )
 
#define AUDACITY_VERSION_STRING
 
#define AUDACITY_FILE_VERSION
 
#define AUDACITY_PREFS_VERSION_STRING   "1.1.1r1"
 
#define AUDACITY_FILE_FORMAT_VERSION   "1.3.0"
 
#define PLATFORM_MAX_PATH   260
 
#define PROFILE_DLL_API   AUDACITY_DLL_API
 
#define QUANTIZED_TIME(time, rate)   (floor(((double)(time) * (rate)) + 0.5) / (rate))
 
#define DB_TO_LINEAR(x)   (pow(10.0, (x) / 20.0))
 
#define LINEAR_TO_DB(x)   (20.0 * log10(x))
 
#define MAX_AUDIO   (1. - 1./(1<<15))
 
#define JUST_BELOW_MAX_AUDIO   (1.f - 1.f/(1<<14))
 
#define PROHIBITED   = delete
 
#define safenew   new
 

Functions

void QuitAudacity (bool bForce)
 
void QuitAudacity ()
 

Detailed Description

This is the main include file for Audacity. All files which need any Audacity-specific #defines or need to access any of Audacity's global functions should #include this file.

Definition in file Audacity.h.

Macro Definition Documentation

#define __AUDACITY_H__
#define AUDACITY_BUILD_LEVEL   0

Definition at line 42 of file Audacity.h.

#define AUDACITY_BUILD_LEVEL   0
#define AUDACITY_FILE_FORMAT_VERSION   "1.3.0"
#define AUDACITY_FILE_FORMAT_VERSION   "1.3.0"

Definition at line 108 of file Audacity.h.

Referenced by AudacityProject::HandleXMLTag(), and AudacityProject::WriteXML().

#define AUDACITY_FILE_VERSION
Value:
#define AUDACITY_RELEASE
#define AUDACITY_MODLEVEL
#define AUDACITY_REVISION
#define AUDACITY_VERSION
#define AUDACITY_QUOTE(x)
#define AUDACITY_FILE_VERSION
Value:
#define AUDACITY_REVISION
Definition: Audacity.h:65
#define AUDACITY_VERSION
Definition: Audacity.h:63
#define AUDACITY_QUOTE(x)
Definition: Audacity.h:78
#define AUDACITY_RELEASE
Definition: Audacity.h:64
#define AUDACITY_MODLEVEL
Definition: Audacity.h:66

Definition at line 94 of file Audacity.h.

#define AUDACITY_MAKESTR (   x)    #x

Definition at line 77 of file Audacity.h.

#define AUDACITY_MAKESTR (   x)    #x
#define AUDACITY_MODLEVEL   0

Definition at line 66 of file Audacity.h.

#define AUDACITY_MODLEVEL   0
#define AUDACITY_PREFS_VERSION_STRING   "1.1.1r1"
#define AUDACITY_PREFS_VERSION_STRING   "1.1.1r1"

Definition at line 104 of file Audacity.h.

Referenced by InitPreferences().

#define AUDACITY_QUOTE (   x)    AUDACITY_MAKESTR( x )
#define AUDACITY_QUOTE (   x)    AUDACITY_MAKESTR( x )

Definition at line 78 of file Audacity.h.

#define AUDACITY_RELEASE   3

Definition at line 64 of file Audacity.h.

Referenced by MP3Exporter::InitLibrary(), InitPreferences(), and NyquistEffect::Process().

#define AUDACITY_RELEASE   3
#define AUDACITY_REVISION   0

Definition at line 65 of file Audacity.h.

Referenced by MP3Exporter::InitLibrary(), InitPreferences(), and NyquistEffect::Process().

#define AUDACITY_REVISION   0
#define AUDACITY_SUFFIX   wxT("-alpha-") __TDATE__
#define AUDACITY_SUFFIX   wxT("-alpha-") __TDATE__

Definition at line 71 of file Audacity.h.

#define AUDACITY_VERSION   2

Definition at line 63 of file Audacity.h.

Referenced by MP3Exporter::InitLibrary(), InitPreferences(), and NyquistEffect::Process().

#define AUDACITY_VERSION   2
#define AUDACITY_VERSION_STRING
Value:
wxT( AUDACITY_QUOTE( AUDACITY_VERSION ) ) wxT(".") \
wxT( AUDACITY_QUOTE( AUDACITY_RELEASE ) ) wxT(".") \
#define AUDACITY_RELEASE
#define AUDACITY_REVISION
#define AUDACITY_SUFFIX
#define AUDACITY_VERSION
#define AUDACITY_QUOTE(x)
#define AUDACITY_VERSION_STRING
#define DB_TO_LINEAR (   x)    (pow(10.0, (x) / 20.0))

Definition at line 216 of file Audacity.h.

#define DB_TO_LINEAR (   x)    (pow(10.0, (x) / 20.0))
#define IS_ALPHA

Definition at line 51 of file Audacity.h.

#define IS_ALPHA
#define JUST_BELOW_MAX_AUDIO   (1.f - 1.f/(1<<14))
#define JUST_BELOW_MAX_AUDIO   (1.f - 1.f/(1<<14))

Definition at line 220 of file Audacity.h.

Referenced by ODPCMAliasBlockFile::GetMinMaxRMS().

#define LINEAR_TO_DB (   x)    (20.0 * log10(x))
#define LINEAR_TO_DB (   x)    (20.0 * log10(x))
#define MAX_AUDIO   (1. - 1./(1<<15))
#define MAX_AUDIO   (1. - 1./(1<<15))
#define PLATFORM_MAX_PATH   260
#define PLATFORM_MAX_PATH   260
#define PROFILE_DLL_API   AUDACITY_DLL_API
#define PROFILE_DLL_API   AUDACITY_DLL_API

Definition at line 176 of file Audacity.h.

#define PROHIBITED   = delete

Definition at line 224 of file Audacity.h.

#define PROHIBITED   = delete
#define QUANTIZED_TIME (   time,
  rate 
)    (floor(((double)(time) * (rate)) + 0.5) / (rate))

Definition at line 214 of file Audacity.h.

Referenced by Effect::DoEffect(), and AudacityProject::HandlePasteNothingSelected().

#define QUANTIZED_TIME (   time,
  rate 
)    (floor(((double)(time) * (rate)) + 0.5) / (rate))
#define safenew   new
#define safenew   new

Definition at line 230 of file Audacity.h.

Referenced by AboutDialog::AboutDialog(), Effect::AddAnalysisTrack(), ShuttleGui::AddAttachableScrollBar(), ShuttleGuiBase::AddBitmapButton(), ShuttleGuiBase::AddButton(), ShuttleGuiBase::AddCheckBox(), ShuttleGuiBase::AddCheckBoxOnRight(), ShuttleGuiBase::AddChoice(), ShuttleGuiBase::AddCombo(), ShuttleGuiBase::AddConstTextBox(), ShuttleGuiBase::AddFixedText(), ShuttleGuiBase::AddGrid(), ShuttleGui::AddGuiWaveTrack(), ShuttleGuiBase::AddIcon(), ShuttleGuiBase::AddListBox(), ShuttleGuiBase::AddListControl(), ShuttleGuiBase::AddListControlReportMode(), ShuttleGuiBase::AddMenu(), ProgressDialog::AddMessageAsColumn(), ShuttleGuiBase::AddNumericTextBox(), ShuttleGuiBase::AddPrompt(), ShuttleGuiBase::AddRadioButton(), ShuttleGuiBase::AddRadioButtonToGroup(), ShuttleGuiBase::AddSlider(), ShuttleGuiBase::AddSpinCtrl(), ShuttleGuiBase::AddTextBox(), ShuttleGuiBase::AddTextWindow(), SelectionBar::AddTime(), SelectionBar::AddTitle(), ShuttleGuiBase::AddTitle(), ShuttleGuiBase::AddTree(), ShuttleGuiBase::AddUnits(), ShuttleGuiBase::AddVariableText(), SelectionBar::AddVLine(), ControlToolBar::ArrangeButtons(), AskCopyOrEdit(), ASlider::ASlider(), AudacityProject::AudacityProject(), PopupMenuTable::BuildMenu(), AppCommandEvent::Clone(), GrabberEvent::Clone(), NumericEditor::Clone(), NumericRenderer::Clone(), ChoiceEditor::Clone(), ComboEditor::Clone(), ContrastDialog::ContrastDialog(), WaveTrack::Copy(), LabelTrack::CopySelectedText(), NumericEditor::Create(), ProgressDialog::Create(), ChoiceEditor::Create(), TrackList::Create(), LabelTrack::CreateCustomGlyphs(), LadspaEffectsModule::CreateInstance(), CreateNewAudacityProject(), AudacityApp::CreateSingleInstanceChecker(), CreateStdButtonSizer(), AudacityCommand::CreateUI(), Effect::CreateUI(), Exporter::CreateUserPane(), LabelTrack::CutSelectedText(), DECLARE_MODULE_ENTRY(), LWSlider::DrawToBitmap(), WaveTrack::Duplicate(), ErrorDialog::ErrorDialog(), ExportMixerDialog::ExportMixerDialog(), FreqWindow::FreqWindow(), CommandDirectory::Get(), ModuleManager::Get(), PluginManager::Get(), Grid::Grid(), HistoryWindow::HistoryWindow(), HtmlWindow::HtmlWindow(), ImportStreamDialog::ImportStreamDialog(), ShuttleGuiBase::Init(), ODManager::Init(), AButton::Init(), InitAudioIO(), EffectUIHost::Initialize(), InitializeFFT(), ODManager::InstanceFirstTime(), KeyView::KeyView(), LyricsPanel::LyricsPanel(), LyricsWindow::LyricsWindow(), ToolBar::MakeButton(), Scrubber::MaybeStartScrubbing(), MixerBoard::MixerBoard(), MixerBoardFrame::MixerBoardFrame(), MultiDialog::MultiDialog(), TimerRecordDialog::NewPathControl(), TrackFactory::NewWaveTrack(), TrackPanel::AudacityTimer::Notify(), IPCServ::OnAcceptConnection(), AudacityProject::OnApplyMacrosPalette(), AudacityProject::OnContrast(), DependencyDialog::OnCopyToClipboard(), AudacityProject::OnHistory(), AudacityApp::OnInit(), AudacityProject::OnKaraoke(), AudacityProject::OnManageMacros(), AudacityApp::OnMenuAbout(), AudacityProject::OnMixerBoard(), AudacityProject::OnPlotSpectrum(), LabelTrackMenuTable::OnSetFont(), AudacityProject::OnShow(), OpenScreenshotTools(), PlaybackPrefsFactory::operator()(), BatchPrefsFactory::operator()(), WarningsPrefsFactory::operator()(), ProjectsPrefsFactory::operator()(), ImportExportPrefsFactory::operator()(), EffectsPrefsFactory::operator()(), TracksBehaviorsPrefsFactory::operator()(), MousePrefsFactory::operator()(), DirectoriesPrefsFactory::operator()(), ThemePrefsFactory::operator()(), RecordingPrefsFactory::operator()(), LibraryPrefsFactory::operator()(), TracksPrefsFactory::operator()(), GUIPrefsFactory::operator()(), ModulePrefsFactory::operator()(), DevicePrefsFactory::operator()(), QualityPrefsFactory::operator()(), WaveformPrefsFactory::operator()(), KeyConfigPrefsFactory::operator()(), SpectrumPrefsFactory::operator()(), ExtImportPrefsFactory::operator()(), ExportPlugin::OptionsCreate(), ExportCL::OptionsCreate(), ExportPCM::OptionsCreate(), ExportMP3::OptionsCreate(), DeviceToolBar::Populate(), MixerToolBar::Populate(), SplashDialog::Populate(), SpectralSelectionBar::Populate(), MeterToolBar::Populate(), SelectionBar::Populate(), ToolsToolBar::Populate(), TranscriptionToolBar::Populate(), AboutDialog::PopulateAudacityPage(), AboutDialog::PopulateInformationPage(), LabelDialog::PopulateLabels(), AboutDialog::PopulateLicensePage(), TimeDialog::PopulateOrExchange(), EffectSilence::PopulateOrExchange(), KeyConfigPrefs::PopulateOrExchange(), ExtImportPrefs::PopulateOrExchange(), EffectNoise::PopulateOrExchange(), EffectToneGen::PopulateOrExchange(), EffectCompressor::PopulateOrExchange(), EffectAutoDuck::PopulateOrExchange(), EffectDtmf::PopulateOrExchange(), EffectChangeSpeed::PopulateOrExchange(), LabelDialog::PopulateOrExchange(), ScreenFrame::PopulateOrExchange(), EffectScienFilter::PopulateOrExchange(), TimerRecordDialog::PopulateOrExchange(), ExportMultiple::PopulateOrExchange(), EffectEqualization::PopulateOrExchange(), TagsEditor::PopulateOrExchange(), PluginRegistrationDialog::PopulateOrExchange(), LadspaEffect::PopulateUI(), PrefsDialog::PrefsDialog(), ScreenFrame::ProcessEvent(), ToolManager::ReadConfig(), ToolBar::ReCreateButtons(), AdornedRulerPanel::ReCreateButtons(), AudacityProject::RecreateMixerBoard(), ToolManager::Reset(), AudacityLogger::Show(), SplashDialog::Show2(), ShowAliasMissingDialog(), HelpSystem::ShowHtmlText(), EffectUIHost::ShowModal(), ShowModelessErrorDialog(), SliderDialog::SliderDialog(), ODManager::Start(), ShuttleGuiBase::StartInvisiblePanel(), ExpandingToolBar::StartMoving(), ShuttleGuiBase::StartNotebook(), ShuttleGuiBase::StartNotebookPage(), ShuttleGuiBase::StartPanel(), ShuttleGuiBase::StartScroller(), ShuttleGuiBase::StartStatic(), ShuttleGuiBase::TieRadioButton(), ToolManager::ToolManager(), TrackPanelFactory(), ToolManager::UndockBar(), and MixerBoard::UpdateTrackClusters().

#define USE_ALPHA_MANUAL

Definition at line 52 of file Audacity.h.

#define USE_ALPHA_MANUAL

Function Documentation

void QuitAudacity ( bool  bForce)

Definition at line 268 of file AudacityApp.cpp.

Referenced by AudacityProject::OnCloseWindow(), AudacityProject::OnExit(), and AudacityProject::OnTimerRecord().

269 {
270  if (gIsQuitting)
271  return;
272 
273  gIsQuitting = true;
274 
275  wxTheApp->SetExitOnFrameDelete(true);
276 
277  // Try to close each open window. If the user hits Cancel
278  // in a Save Changes dialog, don't continue.
279  // BG: unless force is true
280 
281  // BG: Are there any projects open?
282  //- if (!gAudacityProjects.IsEmpty())
283 /*start+*/
284  if (gAudacityProjects.empty())
285  {
286 #ifdef __WXMAC__
288 #endif
289  }
290  else
291 /*end+*/
292  {
293  SaveWindowSize();
294  while (gAudacityProjects.size())
295  {
296  // Closing the project has global side-effect
297  // of deletion from gAudacityProjects
298  if (bForce)
299  {
300  gAudacityProjects[0]->Close(true);
301  }
302  else
303  {
304  if (!gAudacityProjects[0]->Close())
305  {
306  gIsQuitting = false;
307  return;
308  }
309  }
310  }
311  }
312 
314 
315 #ifdef EXPERIMENTAL_SCOREALIGN
317 #endif
319 
320  //release ODManager Threads
321  ODManager::Quit();
322 
323  //print out profile if we have one by deleting it
324  //temporarilly commented out till it is added to all projects
325  //DELETE Profiler::Instance();
326 
327  //remove our logger
328  std::unique_ptr<wxLog>{ wxLog::SetActiveTarget(NULL) }; // DELETE
329 
330  if (bForce)
331  {
332  wxExit();
333  }
334 }
static ModuleManager & Get()
static void Quit()
Kills the ODMananger Thread.
Definition: ODManager.cpp:363
void SaveWindowSize()
AProjectArray gAudacityProjects
Definition: Project.cpp:303
int Dispatch(ModuleDispatchTypes type)
void CloseScreenshotTools()
Definition: Screenshot.cpp:128
void CloseScoreAlignDialog()
bool gIsQuitting
static void DeleteClipboard()
Definition: Project.cpp:4895
void QuitAudacity ( )

Definition at line 336 of file AudacityApp.cpp.

337 {
338  QuitAudacity(false);
339 }
void QuitAudacity(bool bForce)