Audacity  2.3.1
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   1
 
#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 RTL_WORKAROUND(pWnd)
 
#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   1
 
#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 RTL_WORKAROUND(pWnd)
 

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
#define AUDACITY_MODLEVEL   0

Definition at line 66 of file Audacity.h.

Referenced by VSTEffect::AudioMaster().

#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
#define AUDACITY_RELEASE   3
#define AUDACITY_REVISION   1
#define AUDACITY_REVISION   1
#define AUDACITY_SUFFIX   wxT("-alpha-") __TDATE__
#define AUDACITY_SUFFIX   wxT("-alpha-") __TDATE__

Definition at line 71 of file Audacity.h.

#define AUDACITY_VERSION   2
#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.

Referenced by ToolsMenu().

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

Definition at line 220 of file Audacity.h.

Referenced by ODPCMAliasBlockFile::GetMinMaxRMS().

#define JUST_BELOW_MAX_AUDIO   (1.f - 1.f/(1<<14))
#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
#define PROHIBITED   = delete

Definition at line 224 of file Audacity.h.

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

Definition at line 214 of file Audacity.h.

Referenced by Effect::DoEffect().

#define QUANTIZED_TIME (   time,
  rate 
)    (floor(((double)(time) * (rate)) + 0.5) / (rate))
#define RTL_WORKAROUND (   pWnd)
Value:
if ( gPrefs->Read( "/GUI/RtlWorkaround", true) ) \
pWnd->SetLayoutDirection(wxLayout_LeftToRight);
AudacityPrefs * gPrefs
Definition: Prefs.cpp:73

Definition at line 235 of file Audacity.h.

Referenced by EffectUIHost::Initialize(), LyricsWindow::LyricsWindow(), MixerBoard::MixerBoard(), and ScreenFrame::PopulateOrExchange().

