diff options
author | Robin Gareus <robin@gareus.org> | 2015-12-04 22:19:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-12-04 22:19:47 +0100 |
commit | bfd2cbaa3f3d03dbca4c9ad424eab6a2ce4b6e99 (patch) | |
tree | 1f3a727b4b86ccbe0da7c650d0be2c6edcd2250c /libs/backends/alsa/alsa_midi.h | |
parent | ac075560bd8034a549bc017391fae92cfb5d7eef (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.h | 5 |
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; }; |