vstparameter.h (2558B)
1 /* 2 * Copyright 2024 Michael Fabian 'Xaymar' Dirks <info@xaymar.com> 3 * Copyright 2024 Steinberg Media Technologies GmbH 4 * 5 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 6 * 7 * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 8 * 9 * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 10 * 11 * 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 12 * 13 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 14 */ 15 16 #pragma once 17 #include "vsttypes.h" 18 19 #pragma pack(push, 8) 20 21 enum VstParameterFlags { 22 kVstParameterIsSwitch = 1, 23 kVstParameterUsesIntegerMinMax = 2, 24 kVstParameterCanRamp = 7, 25 }; 26 27 struct VstParameterProperties { 28 float __unk00; 29 float __unk01; 30 float __unk02; 31 char label[64]; 32 VstInt32 flags; 33 VstInt32 minInteger; 34 VstInt32 maxInteger; 35 VstInt32 __unk03; 36 VstInt32 __unk04; 37 char shortLabel[8]; 38 // There's more after this, but it's not used? 39 // We know what they're for (see vst.h), but they don't appear anywhere. 40 VstInt16 __unk05; // Order/Index for display. Starts at 0. 41 VstInt16 __unk06; // Category Index, 0 for none, 1+ for category. 42 VstInt16 __unk07; // Number of parameters in this category 43 VstInt16 __unk08; // Know absolutely nothing about this one. 44 char __unk09[24]; // Category Label. We know the size here, and what it is. 45 char __unk10[16]; // Always exists, not sure why. May be padding. 46 }; 47 48 #pragma pack(pop)