Mercurial > hg > svcore
comparison data/midi/rtmidi/RtMidi.h @ 562:ecce042cc374
* Wire up MIDI input port (as far as printing a message when an event comes
in, anyway)
author | Chris Cannam |
---|---|
date | Mon, 23 Feb 2009 17:50:17 +0000 |
parents | 32d156c75df7 |
children | 3086876472dc |
comparison
equal
deleted
inserted
replaced
561:863ad4b1f841 | 562:ecce042cc374 |
---|---|
107 | 107 |
108 //! Default constructor. | 108 //! Default constructor. |
109 /*! | 109 /*! |
110 An exception will be thrown if a MIDI system initialization error occurs. | 110 An exception will be thrown if a MIDI system initialization error occurs. |
111 */ | 111 */ |
112 RtMidiIn(); | 112 RtMidiIn(std::string inputName = std::string("RtMidi Input Client")); |
113 | 113 |
114 //! If a MIDI connection is still open, it will be closed by the destructor. | 114 //! If a MIDI connection is still open, it will be closed by the destructor. |
115 ~RtMidiIn(); | 115 ~RtMidiIn(); |
116 | 116 |
117 //! Open a MIDI input connection. | 117 //! Open a MIDI input connection. |
215 apiData(0), usingCallback(false), userCallback(0), userData(0) {} | 215 apiData(0), usingCallback(false), userCallback(0), userData(0) {} |
216 }; | 216 }; |
217 | 217 |
218 private: | 218 private: |
219 | 219 |
220 void initialize( void ); | 220 void initialize(std::string name); |
221 RtMidiInData inputData_; | 221 RtMidiInData inputData_; |
222 | 222 |
223 }; | 223 }; |
224 | 224 |
225 /**********************************************************************/ | 225 /**********************************************************************/ |
242 | 242 |
243 //! Default constructor. | 243 //! Default constructor. |
244 /*! | 244 /*! |
245 An exception will be thrown if a MIDI system initialization error occurs. | 245 An exception will be thrown if a MIDI system initialization error occurs. |
246 */ | 246 */ |
247 RtMidiOut(); | 247 RtMidiOut(std::string outputName = "RtMidi Output Client"); |
248 | 248 |
249 //! The destructor closes any open MIDI connections. | 249 //! The destructor closes any open MIDI connections. |
250 ~RtMidiOut(); | 250 ~RtMidiOut(); |
251 | 251 |
252 //! Open a MIDI output connection. | 252 //! Open a MIDI output connection. |
288 */ | 288 */ |
289 void sendMessage( std::vector<unsigned char> *message ); | 289 void sendMessage( std::vector<unsigned char> *message ); |
290 | 290 |
291 private: | 291 private: |
292 | 292 |
293 void initialize( void ); | 293 void initialize(std::string name); |
294 }; | 294 }; |
295 | 295 |
296 #endif | 296 #endif |