19 #ifndef __libbackend_alsa_midi_h__
20 #define __libbackend_alsa_midi_h__
31 #define MaxAlsaMidiEventSize (256)
44 void setup_timing (
const size_t samples_per_period,
const float samplerate);
79 virtual void init (
const char *device_name,
const bool input) = 0;
99 int queue_event (
const uint64_t,
const uint8_t *,
const size_t);
const std::string & name() const
PBD::RingBuffer< uint8_t > * _rb
pthread_cond_t _notify_ready
void setup_timing(const size_t samples_per_period, const float samplerate)
uint64_t _clock_monotonic
pthread_mutex_t _notify_mutex
size_t _samples_per_period
virtual void init(const char *device_name, const bool input)=0
virtual void * main_process_thread()=0
size_t recv_event(pframes_t &, uint8_t *, size_t &)
int queue_event(const uint64_t, const uint8_t *, const size_t)
int send_event(const pframes_t, const uint8_t *, const size_t)