ASPiK SDK
Loading...
Searching...
No Matches
channelformats.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// ASPiK VST Shell File: channelformats.h
3//
18// -----------------------------------------------------------------------------
19#ifndef VTestA_channelformats_h
20#define VTestA_channelformats_h
21
22#include "pluginterfaces/vst/vsttypes.h"
23
30const unsigned int NUM_SUPPORTED_CHANNEL_FORMATS = 15;
31
32namespace Steinberg {
33namespace Vst {
34namespace ASPiK {
35
44{SpeakerArr::kEmpty, SpeakerArr::kMono, SpeakerArr::kStereo, SpeakerArr::k30Cine,
45 SpeakerArr::k31Cine, SpeakerArr::k40Music, SpeakerArr::k50, SpeakerArr::k51,
46 SpeakerArr::k60Music, SpeakerArr::k61Music, SpeakerArr::k70Cine, SpeakerArr::k70Music,
47 SpeakerArr::k71Cine, SpeakerArr::k71Music, SpeakerArr::k71Proximity};
48
56
67SpeakerArrangement getSupportedSpeakerArrangement(uint32_t index)
68{
70 return speakerArrangements[0];
71
72 return speakerArrangements[index];
73}
74
85uint32_t getChannelFormatForSpkrArrangement(SpeakerArrangement arr)
86{
87 switch(arr)
88 {
89 case SpeakerArr::kEmpty: {
90 return kCFNone; }
91
92 case SpeakerArr::kMono: {
93 return kCFMono; }
94
95 case SpeakerArr::kStereo: {
96 return kCFStereo; }
97
98 case SpeakerArr::k30Cine: {
99 return kCFLCR; }
100
101 case SpeakerArr::k31Cine: {
102 return kCFLCRS; }
103
104 case SpeakerArr::k40Music: {
105 return kCFQuad; }
106
107 case SpeakerArr::k50: {
108 return kCF5p0; }
109
110 case SpeakerArr::k51: {
111 return kCF5p1; }
112
113 case SpeakerArr::k60Music: {
114 return kCF6p0; }
115
116 case SpeakerArr::k61Music: {
117 return kCF6p1; }
118
119 case SpeakerArr::k70Cine: {
120 return kCF7p0Sony; }
121
122 case SpeakerArr::k70Music: {
123 return kCF7p0DTS; }
124
125 case SpeakerArr::k71Cine: {
126 return kCF7p1Sony; }
127
128 case SpeakerArr::k71Music: {
129 return kCF7p1DTS; }
130
131 case SpeakerArr::k71Proximity: {
132 return kCF7p1Proximity; }
133
134 default: {
135 return kCFNone; }
136 }
137}
138
139
140
141}
142}
143}
144
145#endif
SpeakerArrangement getSupportedSpeakerArrangement(uint32_t index)
implements n-order Lagrange Interpolation
Definition: channelformats.h:67
uint32_t getChannelFormatForSpkrArrangement(SpeakerArrangement arr)
implements n-order Lagrange Interpolation
Definition: channelformats.h:85
uint32_t getNumSupportedChannelFormats()
returns number of supported channel I/O combinations
Definition: channelformats.h:55
SpeakerArrangement speakerArrangements[NUM_SUPPORTED_CHANNEL_FORMATS]
fixed array of supported VST3 speaker arrangements you can add more here if you want to support more ...
Definition: channelformats.h:43
const unsigned int NUM_SUPPORTED_CHANNEL_FORMATS
number of supported channel I/O combinations
Definition: channelformats.h:30