Audacity 3.2.0
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 "AudacityMessageBox.h"
#include "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 {
   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
 
flacLevels []
 
static Exporter::RegisteredExportPlugin sRegisteredPlugin
 

Macro Definition Documentation

◆ LEGACY_FLAC

#define LEGACY_FLAC

Definition at line 164 of file ExportFLAC.cpp.

◆ SAMPLES_PER_RUN

#define SAMPLES_PER_RUN   8192u

Definition at line 160 of file ExportFLAC.cpp.

Typedef Documentation

◆ FLAC__StreamMetadataHandle

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

Definition at line 198 of file ExportFLAC.cpp.

Variable Documentation

◆ do_escape_coding

bool do_escape_coding

Definition at line 172 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ do_exhaustive_model_search

bool do_exhaustive_model_search

Definition at line 171 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ do_mid_side_stereo

bool do_mid_side_stereo

Definition at line 173 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
}
wxT("CloseDown"))
XO("Cut/Copy/Paste")
ByColumns_t ByColumns
Definition: Prefs.cpp:474

Definition at line 75 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 85 of file ExportFLAC.cpp.

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

◆ 

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 174 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ max_lpc_order

unsigned max_lpc_order

Definition at line 179 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ max_residual_partition_order

unsigned max_residual_partition_order

Definition at line 177 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ min_residual_partition_order

unsigned min_residual_partition_order

Definition at line 176 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ qlp_coeff_precision

unsigned qlp_coeff_precision

Definition at line 175 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ rice_parameter_search_dist

unsigned rice_parameter_search_dist

Definition at line 178 of file ExportFLAC.cpp.

Referenced by ExportFLAC::Export().

◆ sRegisteredPlugin

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

Definition at line 482 of file ExportFLAC.cpp.