Audacity  2.2.2
Classes | Macros | Functions | Variables
ExportPCM.cpp File Reference
#include "../Audacity.h"
#include "ExportPCM.h"
#include <wx/defs.h>
#include <wx/choice.h>
#include <wx/dynlib.h>
#include <wx/filename.h>
#include <wx/intl.h>
#include <wx/timer.h>
#include <wx/progdlg.h>
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/window.h>
#include "sndfile.h"
#include "../FileFormats.h"
#include "../Internat.h"
#include "../MemoryX.h"
#include "../Mix.h"
#include "../Prefs.h"
#include "../Project.h"
#include "../ShuttleGui.h"
#include "../Tags.h"
#include "../Track.h"
#include "../ondemand/ODManager.h"
#include "../widgets/ErrorDialog.h"
#include "Export.h"

Go to the source code of this file.

Classes

class  ExportPCMOptions
 
class  ExportPCM
 

Macros

#define ID_HEADER_CHOICE   7102
 
#define ID_ENCODING_CHOICE   7103
 

Functions

static int ReadExportFormatPref ()
 
static void WriteExportFormatPref (int format)
 
std::unique_ptr< ExportPluginNew_ExportPCM ()
 

Variables

struct {
   int   format
 
   const wxChar *   name
 
   const wxChar *   desc
 
kFormats []
 

Macro Definition Documentation

#define ID_ENCODING_CHOICE   7103

Definition at line 97 of file ExportPCM.cpp.

Referenced by ExportPCMOptions::PopulateOrExchange().

#define ID_HEADER_CHOICE   7102

Definition at line 96 of file ExportPCM.cpp.

Referenced by ExportPCMOptions::PopulateOrExchange().

Function Documentation

std::unique_ptr<ExportPlugin> New_ExportPCM ( )

The only part of this class which is publically accessible is the factory method New_ExportPCM() which creates a NEW ExportPCM object and returns a pointer to it. The rest of the class declaration is in ExportPCM.cpp

Definition at line 915 of file ExportPCM.cpp.

Referenced by Exporter::Exporter().

916 {
917  return std::make_unique<ExportPCM>();
918 }
static int ReadExportFormatPref ( )
static

Definition at line 75 of file ExportPCM.cpp.

References gPrefs.

Referenced by ExportPCM::Export(), ExportPCMOptions::ExportPCMOptions(), and ExportPCM::GetExtension().

76 {
77 #if defined(__WXMAC__)
78  return gPrefs->Read(wxT("/FileFormats/ExportFormat_SF1"),
79  (long int)(SF_FORMAT_AIFF | SF_FORMAT_PCM_16));
80 #else
81  return gPrefs->Read(wxT("/FileFormats/ExportFormat_SF1"),
82  (long int)(SF_FORMAT_WAV | SF_FORMAT_PCM_16));
83 #endif
84 }
AudacityPrefs * gPrefs
Definition: Prefs.cpp:73
static void WriteExportFormatPref ( int  format)
static

Definition at line 86 of file ExportPCM.cpp.

References gPrefs.

Referenced by ExportPCMOptions::TransferDataFromWindow().

87 {
88  gPrefs->Write(wxT("/FileFormats/ExportFormat_SF1"), (long int)format);
89  gPrefs->Flush();
90 }
AudacityPrefs * gPrefs
Definition: Prefs.cpp:73
int format
Definition: ExportPCM.cpp:56

Variable Documentation

const wxChar* desc
int format

Definition at line 56 of file ExportPCM.cpp.

Referenced by AudacityProject::AS_SetSelectionFormat(), LegacyBlockFile::BuildFromXML(), ExportPCM::CheckFileName(), RingBuffer::Clear(), AudacityProject::ClipBoundaryMessage(), ComputeLegacySummaryInfo(), WaveTrack::ConvertToSampleFormat(), Sequence::ConvertToSampleFormat(), CommandManager::DescribeCommandsAndShortcuts(), AudacityProject::DoEditLabels(), FileException::ErrorMessage(), ExportPCM::Export(), ExportPCM::ExportPCM(), ExportPCMOptions::ExportPCMOptions(), AudioIO::FillBuffers(), FindDependencies(), NumericTextCtrl::Options::Format(), FormatClassifier::FormatClassifier(), RingBuffer::Get(), WaveTrackCache::Get(), FormatClassifier::GetResultFormatLibSndfile(), Guess16Bit(), GuessFloatFormats(), GuessIntFormats(), ImportRaw(), Internat::Init(), Ruler::LabelString(), DirManager::NewSimpleBlockFile(), NumericEditor::NumericEditor(), ApplyMacroDialog::OnApplyToFiles(), ExportPCMOptions::OnHeaderChoice(), AudacityProject::OnSelectClip(), ScrubbingOverlay::OnTimer(), SelectionBar::OnUpdate(), NyquistEffect::ProcessOne(), RawAudioGuess(), FormatClassifier::ReadSignal(), SnapManager::Reinit(), RemoveDependencies(), ExportPlugin::SetFormat(), NumericEditor::SetFormat(), Ruler::SetFormat(), DirManager::SetLoadingFormat(), MixerToolBar::SetToolTips(), sf_header_index_name(), AudacityProject::ShowOpenDialog(), SimpleBlockFile::SimpleBlockFile(), EffectChangeSpeed::Startup(), TrackInfo::Status2DrawFunction(), Internat::ToDisplayString(), NumberFormatter::ToString(), ExportPCMOptions::ValidatePair(), WaveClip::WaveClip(), and WaveTrack::WaveTrack().

struct { ... } kFormats[]
Initial value:
=
{
{ SF_FORMAT_WAV | SF_FORMAT_PCM_16, wxT("WAV"), XO("WAV (Microsoft) signed 16-bit PCM") },
{ SF_FORMAT_WAV | SF_FORMAT_PCM_24, wxT("WAV24"), XO("WAV (Microsoft) signed 24-bit PCM") },
{ SF_FORMAT_WAV | SF_FORMAT_FLOAT, wxT("WAVFLT"), XO("WAV (Microsoft) 32-bit float PCM") },
}
#define XO(s)
Definition: Internat.h:33

Referenced by ExportPCM::CheckFileName(), ExportPCM::Export(), ExportPCM::ExportPCM(), ExportPCMOptions::ExportPCMOptions(), ExportPCM::GetExtension(), and ExportPCM::OptionsCreate().

const wxChar* name