summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/AlsaMidiDriver.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-08 03:58:00 +0000
committerDavid Robillard <d@drobilla.net>2006-09-08 03:58:00 +0000
commit48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa (patch)
tree9da4b4b075791ac1ec78b499dbcbec6101f54690 /src/libs/engine/AlsaMidiDriver.h
parentacbe9a26ec3ab689e430225d15e95e73a7378aa9 (diff)
downloadingen-48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa.tar.gz
ingen-48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa.tar.bz2
ingen-48f87f1f1649fb7e169fdaac2cd38370e8a4a1fa.zip
De-singleton-ified Engine
Slight rework of Responder/ClientKey/ClientInterface for Requests git-svn-id: http://svn.drobilla.net/lad/ingen@119 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/AlsaMidiDriver.h')
-rw-r--r--src/libs/engine/AlsaMidiDriver.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/libs/engine/AlsaMidiDriver.h b/src/libs/engine/AlsaMidiDriver.h
index c1941c42..ad40ed17 100644
--- a/src/libs/engine/AlsaMidiDriver.h
+++ b/src/libs/engine/AlsaMidiDriver.h
@@ -50,19 +50,19 @@ public:
void remove_from_driver();
void set_name(const string& name);
- int port_id() const { return m_port_id; }
- DuplexPort<MidiMessage>* patch_port() const { return m_patch_port; }
+ int port_id() const { return _port_id; }
+ DuplexPort<MidiMessage>* patch_port() const { return _patch_port; }
private:
// Prevent copies (undefined)
AlsaMidiPort(const AlsaMidiPort&);
AlsaMidiPort& operator=(const AlsaMidiPort&);
- AlsaMidiDriver* m_driver;
- DuplexPort<MidiMessage>* m_patch_port;
- int m_port_id;
- unsigned char** m_midi_pool; ///< Pool of raw MIDI events for MidiMessage::buffer
- Queue<snd_seq_event_t> m_events;
+ AlsaMidiDriver* _driver;
+ DuplexPort<MidiMessage>* _patch_port;
+ int _port_id;
+ unsigned char** _midi_pool; ///< Pool of raw MIDI events for MidiMessage::buffer
+ Queue<snd_seq_event_t> _events;
};
@@ -82,15 +82,15 @@ public:
void activate();
void deactivate();
- bool is_activated() const { return m_is_activated; }
+ bool is_activated() const { return _is_activated; }
void prepare_block(const SampleCount block_start, const SampleCount block_end);
DriverPort* create_port(DuplexPort<MidiMessage>* patch_port)
{ return new AlsaMidiPort(this, patch_port); }
- snd_seq_t* seq_handle() const { return m_seq_handle; }
- snd_midi_event_t* event_coder() const { return m_event_coder; }
+ snd_seq_t* seq_handle() const { return _seq_handle; }
+ snd_midi_event_t* event_coder() const { return _event_coder; }
private:
@@ -98,8 +98,8 @@ private:
AlsaMidiDriver(const AlsaMidiDriver&);
AlsaMidiDriver& operator=(const AlsaMidiDriver&);
- List<AlsaMidiPort*> m_in_ports;
- List<AlsaMidiPort*> m_out_ports;
+ List<AlsaMidiPort*> _in_ports;
+ List<AlsaMidiPort*> _out_ports;
friend class AlsaMidiPort;
@@ -113,11 +113,11 @@ private:
// MIDI thread
static void* process_midi_in(void* me);
- snd_seq_t* m_seq_handle;
- snd_midi_event_t* m_event_coder;
- pthread_t m_process_thread;
- bool m_is_activated;
- static bool m_midi_thread_exit_flag;
+ snd_seq_t* _seq_handle;
+ snd_midi_event_t* _event_coder;
+ pthread_t _process_thread;
+ bool _is_activated;
+ static bool _midi_thread_exit_flag;
};