diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-10-07 02:20:29 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-10-07 02:20:29 +0000 |
commit | f16b2037025918e32c5fd90527f76e1102e5ecb9 (patch) | |
tree | 0da3b7a29d13b5b826b291ccb2f2676d2e227b40 /muse2/muse/ctrl.h | |
parent | 42039e7f7f215f6008829d8c6be591c998f1228c (diff) |
(hopefully) final huge namespace update.
Diffstat (limited to 'muse2/muse/ctrl.h')
-rw-r--r-- | muse2/muse/ctrl.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/muse2/muse/ctrl.h b/muse2/muse/ctrl.h index 1b603251..5e4ee531 100644 --- a/muse2/muse/ctrl.h +++ b/muse2/muse/ctrl.h @@ -31,19 +31,21 @@ #include <list> #include <qcolor.h> -const int AC_VOLUME = 0; -const int AC_PAN = 1; -const int AC_MUTE = 2; - #define AC_PLUGIN_CTL_BASE 0x1000 #define AC_PLUGIN_CTL_BASE_POW 12 #define AC_PLUGIN_CTL_ID_MASK 0xFFF -//inline int genACnum(int plugin, int ctrl) { return (plugin + 1) * AC_PLUGIN_CTL_BASE + ctrl; } -inline unsigned long genACnum(unsigned long plugin, unsigned long ctrl) { return (plugin + 1) * AC_PLUGIN_CTL_BASE + ctrl; } +namespace MusECore { class Xml; +const int AC_VOLUME = 0; +const int AC_PAN = 1; +const int AC_MUTE = 2; + +//inline int genACnum(int plugin, int ctrl) { return (plugin + 1) * AC_PLUGIN_CTL_BASE + ctrl; } +inline unsigned long genACnum(unsigned long plugin, unsigned long ctrl) { return (plugin + 1) * AC_PLUGIN_CTL_BASE + ctrl; } + enum CtrlValueType { VAL_LOG, VAL_LINEAR, VAL_INT, VAL_BOOL }; enum CtrlRecValueType { ARVT_VAL, ARVT_START, ARVT_STOP }; @@ -168,5 +170,7 @@ class CtrlListList : public std::map<int, CtrlList*, std::less<int> > { } }; +} // namespace MusECore + #endif |