Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bsemididevice.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __BSE_MIDI_DEVICE_H__
3 #define __BSE_MIDI_DEVICE_H__
4 
5 #include <bse/bsedevice.hh>
6 #include <bse/bsemidievent.hh>
7 
8 /* --- object type macros --- */
9 #define BSE_TYPE_MIDI_DEVICE (BSE_TYPE_ID (BseMidiDevice))
10 #define BSE_MIDI_DEVICE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_MIDI_DEVICE, BseMidiDevice))
11 #define BSE_MIDI_DEVICE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_MIDI_DEVICE, BseMidiDeviceClass))
12 #define BSE_IS_MIDI_DEVICE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_MIDI_DEVICE))
13 #define BSE_IS_MIDI_DEVICE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_MIDI_DEVICE))
14 #define BSE_MIDI_DEVICE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_MIDI_DEVICE, BseMidiDeviceClass))
15 
16 struct BseMidiHandle /* this should be nuked, it's useless */
17 {
18  guint readable : 1;
19  guint writable : 1;
20  guint running_thread : 1;
21  BseMidiDecoder *midi_decoder;
22 };
24  BseMidiDecoder *midi_decoder;
25  /* operational handle */
26  BseMidiHandle *handle;
27 };
29 {};
30 
31 void bse_midi_handle_init (BseMidiHandle *handle);
32 #endif /* __BSE_MIDI_DEVICE_H__ */
Definition: bsemididevice.hh:16
Definition: bsemididecoder.hh:20
Definition: bsemididevice.hh:28
Definition: bsedevice.hh:31
Definition: bsemididevice.hh:23
Definition: bsedevice.hh:36