ardour
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | List of all members
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:
PBD::ScopedConnectionList ARDOUR::ExportFormatBWF ARDOUR::ExportFormatFLAC ARDOUR::ExportFormatLinear

Classes

class  DitherTypeState
 
class  SampleFormatState
 

Public Types

typedef boost::shared_ptr
< SampleFormatState
SampleFormatPtr
 
typedef boost::weak_ptr
< SampleFormatState
WeakSampleFormatPtr
 
typedef std::list
< SampleFormatPtr
SampleFormatList
 
typedef boost::shared_ptr
< DitherTypeState
DitherTypePtr
 
typedef boost::weak_ptr
< DitherTypeState
WeakDitherTypePtr
 
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 ()
 
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::Signal2< void, bool,
WeakSampleFormatPtr
SampleFormatSelectChanged
 
PBD::Signal2< void, bool,
WeakSampleFormatPtr
SampleFormatCompatibleChanged
 
PBD::Signal2< void, bool,
WeakDitherTypePtr
DitherTypeSelectChanged
 
PBD::Signal2< 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 89 of file export_formats.h.

Member Typedef Documentation

Definition at line 117 of file export_formats.h.

Definition at line 115 of file export_formats.h.

Definition at line 113 of file export_formats.h.

Definition at line 111 of file export_formats.h.

Definition at line 116 of file export_formats.h.

Definition at line 112 of file export_formats.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file export_formats.cc.

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

Definition at line 122 of file export_formats.h.

Member Function Documentation

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

Definition at line 71 of file export_formats.cc.

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

Definition at line 56 of file export_formats.cc.

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

Definition at line 127 of file export_formats.h.

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

Definition at line 155 of file export_formats.cc.

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

Definition at line 126 of file export_formats.h.

HasSampleFormat::DitherTypePtr ARDOUR::HasSampleFormat::get_selected_dither_type ( )

Definition at line 96 of file export_formats.cc.

HasSampleFormat::SampleFormatPtr ARDOUR::HasSampleFormat::get_selected_sample_format ( )

Definition at line 84 of file export_formats.cc.

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

Definition at line 135 of file export_formats.cc.

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

Definition at line 108 of file export_formats.cc.

Member Data Documentation

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

Definition at line 156 of file export_formats.h.

DitherTypeList ARDOUR::HasSampleFormat::dither_type_states
protected

Definition at line 145 of file export_formats.h.

PBD::Signal2<void,bool, WeakDitherTypePtr> ARDOUR::HasSampleFormat::DitherTypeCompatibleChanged

Definition at line 138 of file export_formats.h.

PBD::Signal2<void,bool, WeakDitherTypePtr> ARDOUR::HasSampleFormat::DitherTypeSelectChanged

Definition at line 137 of file export_formats.h.

SampleFormatList ARDOUR::HasSampleFormat::sample_format_states
protected

Definition at line 146 of file export_formats.h.

PBD::Signal2<void,bool, WeakSampleFormatPtr> ARDOUR::HasSampleFormat::SampleFormatCompatibleChanged

Definition at line 135 of file export_formats.h.

PBD::Signal2<void,bool, WeakSampleFormatPtr> ARDOUR::HasSampleFormat::SampleFormatSelectChanged

Definition at line 134 of file export_formats.h.


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