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

Class to be inherited by export formats that have a selectable sample format. More...

#include <export_formats.h>

Inheritance diagram for ARDOUR::HasSampleFormat:
[legend]

Classes

class  DitherTypeState
 
class  SampleFormatState
 

Public Types

typedef std::shared_ptr< SampleFormatStateSampleFormatPtr
 
typedef std::weak_ptr< SampleFormatStateWeakSampleFormatPtr
 
typedef std::list< SampleFormatPtrSampleFormatList
 
typedef std::shared_ptr< DitherTypeStateDitherTypePtr
 
typedef std::weak_ptr< DitherTypeStateWeakDitherTypePtr
 
typedef std::list< DitherTypePtrDitherTypeList
 

Public Member Functions

 HasSampleFormat (ExportFormatBase::SampleFormatSet &sample_formats)
 
virtual ~HasSampleFormat ()
 
void add_sample_format (ExportFormatBase::SampleFormat format)
 
SampleFormatList const & get_sample_formats () const
 
DitherTypeList const & get_dither_types () const
 
SampleFormatPtr get_selected_sample_format ()
 
DitherTypePtr get_selected_dither_type ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Static Public Member Functions

static std::string get_sample_format_name (ExportFormatBase::SampleFormat format)
 

Public Attributes

PBD::Signal< void(bool, WeakSampleFormatPtr)> SampleFormatSelectChanged
 
PBD::Signal< void(bool, WeakSampleFormatPtr)> SampleFormatCompatibleChanged
 
PBD::Signal< void(bool, WeakDitherTypePtr)> DitherTypeSelectChanged
 
PBD::Signal< void(bool, WeakDitherTypePtr)> DitherTypeCompatibleChanged
 

Protected Attributes

DitherTypeList dither_type_states
 
SampleFormatList sample_format_states
 

Private Member Functions

void add_dither_type (ExportFormatBase::DitherType type, std::string name)
 
void update_sample_format_selection (bool)
 
void update_dither_type_selection (bool)
 

Private Attributes

ExportFormatBase::SampleFormatSet_sample_formats
 

Detailed Description

Class to be inherited by export formats that have a selectable sample format.

Definition at line 162 of file export_formats.h.

Member Typedef Documentation

◆ DitherTypeList

Definition at line 195 of file export_formats.h.

◆ DitherTypePtr

Definition at line 193 of file export_formats.h.

◆ SampleFormatList

Definition at line 191 of file export_formats.h.

◆ SampleFormatPtr

Definition at line 189 of file export_formats.h.

◆ WeakDitherTypePtr

Definition at line 194 of file export_formats.h.

◆ WeakSampleFormatPtr

Definition at line 190 of file export_formats.h.

Constructor & Destructor Documentation

◆ HasSampleFormat()

ARDOUR::HasSampleFormat::HasSampleFormat ( ExportFormatBase::SampleFormatSet sample_formats)

◆ ~HasSampleFormat()

virtual ARDOUR::HasSampleFormat::~HasSampleFormat ( )
inlinevirtual

Definition at line 199 of file export_formats.h.

Member Function Documentation

◆ add_dither_type()

void ARDOUR::HasSampleFormat::add_dither_type ( ExportFormatBase::DitherType  type,
std::string  name 
)
private

◆ add_sample_format()

void ARDOUR::HasSampleFormat::add_sample_format ( ExportFormatBase::SampleFormat  format)

◆ get_dither_types()

DitherTypeList const& ARDOUR::HasSampleFormat::get_dither_types ( ) const
inline

Definition at line 208 of file export_formats.h.

◆ get_sample_format_name()

static std::string ARDOUR::HasSampleFormat::get_sample_format_name ( ExportFormatBase::SampleFormat  format)
static

◆ get_sample_formats()

SampleFormatList const& ARDOUR::HasSampleFormat::get_sample_formats ( ) const
inline

Definition at line 203 of file export_formats.h.

◆ get_selected_dither_type()

DitherTypePtr ARDOUR::HasSampleFormat::get_selected_dither_type ( )

◆ get_selected_sample_format()

SampleFormatPtr ARDOUR::HasSampleFormat::get_selected_sample_format ( )

◆ update_dither_type_selection()

void ARDOUR::HasSampleFormat::update_dither_type_selection ( bool  )
private

◆ update_sample_format_selection()

void ARDOUR::HasSampleFormat::update_sample_format_selection ( bool  )
private

Member Data Documentation

◆ _sample_formats

ExportFormatBase::SampleFormatSet& ARDOUR::HasSampleFormat::_sample_formats
private

Definition at line 237 of file export_formats.h.

◆ dither_type_states

DitherTypeList ARDOUR::HasSampleFormat::dither_type_states
protected

Definition at line 227 of file export_formats.h.

◆ DitherTypeCompatibleChanged

PBD::Signal<void(bool, WeakDitherTypePtr)> ARDOUR::HasSampleFormat::DitherTypeCompatibleChanged

Definition at line 221 of file export_formats.h.

◆ DitherTypeSelectChanged

PBD::Signal<void(bool, WeakDitherTypePtr)> ARDOUR::HasSampleFormat::DitherTypeSelectChanged

Definition at line 220 of file export_formats.h.

◆ sample_format_states

SampleFormatList ARDOUR::HasSampleFormat::sample_format_states
protected

Definition at line 228 of file export_formats.h.

◆ SampleFormatCompatibleChanged

PBD::Signal<void(bool, WeakSampleFormatPtr)> ARDOUR::HasSampleFormat::SampleFormatCompatibleChanged

Definition at line 218 of file export_formats.h.

◆ SampleFormatSelectChanged

PBD::Signal<void(bool, WeakSampleFormatPtr)> ARDOUR::HasSampleFormat::SampleFormatSelectChanged

Definition at line 217 of file export_formats.h.


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