SCDoc: Use proper static string constants instead of comparing string literals.
[supercollider.git] / platform / mac / SuperColliderAU / Source / ControlSpecs.h
blob50c614e35d4e0204391bf8ed4548aad08828e05c
1 /*
2 SuperColliderAU Copyright (c) 2006 Gerard Roma.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef _ControlSpecs_
21 #define _ControlSpecs_
22 #include <Carbon/Carbon.h>
23 #include <AudioUnit/AudioUnitProperties.h>
24 #include "SC_World.h"
27 const CFStringRef kSynthDefSpecKey = CFSTR("Synthdef");
28 const CFStringRef kParamsSpecKey = CFSTR("Params");
29 const CFStringRef kParamNameSpecKey = CFSTR("ParamName");
30 const CFStringRef kMinValueSpecKey = CFSTR("MinValue");
31 const CFStringRef kMaxValueSpecKey = CFSTR("MaxValue");
32 const CFStringRef kDefaultValueSpecKey = CFSTR("DefaultValue");
33 const CFStringRef kUnitSpecKey = CFSTR("Unit");
34 const CFStringRef kDisplaySpecKey = CFSTR("Display");
37 class ControlSpecs {
39 public:
40 ControlSpecs(CFDictionaryRef dict);
41 CFStringRef getName(UInt32 specNum, CFStringRef nameKey);
42 float getValue(UInt32 specNum, CFStringRef valueKey);
43 void setValue(UInt32 specNum, CFStringRef valueKey, float value);
44 long getDisplayFlag(UInt32 specNum);
45 CFArrayRef params;
46 CFIndex numberOfParameters;
47 CFStringRef synthName;
51 #endif