Audacity  3.0.3
Classes | Macros | Typedefs | Variables
ExportFLAC.cpp File Reference
#include "Export.h"
#include <wx/ffile.h>
#include <wx/log.h>
#include "FLAC++/encoder.h"
#include "float_cast.h"
#include "ProjectRate.h"
#include "../Mix.h"
#include "Prefs.h"
#include "../ShuttleGui.h"
#include "../Tags.h"
#include "../Track.h"
#include "../widgets/AudacityMessageBox.h"
#include "../widgets/ProgressDialog.h"
#include "wxFileNameWrapper.h"
Include dependency graph for ExportFLAC.cpp:

Go to the source code of this file.

Classes

class  ExportFLACOptions
 
struct  FLAC__StreamMetadataDeleter
 
class  ExportFLAC
 

Macros

#define SAMPLES_PER_RUN   8192u
 
#define LEGACY_FLAC
 

Typedefs

using FLAC__StreamMetadataHandle = std::unique_ptr< FLAC__StreamMetadata, FLAC__StreamMetadataDeleter >
 

Variables

ChoiceSetting FLACBitDepth
 
ChoiceSetting FLACLevel
 
struct {
   OSType   componentManufacturer
 
   OSType   componentType
 
   OSType   componentSubType
 
   const TranslatableString   name
 
   EffectDistortion::Params   params
 
   bool   do_exhaustive_model_search
 
   bool   do_escape_coding
 
   bool   do_mid_side_stereo
 
   bool   loose_mid_side_stereo
 
   unsigned   qlp_coeff_precision
 
   unsigned   min_residual_partition_order
 
   unsigned   max_residual_partition_order
 
   unsigned   rice_parameter_search_dist
 
   unsigned   max_lpc_order
 
   int   format
 
   const wxChar *   name
 
   const TranslatableString   desc
 
   TranslatableString   label
 
   wxString   name
 
flacLevels []
 
static Exporter::RegisteredExportPlugin sRegisteredPlugin
 

Macro Definition Documentation

◆ LEGACY_FLAC

#define LEGACY_FLAC

Definition at line 168 of file ExportFLAC.cpp.

◆ SAMPLES_PER_RUN

#define SAMPLES_PER_RUN   8192u

Definition at line 164 of file ExportFLAC.cpp.

Typedef Documentation

◆ FLAC__StreamMetadataHandle

using FLAC__StreamMetadataHandle = std::unique_ptr< FLAC__StreamMetadata, FLAC__StreamMetadataDeleter >

Definition at line 202 of file ExportFLAC.cpp.

Variable Documentation

◆ do_escape_coding

bool do_escape_coding

Definition at line 176 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ do_exhaustive_model_search

bool do_exhaustive_model_search

Definition at line 175 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ do_mid_side_stereo

bool do_mid_side_stereo

Definition at line 177 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ FLACBitDepth

ChoiceSetting FLACBitDepth
Initial value:
{
wxT("/FileFormats/FLACBitDepth"),
{
{ XO("16 bit") , XO("24 bit") , },
{ wxT("16") , wxT("24") , }
},
0
}

Definition at line 79 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export(), and ExportFLACOptions::PopulateOrExchange().

◆ FLACLevel

ChoiceSetting FLACLevel
Initial value:
{
wxT("/FileFormats/FLACLevel"),
{
{
XO("0 (fastest)") ,
XO("1") ,
XO("2") ,
XO("3") ,
XO("4") ,
XO("5") ,
XO("6") ,
XO("7") ,
XO("8 (best)") ,
},
{
wxT("0") ,
wxT("1") ,
wxT("2") ,
wxT("3") ,
wxT("4") ,
wxT("5") ,
wxT("6") ,
wxT("7") ,
wxT("8") ,
}
},
5
}

Definition at line 89 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export(), and ExportFLACOptions::PopulateOrExchange().

◆ flacLevels

struct { ... } flacLevels[]
Initial value:
= {
{ false, false, false, false, 0, 2, 2, 0, 0 },
{ false, false, true, true, 0, 2, 2, 0, 0 },
{ false, false, true, false, 0, 0, 3, 0, 0 },
{ false, false, false, false, 0, 3, 3, 0, 6 },
{ false, false, true, true, 0, 3, 3, 0, 8 },
{ false, false, true, false, 0, 3, 3, 0, 8 },
{ false, false, true, false, 0, 0, 4, 0, 8 },
{ true, false, true, false, 0, 0, 6, 0, 8 },
{ true, false, true, false, 0, 0, 6, 0, 12 },
}

Referenced by ExportFLAC::Export().

◆ loose_mid_side_stereo

bool loose_mid_side_stereo

Definition at line 178 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ max_lpc_order

unsigned max_lpc_order

Definition at line 183 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ max_residual_partition_order

unsigned max_residual_partition_order

Definition at line 181 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ min_residual_partition_order

unsigned min_residual_partition_order

Definition at line 180 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ qlp_coeff_precision

unsigned qlp_coeff_precision

Definition at line 179 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ rice_parameter_search_dist

unsigned rice_parameter_search_dist

Definition at line 182 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ sRegisteredPlugin

Exporter::RegisteredExportPlugin sRegisteredPlugin
static
Initial value:
{ "FLAC",
[]{ return std::make_unique< ExportFLAC >(); }
}

Definition at line 487 of file ExportFLAC.cpp.

XO
#define XO(s)
Definition: Internat.h:31
ByColumns
ByColumns_t ByColumns
Definition: Prefs.cpp:420