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

#include <dummy_audiobackend.h>

Inheritance diagram for ARDOUR::DummyMidiPort:
[legend]

Public Member Functions

 DummyMidiPort (DummyAudioBackend &b, const std::string &, PortFlags)
 
 ~DummyMidiPort ()
 
DataType type () const
 
void * get_buffer (pframes_t nframes)
 
const DummyMidiBufferconst_buffer () const
 
std::string setup_generator (int, float const)
 
void set_loopback (DummyMidiBuffer const *const src)
 
- Public Member Functions inherited from ARDOUR::DummyPort
virtual ~DummyPort ()
 
void next_period ()
 
- 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 Member Functions

void midi_generate (const pframes_t n_samples)
 

Private Attributes

DummyMidiBuffer _buffer
 
DummyMidiBuffer _loopback
 
float _midi_seq_spb
 
int64_t _midi_seq_time
 
uint32_t _midi_seq_pos
 
DummyMidiData::MIDISequence const * _midi_seq_dat
 

Additional Inherited Members

- Protected Member Functions inherited from ARDOUR::DummyPort
 DummyPort (DummyAudioBackend &b, const std::string &, PortFlags)
 
void setup_random_number_generator ()
 
float randf ()
 
uint32_t randi ()
 
pframes_t pulse_position () const
 
- Protected Member Functions inherited from ARDOUR::BackendPort
 BackendPort (PortEngineSharedImpl &b, const std::string &, PortFlags)
 
- Protected Attributes inherited from ARDOUR::DummyPort
uint32_t _rseed
 
volatile bool _gen_cycle
 
Glib::Threads::Mutex generator_lock
 
- Protected Attributes inherited from ARDOUR::BackendPort
PortEngineSharedImpl_backend
 

Detailed Description

Definition at line 161 of file dummy_audiobackend.h.

Constructor & Destructor Documentation

◆ DummyMidiPort()

ARDOUR::DummyMidiPort::DummyMidiPort ( DummyAudioBackend b,
const std::string &  ,
PortFlags   
)

◆ ~DummyMidiPort()

ARDOUR::DummyMidiPort::~DummyMidiPort ( )

Member Function Documentation

◆ const_buffer()

const DummyMidiBuffer* ARDOUR::DummyMidiPort::const_buffer ( ) const
inline

Definition at line 169 of file dummy_audiobackend.h.

◆ get_buffer()

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

Implements ARDOUR::BackendPort.

◆ midi_generate()

void ARDOUR::DummyMidiPort::midi_generate ( const pframes_t  n_samples)
private

◆ set_loopback()

void ARDOUR::DummyMidiPort::set_loopback ( DummyMidiBuffer const *const  src)

◆ setup_generator()

std::string ARDOUR::DummyMidiPort::setup_generator ( int  ,
float const   
)

◆ type()

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

Implements ARDOUR::BackendPort.

Definition at line 166 of file dummy_audiobackend.h.

Member Data Documentation

◆ _buffer

DummyMidiBuffer ARDOUR::DummyMidiPort::_buffer
private

Definition at line 175 of file dummy_audiobackend.h.

◆ _loopback

DummyMidiBuffer ARDOUR::DummyMidiPort::_loopback
private

Definition at line 176 of file dummy_audiobackend.h.

◆ _midi_seq_dat

DummyMidiData::MIDISequence const* ARDOUR::DummyMidiPort::_midi_seq_dat
private

Definition at line 183 of file dummy_audiobackend.h.

◆ _midi_seq_pos

uint32_t ARDOUR::DummyMidiPort::_midi_seq_pos
private

Definition at line 182 of file dummy_audiobackend.h.

◆ _midi_seq_spb

float ARDOUR::DummyMidiPort::_midi_seq_spb
private

Definition at line 180 of file dummy_audiobackend.h.

◆ _midi_seq_time

int64_t ARDOUR::DummyMidiPort::_midi_seq_time
private

Definition at line 181 of file dummy_audiobackend.h.


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