BEAST/BSE - Better Audio System and Sound Engine
0.8.2
|
00001 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html 00002 #ifndef __BSE_CONSTANT_H__ 00003 #define __BSE_CONSTANT_H__ 00004 00005 #include <bse/bsesource.hh> 00006 00007 #ifdef __cplusplus 00008 extern "C" { 00009 #endif /* __cplusplus */ 00010 00011 00012 00013 00014 /* --- object type macros --- */ 00015 #define BSE_TYPE_CONSTANT (BSE_TYPE_ID (BseConstant)) 00016 #define BSE_CONSTANT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_CONSTANT, BseConstant)) 00017 #define BSE_CONSTANT_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_CONSTANT, BseConstantClass)) 00018 #define BSE_IS_CONSTANT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_CONSTANT)) 00019 #define BSE_IS_CONSTANT_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_CONSTANT)) 00020 #define BSE_CONSTANT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_CONSTANT, BseConstantClass)) 00021 #define BSE_CONSTANT_N_OUTPUTS (4) 00022 /* --- BseConstant source --- */ 00023 struct BseConstant; 00024 struct BseConstantClass; 00025 struct BseConstant : BseSource { 00026 gfloat constants[BSE_CONSTANT_N_OUTPUTS]; 00027 }; 00028 struct BseConstantClass : BseSourceClass 00029 {}; 00030 00031 #ifdef __cplusplus 00032 } 00033 #endif /* __cplusplus */ 00034 #endif /* __BSE_CONSTANT_H__ */