Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bseeditablesample.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_EDITABLE_SAMPLE_H__
3 #define __BSE_EDITABLE_SAMPLE_H__
4 
5 #include <bse/bsesuper.hh>
6 #include <bse/gslwavechunk.hh>
7 
8 
9 /* --- object type macros --- */
10 #define BSE_TYPE_EDITABLE_SAMPLE (BSE_TYPE_ID (BseEditableSample))
11 #define BSE_EDITABLE_SAMPLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_EDITABLE_SAMPLE, BseEditableSample))
12 #define BSE_EDITABLE_SAMPLE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_EDITABLE_SAMPLE, BseEditableSampleClass))
13 #define BSE_IS_EDITABLE_SAMPLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_EDITABLE_SAMPLE))
14 #define BSE_IS_EDITABLE_SAMPLE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_EDITABLE_SAMPLE))
15 #define BSE_EDITABLE_SAMPLE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_EDITABLE_SAMPLE, BseEditableSampleClass))
16 /* --- object flagss --- */
17 #define BSE_EDITABLE_SAMPLE_OPENED(obj) (BSE_EDITABLE_SAMPLE (obj)->open_count > 0)
18 #define BSE_EDITABLE_SAMPLE_FLAGS_USHIFT (BSE_ITEM_FLAGS_USHIFT + 0)
19 
21  guint open_count;
22  GslWaveChunk *wchunk;
23 };
25  void (*changed) (BseEditableSample *sample);
26 };
27 void bse_editable_sample_set_wchunk (BseEditableSample *self,
28  GslWaveChunk *wchunk);
29 namespace Bse {
30 
31 class EditableSampleImpl : public ItemImpl, public virtual EditableSampleIface {
32 protected:
33  virtual ~EditableSampleImpl ();
34 public:
35  explicit EditableSampleImpl (BseObject*);
36 };
37 
38 } // Bse
39 
40 #endif /* __BSE_EDITABLE_SAMPLE_H__ */
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:91
Definition: bseeditablesample.hh:24
Definition: bseeditablesample.hh:31
Definition: bseeditablesample.hh:20
Definition: bseobject.hh:57
Definition: bseitem.hh:148
Definition: bseitem.hh:37
Definition: bseitem.hh:32