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

#include <portaudio_backend.h>

Inheritance diagram for ARDOUR::PortMidiPort:
[legend]

Public Member Functions

 PortMidiPort (PortAudioBackend &b, const std::string &, PortFlags)
 
 ~PortMidiPort ()
 
DataType type () const
 
void * get_buffer (pframes_t nframes)
 
const PortMidiBufferconst_buffer () const
 
void next_period ()
 
void set_n_periods (int n)
 
- Public Member Functions inherited from ARDOUR::BackendPort
virtual ~BackendPort ()
 
const std::string & name () const
 
const std::string & pretty_name () const
 
const std::string & hw_port_name () const
 
int set_name (const std::string &name)
 
int set_pretty_name (const std::string &name)
 
int set_hw_port_name (const std::string &name)
 
PortFlags flags () const
 
bool is_input () const
 
bool is_output () const
 
bool is_physical () const
 
bool is_terminal () const
 
bool is_connected () const
 
bool is_connected (BackendPortHandle port) const
 
bool is_physically_connected () const
 
const std::set< BackendPortPtr > & get_connections () const
 
int connect (BackendPortHandle port, BackendPortHandle self)
 
int disconnect (BackendPortHandle port, BackendPortHandle self)
 
void disconnect_all (BackendPortHandle self)
 
const LatencyRange latency_range (bool for_playback) const
 
void set_latency_range (const LatencyRange &latency_range, bool for_playback)
 
void update_connected_latency (bool for_playback)
 
- Public Member Functions inherited from ARDOUR::ProtoPort
 ProtoPort ()
 
virtual ~ProtoPort ()
 

Private Attributes

PortMidiBuffer _buffer [2]
 
int _n_periods
 
int _bufperiod
 

Additional Inherited Members

- Protected Member Functions inherited from ARDOUR::BackendPort
 BackendPort (PortEngineSharedImpl &b, const std::string &, PortFlags)
 
- Protected Attributes inherited from ARDOUR::BackendPort
PortEngineSharedImpl_backend
 

Detailed Description

Definition at line 75 of file portaudio_backend.h.

Constructor & Destructor Documentation

◆ PortMidiPort()

ARDOUR::PortMidiPort::PortMidiPort ( PortAudioBackend b,
const std::string &  ,
PortFlags   
)

◆ ~PortMidiPort()

ARDOUR::PortMidiPort::~PortMidiPort ( )

Member Function Documentation

◆ const_buffer()

const PortMidiBuffer* ARDOUR::PortMidiPort::const_buffer ( ) const
inline

Definition at line 83 of file portaudio_backend.h.

◆ get_buffer()

void* ARDOUR::PortMidiPort::get_buffer ( pframes_t  nframes)
virtual

Implements ARDOUR::BackendPort.

◆ next_period()

void ARDOUR::PortMidiPort::next_period ( )
inline

Definition at line 85 of file portaudio_backend.h.

◆ set_n_periods()

void ARDOUR::PortMidiPort::set_n_periods ( int  n)
inline

Definition at line 86 of file portaudio_backend.h.

◆ type()

DataType ARDOUR::PortMidiPort::type ( ) const
inlinevirtual

Implements ARDOUR::BackendPort.

Definition at line 80 of file portaudio_backend.h.

Member Data Documentation

◆ _buffer

PortMidiBuffer ARDOUR::PortMidiPort::_buffer[2]
private

Definition at line 89 of file portaudio_backend.h.

◆ _bufperiod

int ARDOUR::PortMidiPort::_bufperiod
private

Definition at line 91 of file portaudio_backend.h.

◆ _n_periods

int ARDOUR::PortMidiPort::_n_periods
private

Definition at line 90 of file portaudio_backend.h.


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