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

#include <audio_track_importer.h>

Inheritance diagram for ARDOUR::AudioTrackImporter:
[legend]

Public Member Functions

 AudioTrackImporter (XMLTree const &source, Session &session, AudioTrackImportHandler &track_handler, XMLNode const &node, AudioPlaylistImportHandler &pl_handler)
 
 ~AudioTrackImporter ()
 
std::string get_info () const
 
- Public Member Functions inherited from ARDOUR::ElementImporter
 ElementImporter (XMLTree const &source, ARDOUR::Session &session)
 
virtual ~ElementImporter ()
 
virtual std::string get_name () const
 
virtual ImportStatusget_import_status ()
 
bool prepare_move ()
 
void cancel_move ()
 
void move ()
 Moves the element to the taget session. More...
 
bool broken ()
 Check if element is broken. Cannot be moved if broken. More...
 

Protected Member Functions

bool _prepare_move ()
 
void _cancel_move ()
 Cancel move. More...
 
void _move ()
 
- Protected Member Functions inherited from ARDOUR::ElementImporter
bool queued ()
 Ture if the element has been prepared and queued for importing. More...
 
std::string timecode_to_string (Timecode::Time &time) const
 Converts timecode time to a string. More...
 
samplecnt_t rate_convert_samples (samplecnt_t samples) const
 Converts samples so that times match the sessions sample rate. More...
 
std::string rate_convert_samples (std::string const &samples) const
 Converts samples so that times match the sessions sample rate (for straight use in XML) More...
 
void set_broken ()
 Set element broken. More...
 

Private Types

typedef std::shared_ptr< AudioPlaylistImporterPlaylistPtr
 
typedef std::list< PlaylistPtrPlaylistList
 

Private Member Functions

bool parse_route_xml ()
 
bool parse_io ()
 
bool parse_processor (XMLNode &node)
 
bool parse_controllable (XMLNode &node)
 
bool parse_automation (XMLNode &node)
 
bool rate_convert_events (XMLNode &node)
 

Private Attributes

AudioTrackImportHandlertrack_handler
 
XMLNode xml_track
 
PBD::ID old_ds_id
 
PBD::ID new_ds_id
 
PlaylistList playlists
 
AudioPlaylistImportHandlerpl_handler
 

Additional Inherited Members

- Static Public Attributes inherited from ARDOUR::ElementImporter
static PBD::Signal< std::pair< bool, std::string >std::string, std::string)> Rename
 Signal that requests for anew name. More...
 
static PBD::Signal< bool(std::string)> Prompt
 Signal for ok/cancel prompting. More...
 
- Protected Attributes inherited from ARDOUR::ElementImporter
XMLTree const & source
 Source XML-tree. More...
 
ARDOUR::Sessionsession
 Target session. More...
 
std::string name
 Name of element. More...
 
samplecnt_t sample_rate
 The sample rate of the session from which we are importing. More...
 

Detailed Description

Definition at line 44 of file audio_track_importer.h.

Member Typedef Documentation

◆ PlaylistList

Definition at line 64 of file audio_track_importer.h.

◆ PlaylistPtr

Definition at line 63 of file audio_track_importer.h.

Constructor & Destructor Documentation

◆ AudioTrackImporter()

ARDOUR::AudioTrackImporter::AudioTrackImporter ( XMLTree const &  source,
Session session,
AudioTrackImportHandler track_handler,
XMLNode const &  node,
AudioPlaylistImportHandler pl_handler 
)

◆ ~AudioTrackImporter()

ARDOUR::AudioTrackImporter::~AudioTrackImporter ( )

Member Function Documentation

◆ _cancel_move()

void ARDOUR::AudioTrackImporter::_cancel_move ( )
protectedvirtual

Cancel move.

Implements ARDOUR::ElementImporter.

◆ _move()

void ARDOUR::AudioTrackImporter::_move ( )
protectedvirtual

Moves the element to the taget session In addition to actually adding the element to the session changing ids, renaming files etc. should be taken care of.

Implements ARDOUR::ElementImporter.

◆ _prepare_move()

bool ARDOUR::AudioTrackImporter::_prepare_move ( )
protectedvirtual

Should take care of all tasks that need to be done before moving the element. This includes prompting the user for more information if necessary.

Returns
whether or not the element can be moved

Implements ARDOUR::ElementImporter.

◆ get_info()

std::string ARDOUR::AudioTrackImporter::get_info ( ) const
virtual

Gets a textual representation of the element

Returns
a textual representation on this specific element

Implements ARDOUR::ElementImporter.

◆ parse_automation()

bool ARDOUR::AudioTrackImporter::parse_automation ( XMLNode node)
private

◆ parse_controllable()

bool ARDOUR::AudioTrackImporter::parse_controllable ( XMLNode node)
private

◆ parse_io()

bool ARDOUR::AudioTrackImporter::parse_io ( )
private

◆ parse_processor()

bool ARDOUR::AudioTrackImporter::parse_processor ( XMLNode node)
private

◆ parse_route_xml()

bool ARDOUR::AudioTrackImporter::parse_route_xml ( )
private

◆ rate_convert_events()

bool ARDOUR::AudioTrackImporter::rate_convert_events ( XMLNode node)
private

Member Data Documentation

◆ new_ds_id

PBD::ID ARDOUR::AudioTrackImporter::new_ds_id
private

Definition at line 78 of file audio_track_importer.h.

◆ old_ds_id

PBD::ID ARDOUR::AudioTrackImporter::old_ds_id
private

Definition at line 77 of file audio_track_importer.h.

◆ pl_handler

AudioPlaylistImportHandler& ARDOUR::AudioTrackImporter::pl_handler
private

Definition at line 81 of file audio_track_importer.h.

◆ playlists

PlaylistList ARDOUR::AudioTrackImporter::playlists
private

Definition at line 80 of file audio_track_importer.h.

◆ track_handler

AudioTrackImportHandler& ARDOUR::AudioTrackImporter::track_handler
private

Definition at line 74 of file audio_track_importer.h.

◆ xml_track

XMLNode ARDOUR::AudioTrackImporter::xml_track
private

Definition at line 75 of file audio_track_importer.h.


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