#define RTL_WORKAROUND (   pWnd)
Value:
if ( gPrefs->Read( "/GUI/RtlWorkaround", true) ) \
pWnd->SetLayoutDirection(wxLayout_LeftToRight);
AudacityPrefs * gPrefs
Definition: Prefs.cpp:73
#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(), LV2Effect::AddFeature(), ShuttleGuiBase::AddFixedText(), ShuttleGuiBase::AddGrid(), ShuttleGui::AddGuiWaveTrack(), ShuttleGuiBase::AddIcon(), TrackList::AdditionEvent(), ShuttleGuiBase::AddListBox(), ShuttleGuiBase::AddListControl(), ShuttleGuiBase::AddListControlReportMode(), ShuttleGuiBase::AddMenu(), ProgressDialog::AddMessageAsColumn(), ShuttleGuiBase::AddNumericTextBox(), ShuttleGuiBase::AddPrompt(), ShuttleGuiBase::AddRadioButton(), ShuttleGuiBase::AddRadioButtonToGroup(), ShuttleGuiBase::AddSlider(), ShuttleGuiBase::AddSpinCtrl(), QuickFixDialog::AddStuck(), 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(), VSTEffect::BuildFancy(), LV2Effect::BuildFancy(), PopupMenuTable::BuildMenu(), VSTEffect::BuildPlain(), LV2Effect::BuildPlain(), AppCommandEvent::Clone(), NumericEditor::Clone(), GrabberEvent::Clone(), NumericRenderer::Clone(), ChoiceEditor::Clone(), ComboEditor::Clone(), ContrastDialog::ContrastDialog(), WaveTrack::Copy(), LabelTrack::CopySelectedText(), NumericEditor::Create(), ProgressDialog::Create(), ChoiceEditor::Create(), TrackList::Create(), LabelTrack::CreateCustomGlyphs(), VampEffectsModule::CreateInstance(), LV2EffectsModule::CreateInstance(), LadspaEffectsModule::CreateInstance(), AudioUnitEffectsModule::CreateInstance(), VSTEffectsModule::CreateInstance(), CreateNewAudacityProject(), AudacityApp::CreateSingleInstanceChecker(), CreateStdButtonSizer(), AudacityCommand::CreateUI(), Effect::CreateUI(), Exporter::CreateUserPane(), LabelTrack::CutSelectedText(), TrackList::DataEvent(), DECLARE_MODULE_ENTRY(), TrackList::DeletionEvent(), LWSlider::DrawToBitmap(), NoteTrack::Duplicate(), WaveTrack::Duplicate(), ErrorDialog::ErrorDialog(), ExportMixerDialog::ExportMixerDialog(), FreqWindow::FreqWindow(), CommandDirectory::Get(), ModuleManager::Get(), PluginManager::Get(), AudacityProject::GetContrastDialog(), AudacityProject::GetFreqWindow(), AudacityProject::GetHistoryWindow(), AudacityProject::GetLyricsWindow(), AudacityProject::GetMacrosWindow(), AudacityProject::GetMixerBoardFrame(), 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(), MixerBoard::MixerBoard(), MixerBoardFrame::MixerBoardFrame(), UndoManager::ModifyState(), MultiDialog::MultiDialog(), TimerRecordDialog::NewPathControl(), TrackFactory::NewWaveTrack(), TrackPanel::AudacityTimer::Notify(), IPCServ::OnAcceptConnection(), DependencyDialog::OnCopyToClipboard(), AudacityApp::OnInit(), AudacityApp::OnMenuAbout(), LabelTrackMenuTable::OnSetFont(), AudacityProject::OnShow(), OpenScreenshotTools(), ImportExportPrefsFactory::operator()(), WarningsPrefsFactory::operator()(), ProjectsPrefsFactory::operator()(), EffectsPrefsFactory::operator()(), BatchPrefsFactory::operator()(), PlaybackPrefsFactory::operator()(), TracksBehaviorsPrefsFactory::operator()(), DirectoriesPrefsFactory::operator()(), MousePrefsFactory::operator()(), RecordingPrefsFactory::operator()(), ThemePrefsFactory::operator()(), LibraryPrefsFactory::operator()(), GUIPrefsFactory::operator()(), ModulePrefsFactory::operator()(), TracksPrefsFactory::operator()(), DevicePrefsFactory::operator()(), QualityPrefsFactory::operator()(), WaveformPrefsFactory::operator()(), MidiIOPrefsFactory::operator()(), KeyConfigPrefsFactory::operator()(), SpectrumPrefsFactory::operator()(), ExtImportPrefsFactory::operator()(), ExportPlugin::OptionsCreate(), ExportFFmpeg::OptionsCreate(), ExportOGG::OptionsCreate(), ExportFLAC::OptionsCreate(), ExportCL::OptionsCreate(), ExportPCM::OptionsCreate(), ExportMP3::OptionsCreate(), TrackList::PermutationEvent(), DeviceToolBar::Populate(), SplashDialog::Populate(), MixerToolBar::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(), ApplyMacroDialog::PopulateOrExchange(), EffectNoise::PopulateOrExchange(), ExtImportPrefs::PopulateOrExchange(), EffectToneGen::PopulateOrExchange(), EffectCompressor::PopulateOrExchange(), EffectDtmf::PopulateOrExchange(), EffectAutoDuck::PopulateOrExchange(), LabelDialog::PopulateOrExchange(), EffectChangeSpeed::PopulateOrExchange(), ScreenFrame::PopulateOrExchange(), EffectScienFilter::PopulateOrExchange(), TimerRecordDialog::PopulateOrExchange(), ExportMultiple::PopulateOrExchange(), MacrosWindow::PopulateOrExchange(), QuickFixDialog::PopulateOrExchange(), EffectEqualization::PopulateOrExchange(), TagsEditor::PopulateOrExchange(), PluginRegistrationDialog::PopulateOrExchange(), LadspaEffect::PopulateUI(), AudioUnitEffect::PopulateUI(), PrefsDialog::PrefsDialog(), ScreenFrame::ProcessEvent(), UndoManager::PushState(), ToolManager::ReadConfig(), MixerBoardFrame::Recreate(), AdornedRulerPanel::ReCreateButtons(), ToolBar::ReCreateButtons(), UndoManager::Redo(), ToolManager::Reset(), AudacityProject::ResetProjectToEmpty(), TrackList::ResizingEvent(), TrackList::SelectionEvent(), UndoManager::SetStateTo(), AudacityLogger::Show(), SplashDialog::Show2(), ShowAliasMissingDialog(), HelpSystem::ShowHtmlText(), EffectUIHost::ShowModal(), ShowModelessErrorDialog(), SliderDialog::SliderDialog(), ODManager::Start(), ShuttleGuiBase::StartInvisiblePanel(), ExpandingToolBar::StartMoving(), ShuttleGuiBase::StartNotebook(), ShuttleGuiBase::StartNotebookPage(), ShuttleGuiBase::StartPanel(), Scrubber::StartPolling(), ShuttleGuiBase::StartScroller(), ShuttleGuiBase::StartStatic(), ShuttleGuiBase::TieRadioButton(), ToolManager::ToolManager(), TrackPanelFactory(), UndoManager::Undo(), ToolManager::UndockBar(), and MixerBoard::UpdateTrackClusters().

#define USE_ALPHA_MANUAL
#define USE_ALPHA_MANUAL

Definition at line 52 of file Audacity.h.

Function Documentation

void QuitAudacity ( bool  bForce)

Definition at line 271 of file AudacityApp.cpp.

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

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

Definition at line 339 of file AudacityApp.cpp.

340 {
341  QuitAudacity(false);
342 }
void QuitAudacity(bool bForce)