Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bsemidinotifier.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_NOTIFIER_H__
3 #define __BSE_MIDI_NOTIFIER_H__
4 
5 #include <bse/bseitem.hh>
6 #include <bse/bsemidireceiver.hh>
7 
8 
9 /* --- object type macros --- */
10 #define BSE_TYPE_MIDI_NOTIFIER (BSE_TYPE_ID (BseMidiNotifier))
11 #define BSE_MIDI_NOTIFIER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_MIDI_NOTIFIER, BseMidiNotifier))
12 #define BSE_MIDI_NOTIFIER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_MIDI_NOTIFIER, BseMidiNotifierClass))
13 #define BSE_IS_MIDI_NOTIFIER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_MIDI_NOTIFIER))
14 #define BSE_IS_MIDI_NOTIFIER_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_MIDI_NOTIFIER))
15 #define BSE_MIDI_NOTIFIER_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_MIDI_NOTIFIER, BseMidiNotifierClass))
16 
18  BseMidiReceiver *midi_receiver;
19 };
21  void (*midi_event) (BseMidiNotifier *self, BseMidiEvent *event);
22 };
23 
24 void bse_midi_notifier_set_receiver (BseMidiNotifier *self,
25  BseMidiReceiver *midi_receiver);
26 void bse_midi_notifier_dispatch (BseMidiNotifier *self);
27 void bse_midi_notifiers_attach_source (void);
28 void bse_midi_notifiers_wakeup (void);
29 
30 namespace Bse {
31 
32 class MidiNotifierImpl : public ItemImpl, public virtual MidiNotifierIface {
33 protected:
34  virtual ~MidiNotifierImpl ();
35 public:
36  explicit MidiNotifierImpl (BseObject*);
37 };
38 
39 } // Bse
40 
41 #endif /* __BSE_MIDI_NOTIFIER_H__ */
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:91
Definition: bsemidinotifier.hh:20
Definition: bseobject.hh:57
Definition: bsemidinotifier.hh:32
Definition: bseitem.hh:148
Definition: bseitem.hh:37
Definition: bsemidinotifier.hh:17
Definition: bsemidievent.hh:72
Definition: bseitem.hh:32