Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstsnifferscope.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 __BST_SNIFFER_SCOPE_H__
3 #define __BST_SNIFFER_SCOPE_H__
4 
5 #include "bstutils.hh"
6 
7 /* --- type macros --- */
8 #define BST_TYPE_SNIFFER_SCOPE (bst_sniffer_scope_get_type ())
9 #define BST_SNIFFER_SCOPE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_SNIFFER_SCOPE, BstSnifferScope))
10 #define BST_SNIFFER_SCOPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_SNIFFER_SCOPE, BstSnifferScopeClass))
11 #define BST_IS_SNIFFER_SCOPE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_SNIFFER_SCOPE))
12 #define BST_IS_SNIFFER_SCOPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_SNIFFER_SCOPE))
13 #define BST_SNIFFER_SCOPE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_SNIFFER_SCOPE, BstSnifferScopeClass))
14 
15 /* --- API --- */
16 typedef struct {
17  GtkWidget parent_instance;
18  SfiProxy proxy;
19  guint n_values;
20  float *lvalues;
21  float *rvalues;
22  GdkGC *oshoot_gc;
24 typedef GtkWidgetClass BstSnifferScopeClass;
25 GType bst_sniffer_scope_get_type (void);
26 GtkWidget* bst_sniffer_scope_new (void);
27 void bst_sniffer_scope_set_sniffer (BstSnifferScope *scope,
28  SfiProxy proxy);
29 
30 typedef enum {
31  BST_SOURCE_PROBE_RANGE = 0x01,
32  BST_SOURCE_PROBE_ENERGIE = 0x02,
33  BST_SOURCE_PROBE_SAMPLES = 0x04,
34  BST_SOURCE_PROBE_FFT = 0x08,
35 } BstSourceProbeFeature;
36 
37 void bst_source_queue_probe_request (SfiProxy source,
38  guint ochannel_id,
39  BstSourceProbeFeature pfeature,
40  gfloat frequency);
41 
42 #endif /* __BST_SNIFFER_SCOPE_H__ */
Definition: bstsnifferscope.hh:16