20 #ifndef __libbackend_dummy_audiobackend_h__
21 #define __libbackend_dummy_audiobackend_h__
43 class DummyAudioBackend;
45 namespace DummyMidiData {
243 return std::vector<AudioBackend::DeviceStatus> ();
257 int _start (
bool for_latency_measurement);
391 std::function<void ()>
f;
AudioBackendInfo & info() const
const std::string & my_name() const
static void * dummy_process_thread(void *)
int create_process_thread(std::function< void()> func)
int disconnect(const std::string &src, const std::string &dst)
int get_connections(PortEngine::PortHandle ph, std::vector< std::string > &results, bool process_callback_safe)
std::string _instance_name
static std::vector< std::string > _midi_options
bool physically_connected(PortEngine::PortHandle ph, bool process_callback_safe)
size_t _samples_per_period
void set_latency_range(PortHandle, bool for_playback, LatencyRange)
int set_midi_device_enabled(std::string const, bool)
pframes_t samples_since_cycle_start()
bool can_change_sample_rate_when_running() const
int set_systemic_midi_output_latency(std::string const, uint32_t)
std::vector< DeviceStatus > enumerate_midi_devices() const
void get_physical_inputs(DataType type, std::vector< std::string > &results)
std::string control_app_name() const
bool can_set_systemic_midi_latencies() const
void launch_control_app()
bool can_monitor_input() const
DSPLoadCalculator _dsp_load_calc
uint32_t _systemic_output_latency
int register_system_ports()
DataType port_data_type(PortEngine::PortHandle ph) const
std::string driver_name() const
std::vector< pthread_t > _threads
static std::vector< AudioBackend::DeviceStatus > _device_status
int set_interleaved(bool yn)
int connect(const std::string &src, const std::string &dst)
float sample_rate() const
int _start(bool for_latency_measurement)
uint32_t process_thread_count()
int disconnect(PortEngine::PortHandle ph, const std::string &other)
uint32_t systemic_midi_output_latency(std::string const) const
PortEngine::PortPtr register_port(const std::string &shortname, ARDOUR::DataType type, ARDOUR::PortFlags flags)
uint32_t port_name_size() const
std::string get_port_name(PortEngine::PortHandle ph) const
std::string midi_option() const
bool midi_device_enabled(std::string const) const
void unregister_port(PortHandle ph)
static size_t max_buffer_size()
std::vector< float > available_sample_rates(const std::string &device) const
int set_systemic_input_latency(uint32_t)
int disconnect_all(PortEngine::PortHandle ph)
ChanCount n_physical_inputs() const
bool can_change_buffer_size_when_running() const
int set_device_name(const std::string &)
DummyAudioBackend(AudioEngine &e, AudioBackendInfo &info)
PortFlags get_port_flags(PortEngine::PortHandle ph) const
ChanCount n_physical_outputs() const
std::string device_name() const
int ensure_input_monitoring(PortHandle, bool)
bool requires_driver_selection() const
BackendPort * port_factory(std::string const &name, ARDOUR::DataType type, ARDOUR::PortFlags)
int set_midi_option(const std::string &)
bool connected(PortEngine::PortHandle ph, bool process_callback_safe)
bool connected_to(PortEngine::PortHandle ph, const std::string &other, bool process_callback_safe)
int set_buffer_size(uint32_t)
std::vector< uint32_t > available_buffer_sizes(const std::string &device) const
void * main_process_thread()
std::vector< std::string > enumerate_midi_options() const
bool can_measure_systemic_latency() const
bool monitoring_input(PortHandle)
uint32_t systemic_input_latency() const
samplepos_t sample_time()
int midi_event_put(void *port_buffer, pframes_t timestamp, const uint8_t *buffer, size_t size)
int request_input_monitoring(PortHandle, bool)
uint32_t buffer_size() const
int set_sample_rate(float)
std::vector< std::string > enumerate_drivers() const
static std::vector< DummyAudioBackend::DriverSpeed > _driver_speed
samplecnt_t _processed_samples
int midi_event_get(pframes_t ×tamp, size_t &size, uint8_t const **buf, void *port_buffer, uint32_t event_index)
bool port_is_physical(PortEngine::PortHandle ph) const
int get_port_property(PortEngine::PortHandle ph, const std::string &key, std::string &value, std::string &type) const
int get_ports(const std::string &port_name_pattern, DataType type, PortFlags flags, std::vector< std::string > &results) const
int join_process_threads()
std::vector< DeviceStatus > enumerate_devices() const
int set_port_name(PortEngine::PortHandle ph, const std::string &name)
uint32_t systemic_output_latency() const
PortEngine::PortPtr get_port_by_name(std::string const &name) const
uint32_t _systemic_input_latency
void * private_handle() const
static size_t _max_buffer_size
void midi_clear(void *port_buffer)
int set_port_property(PortEngine::PortHandle ph, const std::string &key, const std::string &value, const std::string &type)
void get_physical_outputs(DataType type, std::vector< std::string > &results)
int connect(PortEngine::PortHandle ph, const std::string &other)
samplepos_t sample_time_at_cycle_start()
int set_systemic_output_latency(uint32_t)
LatencyRange get_latency_range(PortHandle, bool for_playback)
void * get_buffer(PortHandle, pframes_t)
int set_systemic_midi_input_latency(std::string const, uint32_t)
int set_driver(const std::string &)
uint32_t get_midi_event_count(void *port_buffer)
size_t raw_buffer_size(DataType t)
uint32_t systemic_midi_input_latency(std::string const) const
const Sample * const_buffer() const
PBD::RingBuffer< Sample > * _ltcbuf
void * get_buffer(pframes_t nframes)
void midi_to_wavetable(DummyMidiBuffer const *const src, size_t n_samples)
void fill_wavetable(const float *d, size_t n_samples)
DummyAudioPort(DummyAudioBackend &b, const std::string &, PortFlags)
void generate(const pframes_t n_samples)
std::string setup_generator(GeneratorType const, float const, int, int)
DummyMidiEvent(const DummyMidiEvent &other)
const uint8_t * data() const
pframes_t timestamp() const
DummyMidiEvent(const pframes_t timestamp, const uint8_t *data, size_t size)
std::string setup_generator(int, float const)
const DummyMidiBuffer * const_buffer() const
DummyMidiData::MIDISequence const * _midi_seq_dat
void * get_buffer(pframes_t nframes)
void midi_generate(const pframes_t n_samples)
DummyMidiPort(DummyAudioBackend &b, const std::string &, PortFlags)
void set_loopback(DummyMidiBuffer const *const src)
DummyMidiBuffer _loopback
void setup_random_number_generator()
Glib::Threads::Mutex generator_lock
DummyPort(DummyAudioBackend &b, const std::string &, PortFlags)
pframes_t pulse_position() const
int set_port_name(PortEngine::PortHandle, const std::string &)
uint32_t port_name_size() const
virtual void unregister_port(PortEngine::PortHandle)
bool physically_connected(PortEngine::PortHandle, bool process_callback_safe)
int disconnect(const std::string &src, const std::string &dst)
PortEngine::PortPtr get_port_by_name(const std::string &) const
int get_ports(const std::string &port_name_pattern, DataType type, PortFlags flags, std::vector< std::string > &) const
int connect(const std::string &src, const std::string &dst)
ChanCount n_physical_outputs() const
PortFlags get_port_flags(PortEngine::PortHandle) const
bool connected_to(PortEngine::PortHandle, const std::string &, bool process_callback_safe)
bool connected(PortEngine::PortHandle, bool process_callback_safe)
int get_connections(PortEngine::PortHandle, std::vector< std::string > &, bool process_callback_safe)
std::string get_port_name(PortEngine::PortHandle) const
ChanCount n_physical_inputs() const
void get_physical_outputs(DataType type, std::vector< std::string > &)
void get_physical_inputs(DataType type, std::vector< std::string > &)
DataType port_data_type(PortEngine::PortHandle) const
int disconnect_all(PortEngine::PortHandle)
bool port_is_physical(PortEngine::PortHandle) const
int get_port_property(PortEngine::PortHandle, const std::string &key, std::string &value, std::string &type) const
int set_port_property(PortEngine::PortHandle, const std::string &key, const std::string &value, const std::string &type)
PortEngine::PortPtr register_port(const std::string &shortname, ARDOUR::DataType, ARDOUR::PortFlags)
PortPtr const & PortHandle
std::shared_ptr< ProtoPort > PortPtr
libltc - en+decode linear timecode
struct ARDOUR::DummyMidiData::_MIDISequence MIDISequence
std::vector< std::shared_ptr< DummyMidiEvent > > DummyMidiBuffer
Temporal::samplecnt_t samplecnt_t
Temporal::samplepos_t samplepos_t
DriverSpeed(const std::string &n, float s, bool r=false)
DummyAudioBackend * engine
ThreadData(DummyAudioBackend *e, std::function< void()> fp, size_t stacksz)