Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::ExportFormatCompatibility Class Reference

Allows adding to all sets. A format should be able to test if it is compatible with this. More...

#include <export_format_compatibility.h>

Inheritance diagram for ARDOUR::ExportFormatCompatibility:
[legend]

Public Member Functions

 ExportFormatCompatibility (std::string name)
 
 ~ExportFormatCompatibility ()
 
 ExportFormatCompatibility (ExportFormatBase const &other)
 
void add_endianness (Endianness endianness)
 
void add_sample_format (SampleFormat format)
 
void add_sample_rate (SampleRate rate)
 
void add_format_id (FormatId id)
 
void add_quality (Quality quality)
 
- Public Member Functions inherited from ARDOUR::ExportFormatBase
 ExportFormatBase ()
 
 ExportFormatBase (ExportFormatBase const &other)
 
virtual ~ExportFormatBase ()
 
std::shared_ptr< ExportFormatBaseget_intersection (ExportFormatBase const &other) const
 
std::shared_ptr< ExportFormatBaseget_union (ExportFormatBase const &other) const
 
bool endiannesses_empty () const
 
bool sample_formats_empty () const
 
bool sample_rates_empty () const
 
bool formats_empty () const
 
bool qualities_empty () const
 
bool has_endianness (Endianness endianness) const
 
bool has_sample_format (SampleFormat format) const
 
bool has_sample_rate (SampleRate rate) const
 
bool has_format (FormatId format) const
 
bool has_quality (Quality quality) const
 
void set_extension (std::string const &extension)
 
std::string const & extension () const
 
- Public Member Functions inherited from ARDOUR::ExportFormatBase::SelectableCompatible
 SelectableCompatible ()
 
 ~SelectableCompatible ()
 
bool selected () const
 
bool compatible () const
 
std::string name () const
 
void set_selected (bool value)
 
void set_compatible (bool value)
 

Additional Inherited Members

- Public Types inherited from ARDOUR::ExportFormatBase
enum  Type { T_None = 0 , T_Sndfile , T_FFMPEG }
 
enum  FormatId {
  F_None = 0 , F_WAV = SF_FORMAT_WAV , F_W64 = SF_FORMAT_W64 , F_CAF = SF_FORMAT_CAF ,
  F_AIFF = SF_FORMAT_AIFF , F_AU = SF_FORMAT_AU , F_IRCAM = SF_FORMAT_IRCAM , F_RAW = SF_FORMAT_RAW ,
  F_FLAC = SF_FORMAT_FLAC , F_Ogg = SF_FORMAT_OGG , F_MPEG = 0x230000 , F_FFMPEG = 0xF10000
}
 
enum  Endianness { E_FileDefault = SF_ENDIAN_FILE , E_Little = SF_ENDIAN_LITTLE , E_Big = SF_ENDIAN_BIG , E_Cpu = SF_ENDIAN_CPU }
 
enum  SampleFormat {
  SF_None = 0 , SF_8 = SF_FORMAT_PCM_S8 , SF_16 = SF_FORMAT_PCM_16 , SF_24 = SF_FORMAT_PCM_24 ,
  SF_32 = SF_FORMAT_PCM_32 , SF_U8 = SF_FORMAT_PCM_U8 , SF_Float = SF_FORMAT_FLOAT , SF_Double = SF_FORMAT_DOUBLE ,
  SF_Vorbis = SF_FORMAT_VORBIS , SF_Opus = 0x0064 , SF_MPEG_LAYER_III = 0x0082
}
 
enum  DitherType { D_None = AudioGrapher::D_None , D_Rect = AudioGrapher::D_Rect , D_Tri = AudioGrapher::D_Tri , D_Shaped = AudioGrapher::D_Shaped }
 
enum  Quality {
  Q_None = 0 , Q_Any , Q_LosslessLinear , Q_LosslessCompression ,
  Q_LossyCompression
}
 
enum  SampleRate {
  SR_None = 0 , SR_Session = 1 , SR_8 = 8000 , SR_22_05 = 22050 ,
  SR_24 = 24000 , SR_44_1 = 44100 , SR_48 = 48000 , SR_88_2 = 88200 ,
  SR_96 = 96000 , SR_176_4 = 176400 , SR_192 = 192000
}
 
enum  SRCQuality {
  SRC_SincBest = SRC_SINC_BEST_QUALITY , SRC_SincMedium = SRC_SINC_MEDIUM_QUALITY , SRC_SincFast = SRC_SINC_FASTEST , SRC_ZeroOrderHold = SRC_ZERO_ORDER_HOLD ,
  SRC_Linear = SRC_LINEAR
}
 
- Static Public Member Functions inherited from ARDOUR::ExportFormatBase
static SampleRate nearest_sample_rate (samplecnt_t sample_rate)
 
- Public Attributes inherited from ARDOUR::ExportFormatBase::SelectableCompatible
PBD::Signal< void(bool)> SelectChanged
 
PBD::Signal< void(bool)> CompatibleChanged
 
- Protected Types inherited from ARDOUR::ExportFormatBase
typedef std::set< SampleFormatSampleFormatSet
 
typedef std::set< EndiannessEndianSet
 
typedef std::set< SampleRateSampleRateSet
 
typedef std::set< FormatIdFormatSet
 
typedef std::set< QualityQualitySet
 
- Protected Member Functions inherited from ARDOUR::ExportFormatBase::SelectableCompatible
void set_name (std::string name)
 
- Protected Attributes inherited from ARDOUR::ExportFormatBase
SampleFormatSet sample_formats
 
EndianSet endiannesses
 
SampleRateSet sample_rates
 
FormatSet format_ids
 
QualitySet qualities
 

Detailed Description

Allows adding to all sets. A format should be able to test if it is compatible with this.

Definition at line 29 of file export_format_compatibility.h.

Constructor & Destructor Documentation

◆ ExportFormatCompatibility() [1/2]

ARDOUR::ExportFormatCompatibility::ExportFormatCompatibility ( std::string  name)
inline

Definition at line 33 of file export_format_compatibility.h.

◆ ~ExportFormatCompatibility()

ARDOUR::ExportFormatCompatibility::~ExportFormatCompatibility ( )
inline

Definition at line 42 of file export_format_compatibility.h.

◆ ExportFormatCompatibility() [2/2]

ARDOUR::ExportFormatCompatibility::ExportFormatCompatibility ( ExportFormatBase const &  other)
inline

Definition at line 44 of file export_format_compatibility.h.

Member Function Documentation

◆ add_endianness()

void ARDOUR::ExportFormatCompatibility::add_endianness ( Endianness  endianness)
inline

Definition at line 47 of file export_format_compatibility.h.

◆ add_format_id()

void ARDOUR::ExportFormatCompatibility::add_format_id ( FormatId  id)
inline

Definition at line 50 of file export_format_compatibility.h.

◆ add_quality()

void ARDOUR::ExportFormatCompatibility::add_quality ( Quality  quality)
inline

Definition at line 51 of file export_format_compatibility.h.

◆ add_sample_format()

void ARDOUR::ExportFormatCompatibility::add_sample_format ( SampleFormat  format)
inline

Definition at line 48 of file export_format_compatibility.h.

◆ add_sample_rate()

void ARDOUR::ExportFormatCompatibility::add_sample_rate ( SampleRate  rate)
inline

Definition at line 49 of file export_format_compatibility.h.


The documentation for this class was generated from the following file: