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

Basic export channel that reads from MIDIPorts. More...

#include <export_channel.h>

Inheritance diagram for ARDOUR::PortExportMIDI:
[legend]

Public Member Functions

 PortExportMIDI ()
 
 ~PortExportMIDI ()
 
samplecnt_t common_port_playback_latency () const
 
void prepare_export (samplecnt_t max_samples, sampleoffset_t common_latency)
 
void read (Buffer const *&, samplecnt_t samples) const
 
bool empty () const
 
bool audio () const
 
bool midi () const
 
std::string state_node_name () const
 
void get_state (XMLNode *node) const
 Adds state to node passed. More...
 
void set_state (XMLNode *node, Session &session)
 Sets state from node passed. More...
 
bool operator< (ExportChannel const &other) const
 
std::shared_ptr< MidiPortport () const
 
void set_port (std::weak_ptr< MidiPort > port)
 
- Public Member Functions inherited from ARDOUR::ExportChannel
virtual ~ExportChannel ()
 

Private Attributes

std::weak_ptr< MidiPort_port
 
FixedDelay _delayline
 
MidiBuffer _buf
 

Detailed Description

Basic export channel that reads from MIDIPorts.

Definition at line 110 of file export_channel.h.

Constructor & Destructor Documentation

◆ PortExportMIDI()

ARDOUR::PortExportMIDI::PortExportMIDI ( )

◆ ~PortExportMIDI()

ARDOUR::PortExportMIDI::~PortExportMIDI ( )

Member Function Documentation

◆ audio()

bool ARDOUR::PortExportMIDI::audio ( ) const
inlinevirtual

Reimplemented from ARDOUR::ExportChannel.

Definition at line 124 of file export_channel.h.

◆ common_port_playback_latency()

samplecnt_t ARDOUR::PortExportMIDI::common_port_playback_latency ( ) const
virtual

Reimplemented from ARDOUR::ExportChannel.

◆ empty()

bool ARDOUR::PortExportMIDI::empty ( ) const
inlinevirtual

Implements ARDOUR::ExportChannel.

Definition at line 122 of file export_channel.h.

◆ get_state()

void ARDOUR::PortExportMIDI::get_state ( XMLNode node) const
virtual

Adds state to node passed.

Implements ARDOUR::ExportChannel.

◆ midi()

bool ARDOUR::PortExportMIDI::midi ( ) const
inlinevirtual

Reimplemented from ARDOUR::ExportChannel.

Definition at line 125 of file export_channel.h.

◆ operator<()

bool ARDOUR::PortExportMIDI::operator< ( ExportChannel const &  other) const
virtual

Implements ARDOUR::ExportChannel.

◆ port()

std::shared_ptr<MidiPort> ARDOUR::PortExportMIDI::port ( ) const
inline

Definition at line 134 of file export_channel.h.

◆ prepare_export()

void ARDOUR::PortExportMIDI::prepare_export ( samplecnt_t  max_samples,
sampleoffset_t  common_latency 
)
virtual

Reimplemented from ARDOUR::ExportChannel.

◆ read()

void ARDOUR::PortExportMIDI::read ( Buffer const *&  ,
samplecnt_t  samples 
) const
virtual

Implements ARDOUR::ExportChannel.

◆ set_port()

void ARDOUR::PortExportMIDI::set_port ( std::weak_ptr< MidiPort port)
inline

Definition at line 136 of file export_channel.h.

◆ set_state()

void ARDOUR::PortExportMIDI::set_state ( XMLNode node,
Session session 
)
virtual

Sets state from node passed.

Implements ARDOUR::ExportChannel.

◆ state_node_name()

std::string ARDOUR::PortExportMIDI::state_node_name ( ) const
inlinevirtual

Implements ARDOUR::ExportChannel.

Definition at line 127 of file export_channel.h.

Member Data Documentation

◆ _buf

MidiBuffer ARDOUR::PortExportMIDI::_buf
mutableprivate

Definition at line 144 of file export_channel.h.

◆ _delayline

FixedDelay ARDOUR::PortExportMIDI::_delayline
mutableprivate

Definition at line 143 of file export_channel.h.

◆ _port

std::weak_ptr<MidiPort> ARDOUR::PortExportMIDI::_port
private

Definition at line 142 of file export_channel.h.


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