summaryrefslogtreecommitdiff
path: root/libs/backends/alsa/alsa_midi.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-04 22:19:47 +0100
committerRobin Gareus <robin@gareus.org>2015-12-04 22:19:47 +0100
commitbfd2cbaa3f3d03dbca4c9ad424eab6a2ce4b6e99 (patch)
tree1f3a727b4b86ccbe0da7c650d0be2c6edcd2250c /libs/backends/alsa/alsa_midi.h
parentac075560bd8034a549bc017391fae92cfb5d7eef (diff)
ALSA: allow to dynamically add/remove midi devices & update their latency.
Diffstat (limited to 'libs/backends/alsa/alsa_midi.h')
-rw-r--r--libs/backends/alsa/alsa_midi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/backends/alsa/alsa_midi.h b/libs/backends/alsa/alsa_midi.h
index 7da991d66e..254835591f 100644
--- a/libs/backends/alsa/alsa_midi.h
+++ b/libs/backends/alsa/alsa_midi.h
@@ -42,6 +42,8 @@ public:
virtual void* main_process_thread () = 0;
+ const std::string & name () const { return _name; }
+
protected:
pthread_t _main_thread;
pthread_mutex_t _notify_mutex;
@@ -68,7 +70,8 @@ protected:
RingBuffer<uint8_t>* _rb;
-protected:
+ std::string _name;
+
virtual void init (const char *device_name, const bool input) = 0;
};