]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-tools.git/blob - alpha/pafenc_a.h
Pyalpha tools for performance audio demo in PRSDK.
[processor-sdk/performance-audio-tools.git] / alpha / pafenc_a.h
2 /*
3 * Copyright (C) 2004-2017 Texas Instruments Incorporated - http://www.ti.com/
4 * All rights reserved.  
5 *
6 *  Redistribution and use in source and binary forms, with or without
7 *  modification, are permitted provided that the following conditions
8 *  are met:
9 *
10 *    Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 *
13 *    Redistributions in binary form must reproduce the above copyright
14 *    notice, this list of conditions and the following disclaimer in the
15 *    documentation and/or other materials provided with the
16 *    distribution.
17 *
18 *    Neither the name of Texas Instruments Incorporated nor the names of
19 *    its contributors may be used to endorse or promote products derived
20 *    from this software without specific prior written permission.
21 *
22 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
23 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
36 //
37 //
38 // Performance Audio Framework Encoder Declarations
39 //
40 //
41 //
43 #ifndef _PAFENC_A
44 #define _PAFENC_A
46 #include <acpbeta.h>
47 #include <paftyp_a.h>
48 #include <pafmac_a.h>
50 #define  readENCMode 0xc200+STD_BETA_ENCODE,0x0400
51 #define writeENCModeDisable 0xca00+STD_BETA_ENCODE,0x0400
52 #define writeENCModeEnable 0xca00+STD_BETA_ENCODE,0x0401
53 #define writeENCModeChannelCompact 0xca00+STD_BETA_ENCODE,0x0402
55 #define  readENCCommand 0xc200+STD_BETA_ENCODE,0x0500
56 #define writeENCCommandN(N) 0xca00+STD_BETA_ENCODE,0x0500+((N)&0xff)
57 #define writeENCCommandNone 0xca00+STD_BETA_ENCODE,0x0500
58 #define writeENCCommandMute 0xca00+STD_BETA_ENCODE,0x0501
59 #define writeENCCommandUnmute 0xca00+STD_BETA_ENCODE,0x0502
60 #define wroteENCCommandNoned 0xca00+STD_BETA_ENCODE,0x0580
61 #define wroteENCCommandMuted 0xca00+STD_BETA_ENCODE,0x0581
62 #define wroteENCCommandUnmuted 0xca00+STD_BETA_ENCODE,0x0582
64 #define  readENCSampleRate 0xc200+STD_BETA_ENCODE,0x0600
65 #define wroteENCSampleRateUnknown 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_UNKNOWN
66 #define wroteENCSampleRateNone 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_NONE
67 #define wroteENCSampleRate8000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_8000HZ
68 #define wroteENCSampleRate11025Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_11025HZ
69 #define wroteENCSampleRate12000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_12000HZ
70 #define wroteENCSampleRate16000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_16000HZ
71 #define wroteENCSampleRate22050Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_22050HZ
72 #define wroteENCSampleRate24000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_24000HZ
73 #define wroteENCSampleRate32000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_32000HZ
74 #define wroteENCSampleRate44100Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_44100HZ
75 #define wroteENCSampleRate48000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_48000HZ
76 #define wroteENCSampleRate64000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_64000HZ
77 #define wroteENCSampleRate88200Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_88200HZ
78 #define wroteENCSampleRate96000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_96000HZ
79 #define wroteENCSampleRate128000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_128000HZ
80 #define wroteENCSampleRate176400Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_176400HZ
81 #define wroteENCSampleRate192000Hz 0xca00+STD_BETA_ENCODE,0x0600+PAF_SAMPLERATE_192000HZ
83 #define  readENCChannelCount 0xc200+STD_BETA_ENCODE,0x0700
84 #define wroteENCChannelCountN(N) 0xc200+STD_BETA_ENCODE,0x0700+(N)
86 #define  readENCChannelConfigurationRequest 0xc400+STD_BETA_ENCODE,0x0020
88 #define writeENCChannelConfigurationRequestUnknown 0xcc00+STD_BETA_ENCODE,0x0020,0x0000,0x0000
90 #define writeENCChannelConfigurationRequestNone 0xcc00+STD_BETA_ENCODE,0x0020,0x0001,0x0000
91 #define writeENCChannelConfigurationRequestMono 0xcc00+STD_BETA_ENCODE,0x0020,0x0002,0x0000
92 #define writeENCChannelConfigurationRequestStereo 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,0x0000
93 #define wroteENCChannelConfigurationRequestStereoLtRt 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,0x0002
95 #define writeENCChannelConfigurationRequestNone_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0001,0x0000
96 #define writeENCChannelConfigurationRequestMono_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0002,0x0000
97 #define writeENCChannelConfigurationRequestPhantom0_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,0x0000
98 #define writeENCChannelConfigurationRequestPhantom0Stereo_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,0x0001
99 #define writeENCChannelConfigurationRequestPhantom0LtRt_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,0x0002
100 #define writeENCChannelConfigurationRequestPhantom0Mono_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,0x0003
101 #define wroteENCChannelConfigurationRequestPhantom0Dual_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,0x0004
102 #define writeENCChannelConfigurationRequestPhantom1_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0004,0x0000
103 #define writeENCChannelConfigurationRequestPhantom2_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,0x0000
104 #define wroteENCChannelConfigurationRequestPhantom2Stereo_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,0x0001
105 #define writeENCChannelConfigurationRequestPhantom2LtRt_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,0x0002
106 #define wroteENCChannelConfigurationRequestPhantom2Mono_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,0x0003
107 #define writeENCChannelConfigurationRequestPhantom3_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0006,0x0000
108 #define writeENCChannelConfigurationRequestPhantom4_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0007,0x0000
109 #define writeENCChannelConfigurationRequestSurround0_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0020,0x0000
110 #define writeENCChannelConfigurationRequestSurround1_0 0xcc00+STD_BETA_ENCODE,0x0020,0x0009,0x0000
111 #define writeENCChannelConfigurationRequestSurround2_0 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,0x0000
112 #define wroteENCChannelConfigurationRequestSurround2Stereo_0 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,0x0001
113 #define writeENCChannelConfigurationRequestSurround2LtRt_0 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,0x0002
114 #define wroteENCChannelConfigurationRequestSurround2Mono_0 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,0x0003
115 #define writeENCChannelConfigurationRequestSurround3_0 0xcc00+STD_BETA_ENCODE,0x0020,0x000b,0x0000
116 #define writeENCChannelConfigurationRequestSurround4_0 0xcc00+STD_BETA_ENCODE,0x0020,0x000c,0x0000
118 #define writeENCChannelConfigurationRequestNone_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0101,0x0000
119 #define writeENCChannelConfigurationRequestMono_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0102,0x0000
120 #define writeENCChannelConfigurationRequestPhantom0_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,0x0000
121 #define writeENCChannelConfigurationRequestPhantom0Stereo_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,0x0001
122 #define writeENCChannelConfigurationRequestPhantom0LtRt_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,0x0002
123 #define writeENCChannelConfigurationRequestPhantom0Mono_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,0x0003
124 #define wroteENCChannelConfigurationRequestPhantom0Dual_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,0x0004
125 #define writeENCChannelConfigurationRequestPhantom1_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0104,0x0000
126 #define writeENCChannelConfigurationRequestPhantom2_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,0x0000
127 #define wroteENCChannelConfigurationRequestPhantom2Stereo_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,0x0001
128 #define writeENCChannelConfigurationRequestPhantom2LtRt_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,0x0002
129 #define wroteENCChannelConfigurationRequestPhantom2Mono_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,0x0003
130 #define writeENCChannelConfigurationRequestPhantom3_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0106,0x0000
131 #define writeENCChannelConfigurationRequestPhantom4_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0107,0x0000
132 #define writeENCChannelConfigurationRequestSurround0_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0108,0x0000
133 #define writeENCChannelConfigurationRequestSurround1_1 0xcc00+STD_BETA_ENCODE,0x0020,0x0109,0x0000
134 #define writeENCChannelConfigurationRequestSurround2_1 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,0x0000
135 #define wroteENCChannelConfigurationRequestSurround2Stereo_1 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,0x0001
136 #define writeENCChannelConfigurationRequestSurround2LtRt_1 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,0x0002
137 #define wroteENCChannelConfigurationRequestSurround2Mono_1 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,0x0003
138 #define writeENCChannelConfigurationRequestSurround3_1 0xcc00+STD_BETA_ENCODE,0x0020,0x010b,0x0000
139 #define writeENCChannelConfigurationRequestSurround4_1 0xcc00+STD_BETA_ENCODE,0x0020,0x010c,0x0000
141 #define writeENCChannelConfigurationRequestNone_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0201,0x0000
142 #define writeENCChannelConfigurationRequestMono_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0202,0x0000
143 #define writeENCChannelConfigurationRequestPhantom0_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,0x0000
144 #define writeENCChannelConfigurationRequestPhantom0Stereo_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,0x0001
145 #define writeENCChannelConfigurationRequestPhantom0LtRt_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,0x0002
146 #define writeENCChannelConfigurationRequestPhantom0Mono_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,0x0003
147 #define wroteENCChannelConfigurationRequestPhantom0Dual_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,0x0004
148 #define writeENCChannelConfigurationRequestPhantom1_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0204,0x0000
149 #define writeENCChannelConfigurationRequestPhantom2_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,0x0000
150 #define wroteENCChannelConfigurationRequestPhantom2Stereo_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,0x0001
151 #define writeENCChannelConfigurationRequestPhantom2LtRt_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,0x0002
152 #define wroteENCChannelConfigurationRequestPhantom2Mono_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,0x0003
153 #define writeENCChannelConfigurationRequestPhantom3_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0206,0x0000
154 #define writeENCChannelConfigurationRequestPhantom4_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0207,0x0000
155 #define writeENCChannelConfigurationRequestSurround0_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0208,0x0000
156 #define writeENCChannelConfigurationRequestSurround1_2 0xcc00+STD_BETA_ENCODE,0x0020,0x0209,0x0000
157 #define writeENCChannelConfigurationRequestSurround2_2 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,0x0000
158 #define wroteENCChannelConfigurationRequestSurround2Stereo_2 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,0x0001
159 #define writeENCChannelConfigurationRequestSurround2LtRt_2 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,0x0002
160 #define wroteENCChannelConfigurationRequestSurround2Mono_2 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,0x0003
161 #define writeENCChannelConfigurationRequestSurround3_2 0xcc00+STD_BETA_ENCODE,0x0020,0x020b,0x0000
162 #define writeENCChannelConfigurationRequestSurround4_2 0xcc00+STD_BETA_ENCODE,0x0020,0x020c,0x0000
164 #define writeENCChannelConfigurationRequestNoneX_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0001,(n<<8|0x0000)
165 #define writeENCChannelConfigurationRequestNoneLwRw_0 writeENCChannelConfigurationRequestNoneX_0(0x01)
166 #define writeENCChannelConfigurationRequestNoneLhRh_0 writeENCChannelConfigurationRequestNoneX_0(0x04)
167 #define writeENCChannelConfigurationRequestNoneLwRwLhRh_0 writeENCChannelConfigurationRequestNoneX_0(0x05)
168 #define writeENCChannelConfigurationRequestMonoX_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0002,(n<<8|0x0000)
169 #define writeENCChannelConfigurationRequestMonoLwRw_0 writeENCChannelConfigurationRequestMonoX_0(0x01)
170 #define writeENCChannelConfigurationRequestMonoLhRh_0 writeENCChannelConfigurationRequestMonoX_0(0x04)
171 #define writeENCChannelConfigurationRequestMonoLwRwLhRh_0 writeENCChannelConfigurationRequestMonoX_0(0x05)
172 #define writeENCChannelConfigurationRequestPhantom0X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,(n<<8|0x0000)
173 #define writeENCChannelConfigurationRequestPhantom0LwRw_0 writeENCChannelConfigurationRequestPhantom0X_0(0x01)
174 #define writeENCChannelConfigurationRequestPhantom0LhRh_0 writeENCChannelConfigurationRequestPhantom0X_0(0x04)
175 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRh_0 writeENCChannelConfigurationRequestPhantom0X_0(0x05)
176 #define writeENCChannelConfigurationRequestPhantom0XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,(n<<8|0x0001)
177 #define writeENCChannelConfigurationRequestPhantom0LwRwStereo_0 writeENCChannelConfigurationRequestPhantom0XStereo_0(0x01)
178 #define writeENCChannelConfigurationRequestPhantom0LhRhStereo_0 writeENCChannelConfigurationRequestPhantom0XStereo_0(0x04)
179 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhStereo_0 writeENCChannelConfigurationRequestPhantom0XStereo_0(0x05)
180 #define writeENCChannelConfigurationRequestPhantom0XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,(n<<8|0x0002)
181 #define writeENCChannelConfigurationRequestPhantom0LwRwLtRt_0 writeENCChannelConfigurationRequestPhantom0XLtRt_0(0x01)
182 #define writeENCChannelConfigurationRequestPhantom0LhRhLtRt_0 writeENCChannelConfigurationRequestPhantom0XLtRt_0(0x04)
183 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhLtRt_0 writeENCChannelConfigurationRequestPhantom0XLtRt_0(0x05)
184 #define writeENCChannelConfigurationRequestPhantom0XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,(n<<8|0x0003)
185 #define writeENCChannelConfigurationRequestPhantom0LwRwMono_0 writeENCChannelConfigurationRequestPhantom0XMono_0(0x01)
186 #define writeENCChannelConfigurationRequestPhantom0LhRhMono_0 writeENCChannelConfigurationRequestPhantom0XMono_0(0x04)
187 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhMono_0 writeENCChannelConfigurationRequestPhantom0XMono_0(0x05)
188 #define wroteENCChannelConfigurationRequestPhantom0XDual_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0003,(n<<8|0x0004)
189 #define wroteENCChannelConfigurationRequestPhantom0LwRwDual_0 wroteENCChannelConfigurationRequestPhantom0XDual_0(0x01)
190 #define wroteENCChannelConfigurationRequestPhantom0LhRhDual_0 wroteENCChannelConfigurationRequestPhantom0XDual_0(0x04)
191 #define wroteENCChannelConfigurationRequestPhantom0LwRwLhRhDual_0 wroteENCChannelConfigurationRequestPhantom0XDual_0(0x05)
192 #define writeENCChannelConfigurationRequestPhantom1X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0004,(n<<8|0x0000)
193 #define writeENCChannelConfigurationRequestPhantom1LwRw_0 writeENCChannelConfigurationRequestPhantom1X_0(0x01)
194 #define writeENCChannelConfigurationRequestPhantom1LhRh_0 writeENCChannelConfigurationRequestPhantom1X_0(0x04)
195 #define writeENCChannelConfigurationRequestPhantom1LwRwLhRh_0 writeENCChannelConfigurationRequestPhantom1X_0(0x05)
196 #define writeENCChannelConfigurationRequestPhantom2X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,(n<<8|0x0000)
197 #define writeENCChannelConfigurationRequestPhantom2LwRw_0 writeENCChannelConfigurationRequestPhantom2X_0(0x01)
198 #define writeENCChannelConfigurationRequestPhantom2LhRh_0 writeENCChannelConfigurationRequestPhantom2X_0(0x04)
199 #define writeENCChannelConfigurationRequestPhantom2LwRwLhRh_0 writeENCChannelConfigurationRequestPhantom2X_0(0x05)
200 #define wroteENCChannelConfigurationRequestPhantom2XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,(n<<8|0x0001)
201 #define wroteENCChannelConfigurationRequestPhantom2LwRwStereo_0 wroteENCChannelConfigurationRequestPhantom2XStereo_0(0x01)
202 #define wroteENCChannelConfigurationRequestPhantom2LhRhStereo_0 wroteENCChannelConfigurationRequestPhantom2XStereo_0(0x04)
203 #define wroteENCChannelConfigurationRequestPhantom2LwRwLhRhStereo_0 wroteENCChannelConfigurationRequestPhantom2XStereo_0(0x05)
204 #define writeENCChannelConfigurationRequestPhantom2XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,(n<<8|0x0002)
205 #define writeENCChannelConfigurationRequestPhantom2LwRwLtRt_0 writeENCChannelConfigurationRequestPhantom2XLtRt_0(0x01)
206 #define writeENCChannelConfigurationRequestPhantom2LhRhLtRt_0 writeENCChannelConfigurationRequestPhantom2XLtRt_0(0x04)
207 #define writeENCChannelConfigurationRequestPhantom2LwRwLhRhLtRt_0 writeENCChannelConfigurationRequestPhantom2XLtRt_0(0x05)
208 #define wroteENCChannelConfigurationRequestPhantom2XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0005,(n<<8|0x0003)
209 #define wroteENCChannelConfigurationRequestPhantom2LwRwMono_0 wroteENCChannelConfigurationRequestPhantom2XMono_0(0x01)
210 #define wroteENCChannelConfigurationRequestPhantom2LhRhMono_0 wroteENCChannelConfigurationRequestPhantom2XMono_0(0x04)
211 #define wroteENCChannelConfigurationRequestPhantom2LwRwLhRhMono_0 wroteENCChannelConfigurationRequestPhantom2XMono_0(0x05)
212 #define writeENCChannelConfigurationRequestPhantom3X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0006,(n<<8|0x0000)
213 #define writeENCChannelConfigurationRequestPhantom3LwRw_0 writeENCChannelConfigurationRequestPhantom3X_0(0x01)
214 #define writeENCChannelConfigurationRequestPhantom3LhRh_0 writeENCChannelConfigurationRequestPhantom3X_0(0x04)
215 #define writeENCChannelConfigurationRequestPhantom3LwRwLhRh_0 writeENCChannelConfigurationRequestPhantom3X_0(0x05)
216 #define writeENCChannelConfigurationRequestPhantom4X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0007,(n<<8|0x0000)
217 #define writeENCChannelConfigurationRequestPhantom4LwRw_0 writeENCChannelConfigurationRequestPhantom4X_0(0x01)
218 #define writeENCChannelConfigurationRequestPhantom4LhRh_0 writeENCChannelConfigurationRequestPhantom4X_0(0x04)
219 #define writeENCChannelConfigurationRequestPhantom4LwRwLhRh_0 writeENCChannelConfigurationRequestPhantom4X_0(0x05)
220 #define writeENCChannelConfigurationRequestSurround0X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0008,(n<<8|0x0000)
221 #define writeENCChannelConfigurationRequestSurround0LwRw_0 writeENCChannelConfigurationRequestSurround0X_0(0x01)
222 #define writeENCChannelConfigurationRequestSurround0LhRh_0 writeENCChannelConfigurationRequestSurround0X_0(0x04)
223 #define writeENCChannelConfigurationRequestSurround0LwRwLhRh_0 writeENCChannelConfigurationRequestSurround0X_0(0x05)
224 #define writeENCChannelConfigurationRequestSurround1X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0009,(n<<8|0x0000)
225 #define writeENCChannelConfigurationRequestSurround1LwRw_0 writeENCChannelConfigurationRequestSurround1X_0(0x01)
226 #define writeENCChannelConfigurationRequestSurround1LhRh_0 writeENCChannelConfigurationRequestSurround1X_0(0x04)
227 #define writeENCChannelConfigurationRequestSurround1LwRwLhRh_0 writeENCChannelConfigurationRequestSurround1X_0(0x05)
228 #define writeENCChannelConfigurationRequestSurround2X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,(n<<8|0x0000)
229 #define writeENCChannelConfigurationRequestSurround2LwRw_0 writeENCChannelConfigurationRequestSurround2X_0(0x01) 
230 #define writeENCChannelConfigurationRequestSurround2LhRh_0 writeENCChannelConfigurationRequestSurround2X_0(0x04) 
231 #define writeENCChannelConfigurationRequestSurround2LwRwLhRh_0 writeENCChannelConfigurationRequestSurround2X_0(0x05)
232 #define wroteENCChannelConfigurationRequestSurround2XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,(n<<8|0x0001)
233 #define wroteENCChannelConfigurationRequestSurround2LwRwStereo_0 wroteENCChannelConfigurationRequestSurround2XStereo_0(0x01)
234 #define wroteENCChannelConfigurationRequestSurround2LhRhStereo_0 wroteENCChannelConfigurationRequestSurround2XStereo_0(0x04)
235 #define wroteENCChannelConfigurationRequestSurround2LwRwLhRhStereo_0 wroteENCChannelConfigurationRequestSurround2XStereo_0(0x05)
236 #define writeENCChannelConfigurationRequestSurround2XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,(n<<8|0x0002)
237 #define writeENCChannelConfigurationRequestSurround2LwRwLtRt_0 writeENCChannelConfigurationRequestSurround2XLtRt_0(0x01)
238 #define writeENCChannelConfigurationRequestSurround2LhRhLtRt_0 writeENCChannelConfigurationRequestSurround2XLtRt_0(0x04)
239 #define writeENCChannelConfigurationRequestSurround2LwRwLhRhLtRt_0 writeENCChannelConfigurationRequestSurround2XLtRt_0(0x05)
240 #define wroteENCChannelConfigurationRequestSurround2XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x000a,(n<<8|0x0003)
241 #define wroteENCChannelConfigurationRequestSurround2LwRwMono_0 wroteENCChannelConfigurationRequestSurround2XMono_0(0x01)
242 #define wroteENCChannelConfigurationRequestSurround2LhRhMono_0 wroteENCChannelConfigurationRequestSurround2XMono_0(0x04)
243 #define wroteENCChannelConfigurationRequestSurround2LwRwLhRhMono_0 wroteENCChannelConfigurationRequestSurround2XMono_0(0x05)
244 #define writeENCChannelConfigurationRequestSurround3X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x000b,(n<<8|0x0000)
245 #define writeENCChannelConfigurationRequestSurround3LwRw_0 writeENCChannelConfigurationRequestSurround3X_0(0x01)
246 #define writeENCChannelConfigurationRequestSurround3LhRh_0 writeENCChannelConfigurationRequestSurround3X_0(0x04)
247 #define writeENCChannelConfigurationRequestSurround3LwRwLhRh_0 writeENCChannelConfigurationRequestSurround3X_0(0x05)
248 #define writeENCChannelConfigurationRequestSurround4X_0(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x000c,(n<<8|0x0000)
249 #define writeENCChannelConfigurationRequestSurround4LwRw_0 writeENCChannelConfigurationRequestSurround4X_0(0x01)
250 #define writeENCChannelConfigurationRequestSurround4LhRh_0 writeENCChannelConfigurationRequestSurround4X_0(0x04)
251 #define writeENCChannelConfigurationRequestSurround4LwRwLhRh_0 writeENCChannelConfigurationRequestSurround4X_0(0x05)
253 #define writeENCChannelConfigurationRequestNoneX_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0101,(n<<8|0x0000)
254 #define writeENCChannelConfigurationRequestNoneLwRw_1 writeENCChannelConfigurationRequestNoneX_1(0x01)
255 #define writeENCChannelConfigurationRequestNoneLhRh_1 writeENCChannelConfigurationRequestNoneX_1(0x04)
256 #define writeENCChannelConfigurationRequestNoneLwRwLhRh_1 writeENCChannelConfigurationRequestNoneX_1(0x05)
257 #define writeENCChannelConfigurationRequestMonoX_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0102,(n<<8|0x0000)
258 #define writeENCChannelConfigurationRequestMonoLwRw_1 writeENCChannelConfigurationRequestMonoX_1(0x01)
259 #define writeENCChannelConfigurationRequestMonoLhRh_1 writeENCChannelConfigurationRequestMonoX_1(0x04)
260 #define writeENCChannelConfigurationRequestMonoLwRwLhRh_1 writeENCChannelConfigurationRequestMonoX_1(0x05)
261 #define writeENCChannelConfigurationRequestPhantom0X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,(n<<8|0x0000)
262 #define writeENCChannelConfigurationRequestPhantom0LwRw_1 writeENCChannelConfigurationRequestPhantom0X_1(0x01)
263 #define writeENCChannelConfigurationRequestPhantom0LhRh_1 writeENCChannelConfigurationRequestPhantom0X_1(0x04)
264 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRh_1 writeENCChannelConfigurationRequestPhantom0X_1(0x05)
265 #define writeENCChannelConfigurationRequestPhantom0XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,(n<<8|0x0001)
266 #define writeENCChannelConfigurationRequestPhantom0LwRwStereo_1 writeENCChannelConfigurationRequestPhantom0XStereo_1(0x01)
267 #define writeENCChannelConfigurationRequestPhantom0LhRhStereo_1 writeENCChannelConfigurationRequestPhantom0XStereo_1(0x04)
268 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhStereo_1 writeENCChannelConfigurationRequestPhantom0XStereo_1(0x05)
269 #define writeENCChannelConfigurationRequestPhantom0XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,(n<<8|0x0002)
270 #define writeENCChannelConfigurationRequestPhantom0LwRwLtRt_1 writeENCChannelConfigurationRequestPhantom0XLtRt_1(0x01)
271 #define writeENCChannelConfigurationRequestPhantom0LhRhLtRt_1 writeENCChannelConfigurationRequestPhantom0XLtRt_1(0x04)
272 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhLtRt_1 writeENCChannelConfigurationRequestPhantom0XLtRt_1(0x05)
273 #define writeENCChannelConfigurationRequestPhantom0XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,(n<<8|0x0003)
274 #define writeENCChannelConfigurationRequestPhantom0LwRwMono_1 writeENCChannelConfigurationRequestPhantom0XMono_1(0x01)
275 #define writeENCChannelConfigurationRequestPhantom0LhRhMono_1 writeENCChannelConfigurationRequestPhantom0XMono_1(0x04)
276 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhMono_1 writeENCChannelConfigurationRequestPhantom0XMono_1(0x05)
277 #define wroteENCChannelConfigurationRequestPhantom0XDual_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0103,(n<<8|0x0004)
278 #define wroteENCChannelConfigurationRequestPhantom0LwRwDual_1 wroteENCChannelConfigurationRequestPhantom0XDual_1(0x01)
279 #define wroteENCChannelConfigurationRequestPhantom0LhRhDual_1 wroteENCChannelConfigurationRequestPhantom0XDual_1(0x04)
280 #define wroteENCChannelConfigurationRequestPhantom0LwRwLhRhDual_1 wroteENCChannelConfigurationRequestPhantom0XDual_1(0x05)
281 #define writeENCChannelConfigurationRequestPhantom1X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0104,(n<<8|0x0000)
282 #define writeENCChannelConfigurationRequestPhantom1LwRw_1 writeENCChannelConfigurationRequestPhantom1X_1(0x01)
283 #define writeENCChannelConfigurationRequestPhantom1LhRh_1 writeENCChannelConfigurationRequestPhantom1X_1(0x04)
284 #define writeENCChannelConfigurationRequestPhantom1LwRwLhRh_1 writeENCChannelConfigurationRequestPhantom1X_1(0x05)
285 #define writeENCChannelConfigurationRequestPhantom2X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,(n<<8|0x0000)
286 #define writeENCChannelConfigurationRequestPhantom2LwRw_1 writeENCChannelConfigurationRequestPhantom2X_1(0x01)
287 #define writeENCChannelConfigurationRequestPhantom2LhRh_1 writeENCChannelConfigurationRequestPhantom2X_1(0x04)
288 #define writeENCChannelConfigurationRequestPhantom2LwRwLhRh_1 writeENCChannelConfigurationRequestPhantom2X_1(0x05)
289 #define wroteENCChannelConfigurationRequestPhantom2XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,(n<<8|0x0001)
290 #define wroteENCChannelConfigurationRequestPhantom2LwRwStereo_1 wroteENCChannelConfigurationRequestPhantom2XStereo_1(0x01)
291 #define wroteENCChannelConfigurationRequestPhantom2LhRhStereo_1 wroteENCChannelConfigurationRequestPhantom2XStereo_1(0x04)
292 #define wroteENCChannelConfigurationRequestPhantom2LwRwLhRhStereo_1 wroteENCChannelConfigurationRequestPhantom2XStereo_1(0x05)
293 #define writeENCChannelConfigurationRequestPhantom2XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,(n<<8|0x0002)
294 #define writeENCChannelConfigurationRequestPhantom2LwRwLtRt_1 writeENCChannelConfigurationRequestPhantom2XLtRt_1(0x01)
295 #define writeENCChannelConfigurationRequestPhantom2LhRhLtRt_1 writeENCChannelConfigurationRequestPhantom2XLtRt_1(0x04)
296 #define writeENCChannelConfigurationRequestPhantom2LwRwLhRhLtRt_1 writeENCChannelConfigurationRequestPhantom2XLtRt_1(0x05)
297 #define wroteENCChannelConfigurationRequestPhantom2XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0105,(n<<8|0x0003)
298 #define wroteENCChannelConfigurationRequestPhantom2LwRwMono_1 wroteENCChannelConfigurationRequestPhantom2XMono_1(0x01)
299 #define wroteENCChannelConfigurationRequestPhantom2LhRhMono_1 wroteENCChannelConfigurationRequestPhantom2XMono_1(0x04)
300 #define wroteENCChannelConfigurationRequestPhantom2LwRwLhRhMono_1 wroteENCChannelConfigurationRequestPhantom2XMono_1(0x05)
301 #define writeENCChannelConfigurationRequestPhantom3X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0106,(n<<8|0x0000)
302 #define writeENCChannelConfigurationRequestPhantom3LwRw_1 writeENCChannelConfigurationRequestPhantom3X_1(0x01)
303 #define writeENCChannelConfigurationRequestPhantom3LhRh_1 writeENCChannelConfigurationRequestPhantom3X_1(0x04)
304 #define writeENCChannelConfigurationRequestPhantom3LwRwLhRh_1 writeENCChannelConfigurationRequestPhantom3X_1(0x05)
305 #define writeENCChannelConfigurationRequestPhantom4X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0107,(n<<8|0x0000)
306 #define writeENCChannelConfigurationRequestPhantom4LwRw_1 writeENCChannelConfigurationRequestPhantom4X_1(0x01)
307 #define writeENCChannelConfigurationRequestPhantom4LhRh_1 writeENCChannelConfigurationRequestPhantom4X_1(0x04)
308 #define writeENCChannelConfigurationRequestPhantom4LwRwLhRh_1 writeENCChannelConfigurationRequestPhantom4X_1(0x05)
309 #define writeENCChannelConfigurationRequestSurround0X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0108,(n<<8|0x0000)
310 #define writeENCChannelConfigurationRequestSurround0LwRw_1 writeENCChannelConfigurationRequestSurround0X_1(0x01)
311 #define writeENCChannelConfigurationRequestSurround0LhRh_1 writeENCChannelConfigurationRequestSurround0X_1(0x04)
312 #define writeENCChannelConfigurationRequestSurround0LwRwLhRh_1 writeENCChannelConfigurationRequestSurround0X_1(0x05)
313 #define writeENCChannelConfigurationRequestSurround1X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0109,(n<<8|0x0000)
314 #define writeENCChannelConfigurationRequestSurround1LwRw_1 writeENCChannelConfigurationRequestSurround1X_1(0x01)
315 #define writeENCChannelConfigurationRequestSurround1LhRh_1 writeENCChannelConfigurationRequestSurround1X_1(0x04)
316 #define writeENCChannelConfigurationRequestSurround1LwRwLhRh_1 writeENCChannelConfigurationRequestSurround1X_1(0x05)
317 #define writeENCChannelConfigurationRequestSurround2X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,(n<<8|0x0000)
318 #define writeENCChannelConfigurationRequestSurround2LwRw_1 writeENCChannelConfigurationRequestSurround2X_1(0x01) 
319 #define writeENCChannelConfigurationRequestSurround2LhRh_1 writeENCChannelConfigurationRequestSurround2X_1(0x04) 
320 #define writeENCChannelConfigurationRequestSurround2LwRwLhRh_1 writeENCChannelConfigurationRequestSurround2X_1(0x05)
321 #define wroteENCChannelConfigurationRequestSurround2XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,(n<<8|0x0001)
322 #define wroteENCChannelConfigurationRequestSurround2LwRwStereo_1 wroteENCChannelConfigurationRequestSurround2XStereo_1(0x01)
323 #define wroteENCChannelConfigurationRequestSurround2LhRhStereo_1 wroteENCChannelConfigurationRequestSurround2XStereo_1(0x04)
324 #define wroteENCChannelConfigurationRequestSurround2LwRwLhRhStereo_1 wroteENCChannelConfigurationRequestSurround2XStereo_1(0x05)
325 #define writeENCChannelConfigurationRequestSurround2XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,(n<<8|0x0002)
326 #define writeENCChannelConfigurationRequestSurround2LwRwLtRt_1 writeENCChannelConfigurationRequestSurround2XLtRt_1(0x01)
327 #define writeENCChannelConfigurationRequestSurround2LhRhLtRt_1 writeENCChannelConfigurationRequestSurround2XLtRt_1(0x04)
328 #define writeENCChannelConfigurationRequestSurround2LwRwLhRhLtRt_1 writeENCChannelConfigurationRequestSurround2XLtRt_1(0x05)
329 #define wroteENCChannelConfigurationRequestSurround2XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x010a,(n<<8|0x0003)
330 #define wroteENCChannelConfigurationRequestSurround2LwRwMono_1 wroteENCChannelConfigurationRequestSurround2XMono_1(0x01)
331 #define wroteENCChannelConfigurationRequestSurround2LhRhMono_1 wroteENCChannelConfigurationRequestSurround2XMono_1(0x04)
332 #define wroteENCChannelConfigurationRequestSurround2LwRwLhRhMono_1 wroteENCChannelConfigurationRequestSurround2XMono_1(0x05)
333 #define writeENCChannelConfigurationRequestSurround3X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x010b,(n<<8|0x0000)
334 #define writeENCChannelConfigurationRequestSurround3LwRw_1 writeENCChannelConfigurationRequestSurround3X_1(0x01)
335 #define writeENCChannelConfigurationRequestSurround3LhRh_1 writeENCChannelConfigurationRequestSurround3X_1(0x04)
336 #define writeENCChannelConfigurationRequestSurround3LwRwLhRh_1 writeENCChannelConfigurationRequestSurround3X_1(0x05)
337 #define writeENCChannelConfigurationRequestSurround4X_1(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x010c,(n<<8|0x0000)
338 #define writeENCChannelConfigurationRequestSurround4LwRw_1 writeENCChannelConfigurationRequestSurround4X_1(0x01)
339 #define writeENCChannelConfigurationRequestSurround4LhRh_1 writeENCChannelConfigurationRequestSurround4X_1(0x04)
340 #define writeENCChannelConfigurationRequestSurround4LwRwLhRh_1 writeENCChannelConfigurationRequestSurround4X_1(0x05)
342 #define writeENCChannelConfigurationRequestNoneX_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0201,(n<<8|0x0000)
343 #define writeENCChannelConfigurationRequestNoneLwRw_2 writeENCChannelConfigurationRequestNoneX_2(0x01)
344 #define writeENCChannelConfigurationRequestNoneLhRh_2 writeENCChannelConfigurationRequestNoneX_2(0x04)
345 #define writeENCChannelConfigurationRequestNoneLwRwLhRh_2 writeENCChannelConfigurationRequestNoneX_2(0x05)
346 #define writeENCChannelConfigurationRequestMonoX_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0202,(n<<8|0x0000)
347 #define writeENCChannelConfigurationRequestMonoLwRw_2 writeENCChannelConfigurationRequestMonoX_2(0x01)
348 #define writeENCChannelConfigurationRequestMonoLhRh_2 writeENCChannelConfigurationRequestMonoX_2(0x04)
349 #define writeENCChannelConfigurationRequestMonoLwRwLhRh_2 writeENCChannelConfigurationRequestMonoX_2(0x05)
350 #define writeENCChannelConfigurationRequestPhantom0X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,(n<<8|0x0000)
351 #define writeENCChannelConfigurationRequestPhantom0LwRw_2 writeENCChannelConfigurationRequestPhantom0X_2(0x01)
352 #define writeENCChannelConfigurationRequestPhantom0LhRh_2 writeENCChannelConfigurationRequestPhantom0X_2(0x04)
353 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRh_2 writeENCChannelConfigurationRequestPhantom0X_2(0x05)
354 #define writeENCChannelConfigurationRequestPhantom0XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,(n<<8|0x0001)
355 #define writeENCChannelConfigurationRequestPhantom0LwRwStereo_2 writeENCChannelConfigurationRequestPhantom0XStereo_2(0x01)
356 #define writeENCChannelConfigurationRequestPhantom0LhRhStereo_2 writeENCChannelConfigurationRequestPhantom0XStereo_2(0x04)
357 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhStereo_2 writeENCChannelConfigurationRequestPhantom0XStereo_2(0x05)
358 #define writeENCChannelConfigurationRequestPhantom0XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,(n<<8|0x0002)
359 #define writeENCChannelConfigurationRequestPhantom0LwRwLtRt_2 writeENCChannelConfigurationRequestPhantom0XLtRt_2(0x01)
360 #define writeENCChannelConfigurationRequestPhantom0LhRhLtRt_2 writeENCChannelConfigurationRequestPhantom0XLtRt_2(0x04)
361 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhLtRt_2 writeENCChannelConfigurationRequestPhantom0XLtRt_2(0x05)
362 #define writeENCChannelConfigurationRequestPhantom0XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,(n<<8|0x0003)
363 #define writeENCChannelConfigurationRequestPhantom0LwRwMono_2 writeENCChannelConfigurationRequestPhantom0XMono_2(0x01)
364 #define writeENCChannelConfigurationRequestPhantom0LhRhMono_2 writeENCChannelConfigurationRequestPhantom0XMono_2(0x04)
365 #define writeENCChannelConfigurationRequestPhantom0LwRwLhRhMono_2 writeENCChannelConfigurationRequestPhantom0XMono_2(0x05)
366 #define wroteENCChannelConfigurationRequestPhantom0XDual_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0203,(n<<8|0x0004)
367 #define wroteENCChannelConfigurationRequestPhantom0LwRwDual_2 wroteENCChannelConfigurationRequestPhantom0XDual_2(0x01)
368 #define wroteENCChannelConfigurationRequestPhantom0LhRhDual_2 wroteENCChannelConfigurationRequestPhantom0XDual_2(0x04)
369 #define wroteENCChannelConfigurationRequestPhantom0LwRwLhRhDual_2 wroteENCChannelConfigurationRequestPhantom0XDual_2(0x05)
370 #define writeENCChannelConfigurationRequestPhantom1X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0204,(n<<8|0x0000)
371 #define writeENCChannelConfigurationRequestPhantom1LwRw_2 writeENCChannelConfigurationRequestPhantom1X_2(0x01)
372 #define writeENCChannelConfigurationRequestPhantom1LhRh_2 writeENCChannelConfigurationRequestPhantom1X_2(0x04)
373 #define writeENCChannelConfigurationRequestPhantom1LwRwLhRh_2 writeENCChannelConfigurationRequestPhantom1X_2(0x05)
374 #define writeENCChannelConfigurationRequestPhantom2X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,(n<<8|0x0000)
375 #define writeENCChannelConfigurationRequestPhantom2LwRw_2 writeENCChannelConfigurationRequestPhantom2X_2(0x01)
376 #define writeENCChannelConfigurationRequestPhantom2LhRh_2 writeENCChannelConfigurationRequestPhantom2X_2(0x04)
377 #define writeENCChannelConfigurationRequestPhantom2LwRwLhRh_2 writeENCChannelConfigurationRequestPhantom2X_2(0x05)
378 #define wroteENCChannelConfigurationRequestPhantom2XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,(n<<8|0x0001)
379 #define wroteENCChannelConfigurationRequestPhantom2LwRwStereo_2 wroteENCChannelConfigurationRequestPhantom2XStereo_2(0x01)
380 #define wroteENCChannelConfigurationRequestPhantom2LhRhStereo_2 wroteENCChannelConfigurationRequestPhantom2XStereo_2(0x04)
381 #define wroteENCChannelConfigurationRequestPhantom2LwRwLhRhStereo_2 wroteENCChannelConfigurationRequestPhantom2XStereo_2(0x05)
382 #define writeENCChannelConfigurationRequestPhantom2XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,(n<<8|0x0002)
383 #define writeENCChannelConfigurationRequestPhantom2LwRwLtRt_2 writeENCChannelConfigurationRequestPhantom2XLtRt_2(0x01)
384 #define writeENCChannelConfigurationRequestPhantom2LhRhLtRt_2 writeENCChannelConfigurationRequestPhantom2XLtRt_2(0x04)
385 #define writeENCChannelConfigurationRequestPhantom2LwRwLhRhLtRt_2 writeENCChannelConfigurationRequestPhantom2XLtRt_2(0x05)
386 #define wroteENCChannelConfigurationRequestPhantom2XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0205,(n<<8|0x0003)
387 #define wroteENCChannelConfigurationRequestPhantom2LwRwMono_2 wroteENCChannelConfigurationRequestPhantom2XMono_2(0x01)
388 #define wroteENCChannelConfigurationRequestPhantom2LhRhMono_2 wroteENCChannelConfigurationRequestPhantom2XMono_2(0x04)
389 #define wroteENCChannelConfigurationRequestPhantom2LwRwLhRhMono_2 wroteENCChannelConfigurationRequestPhantom2XMono_2(0x05)
390 #define writeENCChannelConfigurationRequestPhantom3X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0206,(n<<8|0x0000)
391 #define writeENCChannelConfigurationRequestPhantom3LwRw_2 writeENCChannelConfigurationRequestPhantom3X_2(0x01)
392 #define writeENCChannelConfigurationRequestPhantom3LhRh_2 writeENCChannelConfigurationRequestPhantom3X_2(0x04)
393 #define writeENCChannelConfigurationRequestPhantom3LwRwLhRh_2 writeENCChannelConfigurationRequestPhantom3X_2(0x05)
394 #define writeENCChannelConfigurationRequestPhantom4X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0207,(n<<8|0x0000)
395 #define writeENCChannelConfigurationRequestPhantom4LwRw_2 writeENCChannelConfigurationRequestPhantom4X_2(0x01)
396 #define writeENCChannelConfigurationRequestPhantom4LhRh_2 writeENCChannelConfigurationRequestPhantom4X_2(0x04)
397 #define writeENCChannelConfigurationRequestPhantom4LwRwLhRh_2 writeENCChannelConfigurationRequestPhantom4X_2(0x05)
398 #define writeENCChannelConfigurationRequestSurround0X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0208,(n<<8|0x0000)
399 #define writeENCChannelConfigurationRequestSurround0LwRw_2 writeENCChannelConfigurationRequestSurround0X_2(0x01)
400 #define writeENCChannelConfigurationRequestSurround0LhRh_2 writeENCChannelConfigurationRequestSurround0X_2(0x04)
401 #define writeENCChannelConfigurationRequestSurround0LwRwLhRh_2 writeENCChannelConfigurationRequestSurround0X_2(0x05)
402 #define writeENCChannelConfigurationRequestSurround1X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x0209,(n<<8|0x0000)
403 #define writeENCChannelConfigurationRequestSurround1LwRw_2 writeENCChannelConfigurationRequestSurround1X_2(0x01)
404 #define writeENCChannelConfigurationRequestSurround1LhRh_2 writeENCChannelConfigurationRequestSurround1X_2(0x04)
405 #define writeENCChannelConfigurationRequestSurround1LwRwLhRh_2 writeENCChannelConfigurationRequestSurround1X_2(0x05)
406 #define writeENCChannelConfigurationRequestSurround2X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,(n<<8|0x0000)
407 #define writeENCChannelConfigurationRequestSurround2LwRw_2 writeENCChannelConfigurationRequestSurround2X_2(0x01) 
408 #define writeENCChannelConfigurationRequestSurround2LhRh_2 writeENCChannelConfigurationRequestSurround2X_2(0x04) 
409 #define writeENCChannelConfigurationRequestSurround2LwRwLhRh_2 writeENCChannelConfigurationRequestSurround2X_2(0x05)
410 #define wroteENCChannelConfigurationRequestSurround2XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,(n<<8|0x0001)
411 #define wroteENCChannelConfigurationRequestSurround2LwRwStereo_2 wroteENCChannelConfigurationRequestSurround2XStereo_2(0x01)
412 #define wroteENCChannelConfigurationRequestSurround2LhRhStereo_2 wroteENCChannelConfigurationRequestSurround2XStereo_2(0x04)
413 #define wroteENCChannelConfigurationRequestSurround2LwRwLhRhStereo_2 wroteENCChannelConfigurationRequestSurround2XStereo_2(0x05)
414 #define writeENCChannelConfigurationRequestSurround2XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,(n<<8|0x0002)
415 #define writeENCChannelConfigurationRequestSurround2LwRwLtRt_2 writeENCChannelConfigurationRequestSurround2XLtRt_2(0x01)
416 #define writeENCChannelConfigurationRequestSurround2LhRhLtRt_2 writeENCChannelConfigurationRequestSurround2XLtRt_2(0x04)
417 #define writeENCChannelConfigurationRequestSurround2LwRwLhRhLtRt_2 writeENCChannelConfigurationRequestSurround2XLtRt_2(0x05)
418 #define wroteENCChannelConfigurationRequestSurround2XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x020a,(n<<8|0x0003)
419 #define wroteENCChannelConfigurationRequestSurround2LwRwMono_2 wroteENCChannelConfigurationRequestSurround2XMono_2(0x01)
420 #define wroteENCChannelConfigurationRequestSurround2LhRhMono_2 wroteENCChannelConfigurationRequestSurround2XMono_2(0x04)
421 #define wroteENCChannelConfigurationRequestSurround2LwRwLhRhMono_2 wroteENCChannelConfigurationRequestSurround2XMono_2(0x05)
422 #define writeENCChannelConfigurationRequestSurround3X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x020b,(n<<8|0x0000)
423 #define writeENCChannelConfigurationRequestSurround3LwRw_2 writeENCChannelConfigurationRequestSurround3X_2(0x01)
424 #define writeENCChannelConfigurationRequestSurround3LhRh_2 writeENCChannelConfigurationRequestSurround3X_2(0x04)
425 #define writeENCChannelConfigurationRequestSurround3LwRwLhRh_2 writeENCChannelConfigurationRequestSurround3X_2(0x05)
426 #define writeENCChannelConfigurationRequestSurround4X_2(n) 0xcc00+STD_BETA_ENCODE,0x0020,0x020c,(n<<8|0x0000)
427 #define writeENCChannelConfigurationRequestSurround4LwRw_2 writeENCChannelConfigurationRequestSurround4X_2(0x01)
428 #define writeENCChannelConfigurationRequestSurround4LhRh_2 writeENCChannelConfigurationRequestSurround4X_2(0x04)
429 #define writeENCChannelConfigurationRequestSurround4LwRwLhRh_2 writeENCChannelConfigurationRequestSurround4X_2(0x05)
431 #define  readENCChannelConfigurationRequestExtChan 0xc200+STD_BETA_ENCODE,0x2300
432 #define  readENCChannelConfigurationRequestExtMask readENCChannelConfigurationRequestExtChan
433 #define writeENCChannelConfigurationRequestExtChanNone 0xca00+STD_BETA_ENCODE,0x2300
434 #define writeENCChannelConfigurationRequestExtChanLwRw 0xca00+STD_BETA_ENCODE,0x2301
435 #define writeENCChannelConfigurationRequestExtChanLhRh 0xca00+STD_BETA_ENCODE,0x2304
436 #define writeENCChannelConfigurationRequestExtChanLwRwLhRh 0xca00+STD_BETA_ENCODE,0x2305
438 //ATMOS
439 #define writeENCChannelConfigurationRequestSurround2ATMOS_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000a,0x0000,(n<<8),0x0000
440 #define writeENCChannelConfigurationRequestSurround2ATMOS_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010a,0x0000,(n<<8),0x0000
441 #define writeENCChannelConfigurationRequestSurround2ATMOS_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020a,0x0000,(n<<8),0x0000
442 #define wroteENCChannelConfigurationRequestSurround2ATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000a,0x0003,(n<<8),0x0000
443 #define wroteENCChannelConfigurationRequestSurround2ATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010a,0x0003,(n<<8),0x0000
444 #define wroteENCChannelConfigurationRequestSurround2ATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020a,0x0003,(n<<8),0x0000
446 #define writeENCChannelConfigurationRequestSurround2LwRwATMOS_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000a,0x0100,(n<<8),0x0000
447 #define writeENCChannelConfigurationRequestSurround2LwRwATMOS_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010a,0x0100,(n<<8),0x0000
448 #define writeENCChannelConfigurationRequestSurround2LwRwATMOS_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020a,0x0100,(n<<8),0x0000
449 #define wroteENCChannelConfigurationRequestSurround2LwRwATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000a,0x0103,(n<<8),0x0000
450 #define wroteENCChannelConfigurationRequestSurround2LwRwATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010a,0x0103,(n<<8),0x0000
451 #define wroteENCChannelConfigurationRequestSurround2LwRwATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020a,0x0103,(n<<8),0x0000
453 #define writeENCChannelConfigurationRequestSurround4ATMOS_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000c,0x0000,(n<<8),0x0000
454 #define writeENCChannelConfigurationRequestSurround4ATMOS_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010c,0x0000,(n<<8),0x0000
455 #define writeENCChannelConfigurationRequestSurround4ATMOS_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020c,0x0000,(n<<8),0x0000
456 #define wroteENCChannelConfigurationRequestSurround4ATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000c,0x0003,(n<<8),0x0000
457 #define wroteENCChannelConfigurationRequestSurround4ATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010c,0x0003,(n<<8),0x0000
458 #define wroteENCChannelConfigurationRequestSurround4ATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020c,0x0003,(n<<8),0x0000
460 #define writeENCChannelConfigurationRequestSurround4LwRwATMOS_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000a,0x0100,(n<<8),0x0000
461 #define writeENCChannelConfigurationRequestSurround4LwRwATMOS_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010a,0x0100,(n<<8),0x0000
462 #define writeENCChannelConfigurationRequestSurround4LwRwATMOS_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020a,0x0100,(n<<8),0x0000
463 #define wroteENCChannelConfigurationRequestSurround4LwRwATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x000c,0x0103,(n<<8),0x0000
464 #define wroteENCChannelConfigurationRequestSurround4LwRwATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x010c,0x0103,(n<<8),0x0000
465 #define wroteENCChannelConfigurationRequestSurround4LwRwATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x020c,0x0103,(n<<8),0x0000
467 #define writeENCChannelConfigurationRequestSurround2LtfRtfLtrRtr_0 writeENCChannelConfigurationRequestSurround2ATMOS_0(0xA)
468 #define writeENCChannelConfigurationRequestSurround2LtfRtfLtrRtr_1 writeENCChannelConfigurationRequestSurround2ATMOS_1(0xA)
469 #define writeENCChannelConfigurationRequestSurround2LtfRtfLtrRtr_2 writeENCChannelConfigurationRequestSurround2ATMOS_2(0xA)
470 #define wroteENCChannelConfigurationRequestSurround2LtfRtfLtrRtr_0 wroteENCChannelConfigurationRequestSurround2ATMOSMono_0(0xA)
471 #define wroteENCChannelConfigurationRequestSurround2LtfRtfLtrRtr_1 wroteENCChannelConfigurationRequestSurround2ATMOSMono_1(0xA)
472 #define wroteENCChannelConfigurationRequestSurround2LtfRtfLtrRtr_2 wroteENCChannelConfigurationRequestSurround2ATMOSMono_2(0xA)
474 #define writeENCChannelConfigurationRequestSurround4LtmRtm_0 writeENCChannelConfigurationRequestSurround4ATMOS_0(0x4)
475 #define writeENCChannelConfigurationRequestSurround4LtmRtm_1 writeENCChannelConfigurationRequestSurround4ATMOS_1(0x4)
476 #define writeENCChannelConfigurationRequestSurround4LtmRtm_2 writeENCChannelConfigurationRequestSurround4ATMOS_2(0x4)
477 #define wroteENCChannelConfigurationRequestSurround4LtmRtm_0 wroteENCChannelConfigurationRequestSurround4ATMOSMono_0(0x4)
478 #define wroteENCChannelConfigurationRequestSurround4LtmRtm_1 wroteENCChannelConfigurationRequestSurround4ATMOSMono_1(0x4)
479 #define wroteENCChannelConfigurationRequestSurround4LtmRtm_2 wroteENCChannelConfigurationRequestSurround4ATMOSMono_2(0x4)
481 #define writeENCChannelConfigurationRequestSurround2LwRwLtfRtfLtrRtr_0 writeENCChannelConfigurationRequestSurround2LwRwATMOS_0(0xA)
482 #define writeENCChannelConfigurationRequestSurround2LwRwLtfRtfLtrRtr_1 writeENCChannelConfigurationRequestSurround2LwRwATMOS_1(0xA)
483 #define writeENCChannelConfigurationRequestSurround2LwRwLtfRtfLtrRtr_2 writeENCChannelConfigurationRequestSurround2LwRwATMOS_2(0xA)
484 #define wroteENCChannelConfigurationRequestSurround2LwRwLtfRtfLtrRtr_0 wroteENCChannelConfigurationRequestSurround2LwRwATMOSMono_0(0xA)
485 #define wroteENCChannelConfigurationRequestSurround2LwRwLtfRtfLtrRtr_1 wroteENCChannelConfigurationRequestSurround2LwRwATMOSMono_1(0xA)
486 #define wroteENCChannelConfigurationRequestSurround2LwRwLtfRtfLtrRtr_2 wroteENCChannelConfigurationRequestSurround2LwRwATMOSMono_2(0xA)
488 #define writeENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_0 writeENCChannelConfigurationRequestSurround4ATMOS_0(0xA)
489 #define writeENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_1 writeENCChannelConfigurationRequestSurround4ATMOS_1(0xA)
490 #define writeENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_2 writeENCChannelConfigurationRequestSurround4ATMOS_2(0xA)
491 #define wroteENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_0 wroteENCChannelConfigurationRequestSurround4ATMOSMono_0(0xA)
492 #define wroteENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_1 wroteENCChannelConfigurationRequestSurround4ATMOSMono_1(0xA)
493 #define wroteENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_2 wroteENCChannelConfigurationRequestSurround4ATMOSMono_2(0xA)
495 #define writeENCChannelConfigurationRequestSurround4LwRwLtfRtfLtrRtr_0 writeENCChannelConfigurationRequestSurround4LwRwATMOS_0(0xA)
496 #define writeENCChannelConfigurationRequestSurround4LwRwLtfRtfLtrRtr_1 writeENCChannelConfigurationRequestSurround4LwRwATMOS_1(0xA)
497 #define writeENCChannelConfigurationRequestSurround4LwRwLtfRtfLtrRtr_2 writeENCChannelConfigurationRequestSurround4LwRwATMOS_2(0xA)
498 #define wroteENCChannelConfigurationRequestSurround4LwRwLtfRtfLtrRtr_0 wroteENCChannelConfigurationRequestSurround4LwRwATMOSMono_0(0xA)
499 #define wroteENCChannelConfigurationRequestSurround4LwRwLtfRtfLtrRtr_1 wroteENCChannelConfigurationRequestSurround4LwRwATMOSMono_1(0xA)
500 #define wroteENCChannelConfigurationRequestSurround4LwRwLtfRtfLtrRtr_2 wroteENCChannelConfigurationRequestSurround4LwRwATMOSMono_2(0xA)
502 #define writeENCChannelConfigurationRequestPhantom4LwRwATMOS_0(n) 0xce00+STD_BETA_ENCODE,0x2008,0x0007,0x0100,(n<<8),0x0000
503 #define writeENCChannelConfigurationRequestPhantom4LwRwATMOS_1(n) 0xce00+STD_BETA_ENCODE,0x2008,0x0107,0x0100,(n<<8),0x0000
504 #define writeENCChannelConfigurationRequestPhantom4LwRwATMOS_2(n) 0xce00+STD_BETA_ENCODE,0x2008,0x0207,0x0100,(n<<8),0x0000
505 #define writeENCChannelConfigurationRequestPhantom4LwRwLctRct_0 writeENCChannelConfigurationRequestPhantom4LwRwATMOS_0(0x20)
506 #define writeENCChannelConfigurationRequestPhantom4LwRwLctRct_1 writeENCChannelConfigurationRequestPhantom4LwRwATMOS_1(0x20)
507 #define writeENCChannelConfigurationRequestPhantom4LwRwLctRct_2 writeENCChannelConfigurationRequestPhantom4LwRwATMOS_2(0x20)
508 #define writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRct_0 writeENCChannelConfigurationRequestPhantom4LwRwATMOS_0(0x26)
509 #define writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRct_1 writeENCChannelConfigurationRequestPhantom4LwRwATMOS_1(0x26)
510 #define writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRct_2 writeENCChannelConfigurationRequestPhantom4LwRwATMOS_2(0x26)
512 // Reference: pafcc.h: PAFCC_SIX_CHANNEL_CONFIG_FULL "5.1" 6 channel config
513 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
514 // PAF_ChannelConfiguration 0x010a,0x0000,0x0000,0x0000
515 #define writeENCChannelConfigurationRequestSurround2_5_1 0xce00+STD_BETA_ENCODE,0x2008,0x010a,0x0000,0x0000,0x0000
517 // Reference: pafcc.h: PAFCC_EIGHT_CHANNEL_CONFIG_FULL "7.1" 8 channel config
518 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
519 // PAF_ChannelConfiguration 0x010c,0x0000,0x0000,0x0000
520 #define writeENCChannelConfigurationRequestSurround4_7_1 0xce00+STD_BETA_ENCODE,0x2008,0x010c,0x0000,0x0000,0x0000
522 // Reference: pafcc.h: PAFCC_TWELVE_CHANNEL_ATMOS_CONFIG_FULL "11.1" 12 channel mask (ATMOS version)
523 // PAF_LEFT,PAF_RGHT,PAF_CNTR,PAF_LTRR,PAF_RTRR,PAF_LSUR,PAF_RSUR,PAF_LBAK,PAF_RBAK,PAF_SUBW,PAF_LTFT,PAF_RTFT,
524 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
525 // PAF_ChannelConfiguration 0x010c,0x0000,0x0a00,0x0000
526 #define writeENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_11_1 writeENCChannelConfigurationRequestSurround4LtfRtfLtrRtr_1
528 // Reference: pafcc.h: PAFCC_TWELVE_CHANNEL_CONFIG_FULL "11.1" 12 channel mask (non ATMOS version)
529 // PAF_LEFT,PAF_RGHT,PAF_CNTR,PAF_LWID,PAF_RWID,PAF_LSUR,PAF_RSUR,PAF_LBAK,PAF_RBAK,PAF_SUBW,PAF_LHED,PAF_RHED
530 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
531 // PAF_ChannelConfiguration 0x010c,0x0500,0x0000,0x0000
532 #define writeENCChannelConfigurationRequestSurround4LhRhLwRw_11_1 0xce00+STD_BETA_ENCODE,0x2008,0x010c,0x0500,0x0000,0x0000
534 // Reference: pafcc.h: PAFCC_SIXTEEN_CHANNEL_CONFIG_FULL "14.2" 14 channel mask
535 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
536 // PAF_ChannelConfiguration 0x0207,0x0100,0x2600,0x0000
537 #define writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRct_14_2 writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRct_2
539 #define writeENCChannelConfigurationRequest16Channels writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRct_14_2
541 #define writeENCChannelConfigurationRequest24Channels 0xce00+STD_BETA_ENCODE,0x2008,0x0207,0xc700,0x2e46,0x0000
542 // Reference: pafcc.h: PAFCC_THIRTYTWO_CHANNEL_CONFIG_FULL 32 channel mask
543 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
544 // PAF_ChannelConfiguration 0x0207,0x0100,0xe67f,0x0000
545 #define writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRctLhbkRhbkChbk_30_2 0xce00+STD_BETA_ENCODE,0x2008,0x0207,0x0100,0xe67f,0x0000
546 // Obsolete: #define writeENCChannelConfigurationRequest32Channels 0xce00+STD_BETA_ENCODE,0x2008,0x020c,0xff00,0x3fff,0x0000
547 #define writeENCChannelConfigurationRequest32Channels writeENCChannelConfigurationRequestPhantom4LwRwLtfRtfLtmRtmLctRctLhbkRhbkChbk_30_2
549 #define readENCChannelConfigurationRequestATMOSChan         0xc200+STD_BETA_ENCODE,0x2500
550 #define readENCChannelConfigurationRequestATMOSMask         readENCChannelConfigurationRequestATMOSChan
551 #define writeENCChannelConfigurationRequestATMOSChanNone     0xca00+STD_BETA_ENCODE,0x2500
552 #define writeENCChannelConfigurationRequestATMOSChanLfhRfhLrhRrh     0xca00+STD_BETA_ENCODE,(0x2511)//PAF_CC_EXTMASK_LfhRfh|PAF_CC_EXTMASK_LrhRrh
553 #define writeENCChannelConfigurationRequestATMOSChanLtfRtfLtrRtr     0xca00+STD_BETA_ENCODE,(0x250a)//PAF_CC_EXTMASK_LtfRtf|PAF_CC_EXTMASK_LtrRtr
554 #define writeENCChannelConfigurationRequestATMOSChanLtmRtm 0xca00+STD_BETA_ENCODE,(0x3254)//PAF_CC_EXTMASK_LtmRtm
556 //-------------------------------------------------------------------------------------------------------------
558 #define writeENCChannelConfigurationRequestHL(HH,LL) 0xcc00+STD_BETA_ENCODE,0x0020,LL,HH
559 #define wroteENCChannelConfigurationRequest 0xcc00+STD_BETA_ENCODE,0x0020
561 #define  readENCChannelConfigurationStream 0xc400+STD_BETA_ENCODE,0x0028
563 #define wroteENCChannelConfigurationStreamUnknown 0xcc00+STD_BETA_ENCODE,0x0028,0x0000,0x0000
565 #define wroteENCChannelConfigurationStreamNone 0xcc00+STD_BETA_ENCODE,0x0028,0x0001,0x0000
566 #define wroteENCChannelConfigurationStreamMono 0xcc00+STD_BETA_ENCODE,0x0028,0x0002,0x0000
567 #define wroteENCChannelConfigurationStreamStereo 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,0x0000
568 #define wroteENCChannelConfigurationStreamStereoLtRt 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,0x0002
570 #define wroteENCChannelConfigurationStreamNone_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0001,0x0000
571 #define wroteENCChannelConfigurationStreamMono_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0002,0x0000
572 #define wroteENCChannelConfigurationStreamPhantom0_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,0x0000
573 #define wroteENCChannelConfigurationStreamPhantom0Stereo_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,0x0001
574 #define wroteENCChannelConfigurationStreamPhantom0LtRt_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,0x0002
575 #define wroteENCChannelConfigurationStreamPhantom0Mono_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,0x0003
576 #define wroteENCChannelConfigurationStreamPhantom0Dual_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,0x0004
577 #define wroteENCChannelConfigurationStreamPhantom1_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0004,0x0000
578 #define wroteENCChannelConfigurationStreamPhantom2_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,0x0000
579 #define wroteENCChannelConfigurationStreamPhantom2Stereo_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,0x0001
580 #define wroteENCChannelConfigurationStreamPhantom2LtRt_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,0x0002
581 #define wroteENCChannelConfigurationStreamPhantom2Mono_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,0x0003
582 #define wroteENCChannelConfigurationStreamPhantom3_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0006,0x0000
583 #define wroteENCChannelConfigurationStreamPhantom4_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0007,0x0000
584 #define wroteENCChannelConfigurationStreamSurround0_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0008,0x0000
585 #define wroteENCChannelConfigurationStreamSurround1_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0009,0x0000
586 #define wroteENCChannelConfigurationStreamSurround2_0 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,0x0000
587 #define wroteENCChannelConfigurationStreamSurround2Stereo_0 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,0x0001
588 #define wroteENCChannelConfigurationStreamSurround2LtRt_0 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,0x0002
589 #define wroteENCChannelConfigurationStreamSurround2Mono_0 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,0x0003
590 #define wroteENCChannelConfigurationStreamSurround3_0 0xcc00+STD_BETA_ENCODE,0x0028,0x000b,0x0000
591 #define wroteENCChannelConfigurationStreamSurround4_0 0xcc00+STD_BETA_ENCODE,0x0028,0x0028,0x0000
593 #define wroteENCChannelConfigurationStreamNone_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0101,0x0000
594 #define wroteENCChannelConfigurationStreamMono_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0102,0x0000
595 #define wroteENCChannelConfigurationStreamPhantom0_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,0x0000
596 #define wroteENCChannelConfigurationStreamPhantom0Stereo_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,0x0001
597 #define wroteENCChannelConfigurationStreamPhantom0LtRt_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,0x0002
598 #define wroteENCChannelConfigurationStreamPhantom0Mono_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,0x0003
599 #define wroteENCChannelConfigurationStreamPhantom0Dual_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,0x0004
600 #define wroteENCChannelConfigurationStreamPhantom1_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0104,0x0000
601 #define wroteENCChannelConfigurationStreamPhantom2_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,0x0000
602 #define wroteENCChannelConfigurationStreamPhantom2Stereo_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,0x0001
603 #define wroteENCChannelConfigurationStreamPhantom2LtRt_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,0x0002
604 #define wroteENCChannelConfigurationStreamPhantom2Mono_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,0x0003
605 #define wroteENCChannelConfigurationStreamPhantom3_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0106,0x0000
606 #define wroteENCChannelConfigurationStreamPhantom4_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0107,0x0000
607 #define wroteENCChannelConfigurationStreamSurround0_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0108,0x0000
608 #define wroteENCChannelConfigurationStreamSurround1_1 0xcc00+STD_BETA_ENCODE,0x0028,0x0109,0x0000
609 #define wroteENCChannelConfigurationStreamSurround2_1 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,0x0000
610 #define wroteENCChannelConfigurationStreamSurround2Stereo_1 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,0x0001
611 #define wroteENCChannelConfigurationStreamSurround2LtRt_1 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,0x0002
612 #define wroteENCChannelConfigurationStreamSurround2Mono_1 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,0x0003
613 #define wroteENCChannelConfigurationStreamSurround3_1 0xcc00+STD_BETA_ENCODE,0x0028,0x010b,0x0000
614 #define wroteENCChannelConfigurationStreamSurround4_1 0xcc00+STD_BETA_ENCODE,0x0028,0x010c,0x0000
616 #define wroteENCChannelConfigurationStreamNone_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0201,0x0000
617 #define wroteENCChannelConfigurationStreamMono_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0202,0x0000
618 #define wroteENCChannelConfigurationStreamPhantom0_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,0x0000
619 #define wroteENCChannelConfigurationStreamPhantom0Stereo_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,0x0001
620 #define wroteENCChannelConfigurationStreamPhantom0LtRt_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,0x0002
621 #define wroteENCChannelConfigurationStreamPhantom0Mono_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,0x0003
622 #define wroteENCChannelConfigurationStreamPhantom0Dual_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,0x0004
623 #define wroteENCChannelConfigurationStreamPhantom1_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0204,0x0000
624 #define wroteENCChannelConfigurationStreamPhantom2_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,0x0000
625 #define wroteENCChannelConfigurationStreamPhantom2Stereo_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,0x0001
626 #define wroteENCChannelConfigurationStreamPhantom2LtRt_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,0x0002
627 #define wroteENCChannelConfigurationStreamPhantom2Mono_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,0x0003
628 #define wroteENCChannelConfigurationStreamPhantom3_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0206,0x0000
629 #define wroteENCChannelConfigurationStreamPhantom4_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0207,0x0000
630 #define wroteENCChannelConfigurationStreamSurround0_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0208,0x0000
631 #define wroteENCChannelConfigurationStreamSurround1_2 0xcc00+STD_BETA_ENCODE,0x0028,0x0209,0x0000
632 #define wroteENCChannelConfigurationStreamSurround2_2 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,0x0000
633 #define wroteENCChannelConfigurationStreamSurround2Stereo_2 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,0x0001
634 #define wroteENCChannelConfigurationStreamSurround2LtRt_2 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,0x0002
635 #define wroteENCChannelConfigurationStreamSurround2Mono_2 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,0x0003
636 #define wroteENCChannelConfigurationStreamSurround3_2 0xcc00+STD_BETA_ENCODE,0x0028,0x020b,0x0000
637 #define wroteENCChannelConfigurationStreamSurround4_2 0xcc00+STD_BETA_ENCODE,0x0028,0x020c,0x0000
639 #define wroteENCChannelConfigurationStreamNoneX_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0001,(n<<8|0x0000)
640 #define wroteENCChannelConfigurationStreamNoneLwRw_0 wroteENCChannelConfigurationStreamNoneX_0(0x01)
641 #define wroteENCChannelConfigurationStreamNoneLhRh_0 wroteENCChannelConfigurationStreamNoneX_0(0x04)
642 #define wroteENCChannelConfigurationStreamNoneLwRwLhRh_0 wroteENCChannelConfigurationStreamNoneX_0(0x05)
643 #define wroteENCChannelConfigurationStreamMonoX_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0002,(n<<8|0x0000)
644 #define wroteENCChannelConfigurationStreamMonoLwRw_0 wroteENCChannelConfigurationStreamMonoX_0(0x01)
645 #define wroteENCChannelConfigurationStreamMonoLhRh_0 wroteENCChannelConfigurationStreamMonoX_0(0x04)
646 #define wroteENCChannelConfigurationStreamMonoLwRwLhRh_0 wroteENCChannelConfigurationStreamMonoX_0(0x05)
647 #define wroteENCChannelConfigurationStreamPhantom0X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,(n<<8|0x0000)
648 #define wroteENCChannelConfigurationStreamPhantom0LwRw_0 wroteENCChannelConfigurationStreamPhantom0X_0(0x01)
649 #define wroteENCChannelConfigurationStreamPhantom0LhRh_0 wroteENCChannelConfigurationStreamPhantom0X_0(0x04)
650 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRh_0 wroteENCChannelConfigurationStreamPhantom0X_0(0x05)
651 #define wroteENCChannelConfigurationStreamPhantom0XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,(n<<8|0x0001)
652 #define wroteENCChannelConfigurationStreamPhantom0LwRwStereo_0 wroteENCChannelConfigurationStreamPhantom0XStereo_0(0x01)
653 #define wroteENCChannelConfigurationStreamPhantom0LhRhStereo_0 wroteENCChannelConfigurationStreamPhantom0XStereo_0(0x04)
654 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhStereo_0 wroteENCChannelConfigurationStreamPhantom0XStereo_0(0x05)
655 #define wroteENCChannelConfigurationStreamPhantom0XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,(n<<8|0x0002)
656 #define wroteENCChannelConfigurationStreamPhantom0LwRwLtRt_0 wroteENCChannelConfigurationStreamPhantom0XLtRt_0(0x01)
657 #define wroteENCChannelConfigurationStreamPhantom0LhRhLtRt_0 wroteENCChannelConfigurationStreamPhantom0XLtRt_0(0x04)
658 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhLtRt_0 wroteENCChannelConfigurationStreamPhantom0XLtRt_0(0x05)
659 #define wroteENCChannelConfigurationStreamPhantom0XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,(n<<8|0x0003)
660 #define wroteENCChannelConfigurationStreamPhantom0LwRwMono_0 wroteENCChannelConfigurationStreamPhantom0XMono_0(0x01)
661 #define wroteENCChannelConfigurationStreamPhantom0LhRhMono_0 wroteENCChannelConfigurationStreamPhantom0XMono_0(0x04)
662 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhMono_0 wroteENCChannelConfigurationStreamPhantom0XMono_0(0x05)
663 #define wroteENCChannelConfigurationStreamPhantom0XDual_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0003,(n<<8|0x0004)
664 #define wroteENCChannelConfigurationStreamPhantom0LwRwDual_0 wroteENCChannelConfigurationStreamPhantom0XDual_0(0x01)
665 #define wroteENCChannelConfigurationStreamPhantom0LhRhDual_0 wroteENCChannelConfigurationStreamPhantom0XDual_0(0x04)
666 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhDual_0 wroteENCChannelConfigurationStreamPhantom0XDual_0(0x05)
667 #define wroteENCChannelConfigurationStreamPhantom1X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0004,(n<<8|0x0000)
668 #define wroteENCChannelConfigurationStreamPhantom1LwRw_0 wroteENCChannelConfigurationStreamPhantom1X_0(0x01)
669 #define wroteENCChannelConfigurationStreamPhantom1LhRh_0 wroteENCChannelConfigurationStreamPhantom1X_0(0x04)
670 #define wroteENCChannelConfigurationStreamPhantom1LwRwLhRh_0 wroteENCChannelConfigurationStreamPhantom1X_0(0x05)
671 #define wroteENCChannelConfigurationStreamPhantom2X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,(n<<8|0x0000)
672 #define wroteENCChannelConfigurationStreamPhantom2LwRw_0 wroteENCChannelConfigurationStreamPhantom2X_0(0x01)
673 #define wroteENCChannelConfigurationStreamPhantom2LhRh_0 wroteENCChannelConfigurationStreamPhantom2X_0(0x04)
674 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRh_0 wroteENCChannelConfigurationStreamPhantom2X_0(0x05)
675 #define wroteENCChannelConfigurationStreamPhantom2XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,(n<<8|0x0001)
676 #define wroteENCChannelConfigurationStreamPhantom2LwRwStereo_0 wroteENCChannelConfigurationStreamPhantom2XStereo_0(0x01)
677 #define wroteENCChannelConfigurationStreamPhantom2LhRhStereo_0 wroteENCChannelConfigurationStreamPhantom2XStereo_0(0x04)
678 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhStereo_0 wroteENCChannelConfigurationStreamPhantom2XStereo_0(0x05)
679 #define wroteENCChannelConfigurationStreamPhantom2XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,(n<<8|0x0002)
680 #define wroteENCChannelConfigurationStreamPhantom2LwRwLtRt_0 wroteENCChannelConfigurationStreamPhantom2XLtRt_0(0x01)
681 #define wroteENCChannelConfigurationStreamPhantom2LhRhLtRt_0 wroteENCChannelConfigurationStreamPhantom2XLtRt_0(0x04)
682 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhLtRt_0 wroteENCChannelConfigurationStreamPhantom2XLtRt_0(0x05)
683 #define wroteENCChannelConfigurationStreamPhantom2XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0005,(n<<8|0x0003)
684 #define wroteENCChannelConfigurationStreamPhantom2LwRwMono_0 wroteENCChannelConfigurationStreamPhantom2XMono_0(0x01)
685 #define wroteENCChannelConfigurationStreamPhantom2LhRhMono_0 wroteENCChannelConfigurationStreamPhantom2XMono_0(0x04)
686 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhMono_0 wroteENCChannelConfigurationStreamPhantom2XMono_0(0x05)
687 #define wroteENCChannelConfigurationStreamPhantom3X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0006,(n<<8|0x0000)
688 #define wroteENCChannelConfigurationStreamPhantom3LwRw_0 wroteENCChannelConfigurationStreamPhantom3X_0(0x01)
689 #define wroteENCChannelConfigurationStreamPhantom3LhRh_0 wroteENCChannelConfigurationStreamPhantom3X_0(0x04)
690 #define wroteENCChannelConfigurationStreamPhantom3LwRwLhRh_0 wroteENCChannelConfigurationStreamPhantom3X_0(0x05)
691 #define wroteENCChannelConfigurationStreamPhantom4X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0007,(n<<8|0x0000)
692 #define wroteENCChannelConfigurationStreamPhantom4LwRw_0 wroteENCChannelConfigurationStreamPhantom4X_0(0x01)
693 #define wroteENCChannelConfigurationStreamPhantom4LhRh_0 wroteENCChannelConfigurationStreamPhantom4X_0(0x04)
694 #define wroteENCChannelConfigurationStreamPhantom4LwRwLhRh_0 wroteENCChannelConfigurationStreamPhantom4X_0(0x05)
695 #define wroteENCChannelConfigurationStreamSurround0X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0008,(n<<8|0x0000)
696 #define wroteENCChannelConfigurationStreamSurround0LwRw_0 wroteENCChannelConfigurationStreamSurround0X_0(0x01)
697 #define wroteENCChannelConfigurationStreamSurround0LhRh_0 wroteENCChannelConfigurationStreamSurround0X_0(0x04)
698 #define wroteENCChannelConfigurationStreamSurround0LwRwLhRh_0 wroteENCChannelConfigurationStreamSurround0X_0(0x05)
699 #define wroteENCChannelConfigurationStreamSurround1X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0009,(n<<8|0x0000)
700 #define wroteENCChannelConfigurationStreamSurround1LwRw_0 wroteENCChannelConfigurationStreamSurround1X_0(0x01)
701 #define wroteENCChannelConfigurationStreamSurround1LhRh_0 wroteENCChannelConfigurationStreamSurround1X_0(0x04)
702 #define wroteENCChannelConfigurationStreamSurround1LwRwLhRh_0 wroteENCChannelConfigurationStreamSurround1X_0(0x05)
703 #define wroteENCChannelConfigurationStreamSurround2X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,(n<<8|0x0000)
704 #define wroteENCChannelConfigurationStreamSurround2LwRw_0 wroteENCChannelConfigurationStreamSurround2X_0(0x01) 
705 #define wroteENCChannelConfigurationStreamSurround2LhRh_0 wroteENCChannelConfigurationStreamSurround2X_0(0x04) 
706 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRh_0 wroteENCChannelConfigurationStreamSurround2X_0(0x05)
707 #define wroteENCChannelConfigurationStreamSurround2XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,(n<<8|0x0001)
708 #define wroteENCChannelConfigurationStreamSurround2LwRwStereo_0 wroteENCChannelConfigurationStreamSurround2XStereo_0(0x01)
709 #define wroteENCChannelConfigurationStreamSurround2LhRhStereo_0 wroteENCChannelConfigurationStreamSurround2XStereo_0(0x04)
710 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhStereo_0 wroteENCChannelConfigurationStreamSurround2XStereo_0(0x05)
711 #define wroteENCChannelConfigurationStreamSurround2XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,(n<<8|0x0002)
712 #define wroteENCChannelConfigurationStreamSurround2LwRwLtRt_0 wroteENCChannelConfigurationStreamSurround2XLtRt_0(0x01)
713 #define wroteENCChannelConfigurationStreamSurround2LhRhLtRt_0 wroteENCChannelConfigurationStreamSurround2XLtRt_0(0x04)
714 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhLtRt_0 wroteENCChannelConfigurationStreamSurround2XLtRt_0(0x05)
715 #define wroteENCChannelConfigurationStreamSurround2XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x000a,(n<<8|0x0003)
716 #define wroteENCChannelConfigurationStreamSurround2LwRwMono_0 wroteENCChannelConfigurationStreamSurround2XMono_0(0x01)
717 #define wroteENCChannelConfigurationStreamSurround2LhRhMono_0 wroteENCChannelConfigurationStreamSurround2XMono_0(0x04)
718 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhMono_0 wroteENCChannelConfigurationStreamSurround2XMono_0(0x05)
719 #define wroteENCChannelConfigurationStreamSurround3X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x000b,(n<<8|0x0000)
720 #define wroteENCChannelConfigurationStreamSurround3LwRw_0 wroteENCChannelConfigurationStreamSurround3X_0(0x01)
721 #define wroteENCChannelConfigurationStreamSurround3LhRh_0 wroteENCChannelConfigurationStreamSurround3X_0(0x04)
722 #define wroteENCChannelConfigurationStreamSurround3LwRwLhRh_0 wroteENCChannelConfigurationStreamSurround3X_0(0x05)
723 #define wroteENCChannelConfigurationStreamSurround4X_0(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x000c,(n<<8|0x0000)
724 #define wroteENCChannelConfigurationStreamSurround4LwRw_0 wroteENCChannelConfigurationStreamSurround4X_0(0x01)
725 #define wroteENCChannelConfigurationStreamSurround4LhRh_0 wroteENCChannelConfigurationStreamSurround4X_0(0x04)
726 #define wroteENCChannelConfigurationStreamSurround4LwRwLhRh_0 wroteENCChannelConfigurationStreamSurround4X_0(0x05)
728 #define wroteENCChannelConfigurationStreamNoneX_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0101,(n<<8|0x0000)
729 #define wroteENCChannelConfigurationStreamNoneLwRw_1 wroteENCChannelConfigurationStreamNoneX_1(0x01)
730 #define wroteENCChannelConfigurationStreamNoneLhRh_1 wroteENCChannelConfigurationStreamNoneX_1(0x04)
731 #define wroteENCChannelConfigurationStreamNoneLwRwLhRh_1 wroteENCChannelConfigurationStreamNoneX_1(0x05)
732 #define wroteENCChannelConfigurationStreamMonoX_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0102,(n<<8|0x0000)
733 #define wroteENCChannelConfigurationStreamMonoLwRw_1 wroteENCChannelConfigurationStreamMonoX_1(0x01)
734 #define wroteENCChannelConfigurationStreamMonoLhRh_1 wroteENCChannelConfigurationStreamMonoX_1(0x04)
735 #define wroteENCChannelConfigurationStreamMonoLwRwLhRh_1 wroteENCChannelConfigurationStreamMonoX_1(0x05)
736 #define wroteENCChannelConfigurationStreamPhantom0X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,(n<<8|0x0000)
737 #define wroteENCChannelConfigurationStreamPhantom0LwRw_1 wroteENCChannelConfigurationStreamPhantom0X_1(0x01)
738 #define wroteENCChannelConfigurationStreamPhantom0LhRh_1 wroteENCChannelConfigurationStreamPhantom0X_1(0x04)
739 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRh_1 wroteENCChannelConfigurationStreamPhantom0X_1(0x05)
740 #define wroteENCChannelConfigurationStreamPhantom0XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,(n<<8|0x0001)
741 #define wroteENCChannelConfigurationStreamPhantom0LwRwStereo_1 wroteENCChannelConfigurationStreamPhantom0XStereo_1(0x01)
742 #define wroteENCChannelConfigurationStreamPhantom0LhRhStereo_1 wroteENCChannelConfigurationStreamPhantom0XStereo_1(0x04)
743 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhStereo_1 wroteENCChannelConfigurationStreamPhantom0XStereo_1(0x05)
744 #define wroteENCChannelConfigurationStreamPhantom0XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,(n<<8|0x0002)
745 #define wroteENCChannelConfigurationStreamPhantom0LwRwLtRt_1 wroteENCChannelConfigurationStreamPhantom0XLtRt_1(0x01)
746 #define wroteENCChannelConfigurationStreamPhantom0LhRhLtRt_1 wroteENCChannelConfigurationStreamPhantom0XLtRt_1(0x04)
747 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhLtRt_1 wroteENCChannelConfigurationStreamPhantom0XLtRt_1(0x05)
748 #define wroteENCChannelConfigurationStreamPhantom0XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,(n<<8|0x0003)
749 #define wroteENCChannelConfigurationStreamPhantom0LwRwMono_1 wroteENCChannelConfigurationStreamPhantom0XMono_1(0x01)
750 #define wroteENCChannelConfigurationStreamPhantom0LhRhMono_1 wroteENCChannelConfigurationStreamPhantom0XMono_1(0x04)
751 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhMono_1 wroteENCChannelConfigurationStreamPhantom0XMono_1(0x05)
752 #define wroteENCChannelConfigurationStreamPhantom0XDual_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0103,(n<<8|0x0004)
753 #define wroteENCChannelConfigurationStreamPhantom0LwRwDual_1 wroteENCChannelConfigurationStreamPhantom0XDual_1(0x01)
754 #define wroteENCChannelConfigurationStreamPhantom0LhRhDual_1 wroteENCChannelConfigurationStreamPhantom0XDual_1(0x04)
755 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhDual_1 wroteENCChannelConfigurationStreamPhantom0XDual_1(0x05)
756 #define wroteENCChannelConfigurationStreamPhantom1X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0104,(n<<8|0x0000)
757 #define wroteENCChannelConfigurationStreamPhantom1LwRw_1 wroteENCChannelConfigurationStreamPhantom1X_1(0x01)
758 #define wroteENCChannelConfigurationStreamPhantom1LhRh_1 wroteENCChannelConfigurationStreamPhantom1X_1(0x04)
759 #define wroteENCChannelConfigurationStreamPhantom1LwRwLhRh_1 wroteENCChannelConfigurationStreamPhantom1X_1(0x05)
760 #define wroteENCChannelConfigurationStreamPhantom2X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,(n<<8|0x0000)
761 #define wroteENCChannelConfigurationStreamPhantom2LwRw_1 wroteENCChannelConfigurationStreamPhantom2X_1(0x01)
762 #define wroteENCChannelConfigurationStreamPhantom2LhRh_1 wroteENCChannelConfigurationStreamPhantom2X_1(0x04)
763 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRh_1 wroteENCChannelConfigurationStreamPhantom2X_1(0x05)
764 #define wroteENCChannelConfigurationStreamPhantom2XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,(n<<8|0x0001)
765 #define wroteENCChannelConfigurationStreamPhantom2LwRwStereo_1 wroteENCChannelConfigurationStreamPhantom2XStereo_1(0x01)
766 #define wroteENCChannelConfigurationStreamPhantom2LhRhStereo_1 wroteENCChannelConfigurationStreamPhantom2XStereo_1(0x04)
767 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhStereo_1 wroteENCChannelConfigurationStreamPhantom2XStereo_1(0x05)
768 #define wroteENCChannelConfigurationStreamPhantom2XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,(n<<8|0x0002)
769 #define wroteENCChannelConfigurationStreamPhantom2LwRwLtRt_1 wroteENCChannelConfigurationStreamPhantom2XLtRt_1(0x01)
770 #define wroteENCChannelConfigurationStreamPhantom2LhRhLtRt_1 wroteENCChannelConfigurationStreamPhantom2XLtRt_1(0x04)
771 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhLtRt_1 wroteENCChannelConfigurationStreamPhantom2XLtRt_1(0x05)
772 #define wroteENCChannelConfigurationStreamPhantom2XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0105,(n<<8|0x0003)
773 #define wroteENCChannelConfigurationStreamPhantom2LwRwMono_1 wroteENCChannelConfigurationStreamPhantom2XMono_1(0x01)
774 #define wroteENCChannelConfigurationStreamPhantom2LhRhMono_1 wroteENCChannelConfigurationStreamPhantom2XMono_1(0x04)
775 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhMono_1 wroteENCChannelConfigurationStreamPhantom2XMono_1(0x05)
776 #define wroteENCChannelConfigurationStreamPhantom3X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0106,(n<<8|0x0000)
777 #define wroteENCChannelConfigurationStreamPhantom3LwRw_1 wroteENCChannelConfigurationStreamPhantom3X_1(0x01)
778 #define wroteENCChannelConfigurationStreamPhantom3LhRh_1 wroteENCChannelConfigurationStreamPhantom3X_1(0x04)
779 #define wroteENCChannelConfigurationStreamPhantom3LwRwLhRh_1 wroteENCChannelConfigurationStreamPhantom3X_1(0x05)
780 #define wroteENCChannelConfigurationStreamPhantom4X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0107,(n<<8|0x0000)
781 #define wroteENCChannelConfigurationStreamPhantom4LwRw_1 wroteENCChannelConfigurationStreamPhantom4X_1(0x01)
782 #define wroteENCChannelConfigurationStreamPhantom4LhRh_1 wroteENCChannelConfigurationStreamPhantom4X_1(0x04)
783 #define wroteENCChannelConfigurationStreamPhantom4LwRwLhRh_1 wroteENCChannelConfigurationStreamPhantom4X_1(0x05)
784 #define wroteENCChannelConfigurationStreamSurround0X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0108,(n<<8|0x0000)
785 #define wroteENCChannelConfigurationStreamSurround0LwRw_1 wroteENCChannelConfigurationStreamSurround0X_1(0x01)
786 #define wroteENCChannelConfigurationStreamSurround0LhRh_1 wroteENCChannelConfigurationStreamSurround0X_1(0x04)
787 #define wroteENCChannelConfigurationStreamSurround0LwRwLhRh_1 wroteENCChannelConfigurationStreamSurround0X_1(0x05)
788 #define wroteENCChannelConfigurationStreamSurround1X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0109,(n<<8|0x0000)
789 #define wroteENCChannelConfigurationStreamSurround1LwRw_1 wroteENCChannelConfigurationStreamSurround1X_1(0x01)
790 #define wroteENCChannelConfigurationStreamSurround1LhRh_1 wroteENCChannelConfigurationStreamSurround1X_1(0x04)
791 #define wroteENCChannelConfigurationStreamSurround1LwRwLhRh_1 wroteENCChannelConfigurationStreamSurround1X_1(0x05)
792 #define wroteENCChannelConfigurationStreamSurround2X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,(n<<8|0x0000)
793 #define wroteENCChannelConfigurationStreamSurround2LwRw_1 wroteENCChannelConfigurationStreamSurround2X_1(0x01) 
794 #define wroteENCChannelConfigurationStreamSurround2LhRh_1 wroteENCChannelConfigurationStreamSurround2X_1(0x04) 
795 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRh_1 wroteENCChannelConfigurationStreamSurround2X_1(0x05)
796 #define wroteENCChannelConfigurationStreamSurround2XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,(n<<8|0x0001)
797 #define wroteENCChannelConfigurationStreamSurround2LwRwStereo_1 wroteENCChannelConfigurationStreamSurround2XStereo_1(0x01)
798 #define wroteENCChannelConfigurationStreamSurround2LhRhStereo_1 wroteENCChannelConfigurationStreamSurround2XStereo_1(0x04)
799 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhStereo_1 wroteENCChannelConfigurationStreamSurround2XStereo_1(0x05)
800 #define wroteENCChannelConfigurationStreamSurround2XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,(n<<8|0x0002)
801 #define wroteENCChannelConfigurationStreamSurround2LwRwLtRt_1 wroteENCChannelConfigurationStreamSurround2XLtRt_1(0x01)
802 #define wroteENCChannelConfigurationStreamSurround2LhRhLtRt_1 wroteENCChannelConfigurationStreamSurround2XLtRt_1(0x04)
803 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhLtRt_1 wroteENCChannelConfigurationStreamSurround2XLtRt_1(0x05)
804 #define wroteENCChannelConfigurationStreamSurround2XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x010a,(n<<8|0x0003)
805 #define wroteENCChannelConfigurationStreamSurround2LwRwMono_1 wroteENCChannelConfigurationStreamSurround2XMono_1(0x01)
806 #define wroteENCChannelConfigurationStreamSurround2LhRhMono_1 wroteENCChannelConfigurationStreamSurround2XMono_1(0x04)
807 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhMono_1 wroteENCChannelConfigurationStreamSurround2XMono_1(0x05)
808 #define wroteENCChannelConfigurationStreamSurround3X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x010b,(n<<8|0x0000)
809 #define wroteENCChannelConfigurationStreamSurround3LwRw_1 wroteENCChannelConfigurationStreamSurround3X_1(0x01)
810 #define wroteENCChannelConfigurationStreamSurround3LhRh_1 wroteENCChannelConfigurationStreamSurround3X_1(0x04)
811 #define wroteENCChannelConfigurationStreamSurround3LwRwLhRh_1 wroteENCChannelConfigurationStreamSurround3X_1(0x05)
812 #define wroteENCChannelConfigurationStreamSurround4X_1(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x010c,(n<<8|0x0000)
813 #define wroteENCChannelConfigurationStreamSurround4LwRw_1 wroteENCChannelConfigurationStreamSurround4X_1(0x01)
814 #define wroteENCChannelConfigurationStreamSurround4LhRh_1 wroteENCChannelConfigurationStreamSurround4X_1(0x04)
815 #define wroteENCChannelConfigurationStreamSurround4LwRwLhRh_1 wroteENCChannelConfigurationStreamSurround4X_1(0x05)
817 #define wroteENCChannelConfigurationStreamNoneX_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0201,(n<<8|0x0000)
818 #define wroteENCChannelConfigurationStreamNoneLwRw_2 wroteENCChannelConfigurationStreamNoneX_2(0x01)
819 #define wroteENCChannelConfigurationStreamNoneLhRh_2 wroteENCChannelConfigurationStreamNoneX_2(0x04)
820 #define wroteENCChannelConfigurationStreamNoneLwRwLhRh_2 wroteENCChannelConfigurationStreamNoneX_2(0x05)
821 #define wroteENCChannelConfigurationStreamMonoX_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0202,(n<<8|0x0000)
822 #define wroteENCChannelConfigurationStreamMonoLwRw_2 wroteENCChannelConfigurationStreamMonoX_2(0x01)
823 #define wroteENCChannelConfigurationStreamMonoLhRh_2 wroteENCChannelConfigurationStreamMonoX_2(0x04)
824 #define wroteENCChannelConfigurationStreamMonoLwRwLhRh_2 wroteENCChannelConfigurationStreamMonoX_2(0x05)
825 #define wroteENCChannelConfigurationStreamPhantom0X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,(n<<8|0x0000)
826 #define wroteENCChannelConfigurationStreamPhantom0LwRw_2 wroteENCChannelConfigurationStreamPhantom0X_2(0x01)
827 #define wroteENCChannelConfigurationStreamPhantom0LhRh_2 wroteENCChannelConfigurationStreamPhantom0X_2(0x04)
828 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRh_2 wroteENCChannelConfigurationStreamPhantom0X_2(0x05)
829 #define wroteENCChannelConfigurationStreamPhantom0XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,(n<<8|0x0001)
830 #define wroteENCChannelConfigurationStreamPhantom0LwRwStereo_2 wroteENCChannelConfigurationStreamPhantom0XStereo_2(0x01)
831 #define wroteENCChannelConfigurationStreamPhantom0LhRhStereo_2 wroteENCChannelConfigurationStreamPhantom0XStereo_2(0x04)
832 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhStereo_2 wroteENCChannelConfigurationStreamPhantom0XStereo_2(0x05)
833 #define wroteENCChannelConfigurationStreamPhantom0XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,(n<<8|0x0002)
834 #define wroteENCChannelConfigurationStreamPhantom0LwRwLtRt_2 wroteENCChannelConfigurationStreamPhantom0XLtRt_2(0x01)
835 #define wroteENCChannelConfigurationStreamPhantom0LhRhLtRt_2 wroteENCChannelConfigurationStreamPhantom0XLtRt_2(0x04)
836 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhLtRt_2 wroteENCChannelConfigurationStreamPhantom0XLtRt_2(0x05)
837 #define wroteENCChannelConfigurationStreamPhantom0XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,(n<<8|0x0003)
838 #define wroteENCChannelConfigurationStreamPhantom0LwRwMono_2 wroteENCChannelConfigurationStreamPhantom0XMono_2(0x01)
839 #define wroteENCChannelConfigurationStreamPhantom0LhRhMono_2 wroteENCChannelConfigurationStreamPhantom0XMono_2(0x04)
840 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhMono_2 wroteENCChannelConfigurationStreamPhantom0XMono_2(0x05)
841 #define wroteENCChannelConfigurationStreamPhantom0XDual_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0203,(n<<8|0x0004)
842 #define wroteENCChannelConfigurationStreamPhantom0LwRwDual_2 wroteENCChannelConfigurationStreamPhantom0XDual_2(0x01)
843 #define wroteENCChannelConfigurationStreamPhantom0LhRhDual_2 wroteENCChannelConfigurationStreamPhantom0XDual_2(0x04)
844 #define wroteENCChannelConfigurationStreamPhantom0LwRwLhRhDual_2 wroteENCChannelConfigurationStreamPhantom0XDual_2(0x05)
845 #define wroteENCChannelConfigurationStreamPhantom1X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0204,(n<<8|0x0000)
846 #define wroteENCChannelConfigurationStreamPhantom1LwRw_2 wroteENCChannelConfigurationStreamPhantom1X_2(0x01)
847 #define wroteENCChannelConfigurationStreamPhantom1LhRh_2 wroteENCChannelConfigurationStreamPhantom1X_2(0x04)
848 #define wroteENCChannelConfigurationStreamPhantom1LwRwLhRh_2 wroteENCChannelConfigurationStreamPhantom1X_2(0x05)
849 #define wroteENCChannelConfigurationStreamPhantom2X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,(n<<8|0x0000)
850 #define wroteENCChannelConfigurationStreamPhantom2LwRw_2 wroteENCChannelConfigurationStreamPhantom2X_2(0x01)
851 #define wroteENCChannelConfigurationStreamPhantom2LhRh_2 wroteENCChannelConfigurationStreamPhantom2X_2(0x04)
852 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRh_2 wroteENCChannelConfigurationStreamPhantom2X_2(0x05)
853 #define wroteENCChannelConfigurationStreamPhantom2XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,(n<<8|0x0001)
854 #define wroteENCChannelConfigurationStreamPhantom2LwRwStereo_2 wroteENCChannelConfigurationStreamPhantom2XStereo_2(0x01)
855 #define wroteENCChannelConfigurationStreamPhantom2LhRhStereo_2 wroteENCChannelConfigurationStreamPhantom2XStereo_2(0x04)
856 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhStereo_2 wroteENCChannelConfigurationStreamPhantom2XStereo_2(0x05)
857 #define wroteENCChannelConfigurationStreamPhantom2XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,(n<<8|0x0002)
858 #define wroteENCChannelConfigurationStreamPhantom2LwRwLtRt_2 wroteENCChannelConfigurationStreamPhantom2XLtRt_2(0x01)
859 #define wroteENCChannelConfigurationStreamPhantom2LhRhLtRt_2 wroteENCChannelConfigurationStreamPhantom2XLtRt_2(0x04)
860 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhLtRt_2 wroteENCChannelConfigurationStreamPhantom2XLtRt_2(0x05)
861 #define wroteENCChannelConfigurationStreamPhantom2XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0205,(n<<8|0x0003)
862 #define wroteENCChannelConfigurationStreamPhantom2LwRwMono_2 wroteENCChannelConfigurationStreamPhantom2XMono_2(0x01)
863 #define wroteENCChannelConfigurationStreamPhantom2LhRhMono_2 wroteENCChannelConfigurationStreamPhantom2XMono_2(0x04)
864 #define wroteENCChannelConfigurationStreamPhantom2LwRwLhRhMono_2 wroteENCChannelConfigurationStreamPhantom2XMono_2(0x05)
865 #define wroteENCChannelConfigurationStreamPhantom3X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0206,(n<<8|0x0000)
866 #define wroteENCChannelConfigurationStreamPhantom3LwRw_2 wroteENCChannelConfigurationStreamPhantom3X_2(0x01)
867 #define wroteENCChannelConfigurationStreamPhantom3LhRh_2 wroteENCChannelConfigurationStreamPhantom3X_2(0x04)
868 #define wroteENCChannelConfigurationStreamPhantom3LwRwLhRh_2 wroteENCChannelConfigurationStreamPhantom3X_2(0x05)
869 #define wroteENCChannelConfigurationStreamPhantom4X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0207,(n<<8|0x0000)
870 #define wroteENCChannelConfigurationStreamPhantom4LwRw_2 wroteENCChannelConfigurationStreamPhantom4X_2(0x01)
871 #define wroteENCChannelConfigurationStreamPhantom4LhRh_2 wroteENCChannelConfigurationStreamPhantom4X_2(0x04)
872 #define wroteENCChannelConfigurationStreamPhantom4LwRwLhRh_2 wroteENCChannelConfigurationStreamPhantom4X_2(0x05)
873 #define wroteENCChannelConfigurationStreamSurround0X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0208,(n<<8|0x0000)
874 #define wroteENCChannelConfigurationStreamSurround0LwRw_2 wroteENCChannelConfigurationStreamSurround0X_2(0x01)
875 #define wroteENCChannelConfigurationStreamSurround0LhRh_2 wroteENCChannelConfigurationStreamSurround0X_2(0x04)
876 #define wroteENCChannelConfigurationStreamSurround0LwRwLhRh_2 wroteENCChannelConfigurationStreamSurround0X_2(0x05)
877 #define wroteENCChannelConfigurationStreamSurround1X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x0209,(n<<8|0x0000)
878 #define wroteENCChannelConfigurationStreamSurround1LwRw_2 wroteENCChannelConfigurationStreamSurround1X_2(0x01)
879 #define wroteENCChannelConfigurationStreamSurround1LhRh_2 wroteENCChannelConfigurationStreamSurround1X_2(0x04)
880 #define wroteENCChannelConfigurationStreamSurround1LwRwLhRh_2 wroteENCChannelConfigurationStreamSurround1X_2(0x05)
881 #define wroteENCChannelConfigurationStreamSurround2X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,(n<<8|0x0000)
882 #define wroteENCChannelConfigurationStreamSurround2LwRw_2 wroteENCChannelConfigurationStreamSurround2X_2(0x01) 
883 #define wroteENCChannelConfigurationStreamSurround2LhRh_2 wroteENCChannelConfigurationStreamSurround2X_2(0x04) 
884 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRh_2 wroteENCChannelConfigurationStreamSurround2X_2(0x05)
885 #define wroteENCChannelConfigurationStreamSurround2XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,(n<<8|0x0001)
886 #define wroteENCChannelConfigurationStreamSurround2LwRwStereo_2 wroteENCChannelConfigurationStreamSurround2XStereo_2(0x01)
887 #define wroteENCChannelConfigurationStreamSurround2LhRhStereo_2 wroteENCChannelConfigurationStreamSurround2XStereo_2(0x04)
888 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhStereo_2 wroteENCChannelConfigurationStreamSurround2XStereo_2(0x05)
889 #define wroteENCChannelConfigurationStreamSurround2XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,(n<<8|0x0002)
890 #define wroteENCChannelConfigurationStreamSurround2LwRwLtRt_2 wroteENCChannelConfigurationStreamSurround2XLtRt_2(0x01)
891 #define wroteENCChannelConfigurationStreamSurround2LhRhLtRt_2 wroteENCChannelConfigurationStreamSurround2XLtRt_2(0x04)
892 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhLtRt_2 wroteENCChannelConfigurationStreamSurround2XLtRt_2(0x05)
893 #define wroteENCChannelConfigurationStreamSurround2XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x020a,(n<<8|0x0003)
894 #define wroteENCChannelConfigurationStreamSurround2LwRwMono_2 wroteENCChannelConfigurationStreamSurround2XMono_2(0x01)
895 #define wroteENCChannelConfigurationStreamSurround2LhRhMono_2 wroteENCChannelConfigurationStreamSurround2XMono_2(0x04)
896 #define wroteENCChannelConfigurationStreamSurround2LwRwLhRhMono_2 wroteENCChannelConfigurationStreamSurround2XMono_2(0x05)
897 #define wroteENCChannelConfigurationStreamSurround3X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x020b,(n<<8|0x0000)
898 #define wroteENCChannelConfigurationStreamSurround3LwRw_2 wroteENCChannelConfigurationStreamSurround3X_2(0x01)
899 #define wroteENCChannelConfigurationStreamSurround3LhRh_2 wroteENCChannelConfigurationStreamSurround3X_2(0x04)
900 #define wroteENCChannelConfigurationStreamSurround3LwRwLhRh_2 wroteENCChannelConfigurationStreamSurround3X_2(0x05)
901 #define wroteENCChannelConfigurationStreamSurround4X_2(n) 0xcc00+STD_BETA_ENCODE,0x0028,0x020c,(n<<8|0x0000)
902 #define wroteENCChannelConfigurationStreamSurround4LwRw_2 wroteENCChannelConfigurationStreamSurround4X_2(0x01)
903 #define wroteENCChannelConfigurationStreamSurround4LhRh_2 wroteENCChannelConfigurationStreamSurround4X_2(0x04)
904 #define wroteENCChannelConfigurationStreamSurround4LwRwLhRh_2 wroteENCChannelConfigurationStreamSurround4X_2(0x05)
906 #define  readENCChannelConfigurationStreamExtChan 0xc200+STD_BETA_ENCODE,0x2B00
907 #define  readENCChannelConfigurationStreamExtMask readENCChannelConfigurationStreamExtChan
908 #define wroteENCChannelConfigurationStreamExtChanNone 0xca00+STD_BETA_ENCODE,0x2B00
909 #define wroteENCChannelConfigurationStreamExtChanLwRw 0xca00+STD_BETA_ENCODE,0x2B01
910 #define wroteENCChannelConfigurationStreamExtChanLhRh 0xca00+STD_BETA_ENCODE,0x2B04
911 #define wroteENCChannelConfigurationStreamExtChanLwRwLhRh 0xca00+STD_BETA_ENCODE,0x2B05
913 #define wroteENCChannelConfigurationStream 0xcc00+STD_BETA_ENCODE,0x0028
915 //ATMOS
916 #define wroteENCChannelConfigurationStreamSurround2ATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2808,0x000a,0x0003,(n<<8),0x0000
917 #define wroteENCChannelConfigurationStreamSurround2ATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2808,0x010a,0x0003,(n<<8),0x0000
918 #define wroteENCChannelConfigurationStreamSurround2ATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2808,0x020a,0x0003,(n<<8),0x0000
920 #define wroteENCChannelConfigurationStreamSurround2LwRwATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2808,0x000a,0x0103,(n<<8),0x0000
921 #define wroteENCChannelConfigurationStreamSurround2LwRwATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2808,0x010a,0x0103,(n<<8),0x0000
922 #define wroteENCChannelConfigurationStreamSurround2LwRwATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2808,0x020a,0x0103,(n<<8),0x0000
924 #define wroteENCChannelConfigurationStreamSurround4ATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2808,0x000c,0x0003,(n<<8),0x0000
925 #define wroteENCChannelConfigurationStreamSurround4ATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2808,0x010c,0x0003,(n<<8),0x0000
926 #define wroteENCChannelConfigurationStreamSurround4ATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2808,0x020c,0x0003,(n<<8),0x0000
928 #define wroteENCChannelConfigurationStreamSurround4LwRwATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x2808,0x000c,0x0103,(n<<8),0x0000
929 #define wroteENCChannelConfigurationStreamSurround4LwRwATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x2808,0x010c,0x0103,(n<<8),0x0000
930 #define wroteENCChannelConfigurationStreamSurround4LwRwATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x2808,0x020c,0x0103,(n<<8),0x0000
932 #define wroteENCChannelConfigurationStreamSurround2LtfRtfLtrRtr_0 wroteENCChannelConfigurationStreamSurround2ATMOSMono_0(0xA)
933 #define wroteENCChannelConfigurationStreamSurround2LtfRtfLtrRtr_1 wroteENCChannelConfigurationStreamSurround2ATMOSMono_1(0xA)
934 #define wroteENCChannelConfigurationStreamSurround2LtfRtfLtrRtr_2 wroteENCChannelConfigurationStreamSurround2ATMOSMono_2(0xA)
936 #define wroteENCChannelConfigurationStreamSurround4LtmRtm_0 wroteENCChannelConfigurationStreamSurround4ATMOSMono_0(0x4)
937 #define wroteENCChannelConfigurationStreamSurround4LtmRtm_1 wroteENCChannelConfigurationStreamSurround4ATMOSMono_1(0x4)
938 #define wroteENCChannelConfigurationStreamSurround4LtmRtm_2 wroteENCChannelConfigurationStreamSurround4ATMOSMono_2(0x4)
940 #define wroteENCChannelConfigurationStreamSurround2LwRwLtfRtfLtrRtr_0 wroteENCChannelConfigurationStreamSurround2LwRwATMOSMono_0(0xA)
941 #define wroteENCChannelConfigurationStreamSurround2LwRwLtfRtfLtrRtr_1 wroteENCChannelConfigurationStreamSurround2LwRwATMOSMono_1(0xA)
942 #define wroteENCChannelConfigurationStreamSurround2LwRwLtfRtfLtrRtr_2 wroteENCChannelConfigurationStreamSurround2LwRwATMOSMono_2(0xA)
944 #define wroteENCChannelConfigurationStreamSurround4LtfRtfLtrRtr_0 wroteENCChannelConfigurationStreamSurround4ATMOSMono_0(0xA)
945 #define wroteENCChannelConfigurationStreamSurround4LtfRtfLtrRtr_1 wroteENCChannelConfigurationStreamSurround4ATMOSMono_1(0xA)
946 #define wroteENCChannelConfigurationStreamSurround4LtfRtfLtrRtr_2 wroteENCChannelConfigurationStreamSurround4ATMOSMono_2(0xA)
948 #define wroteENCChannelConfigurationStreamSurround4LwRwLtfRtfLtrRtr_0 wroteENCChannelConfigurationStreamSurround4LwRwATMOSMono_0(0xA)
949 #define wroteENCChannelConfigurationStreamSurround4LwRwLtfRtfLtrRtr_1 wroteENCChannelConfigurationStreamSurround4LwRwATMOSMono_1(0xA)
950 #define wroteENCChannelConfigurationStreamSurround4LwRwLtfRtfLtrRtr_2 wroteENCChannelConfigurationStreamSurround4LwRwATMOSMono_2(0xA)
952 #define readENCChannelConfigurationStreamATMOSChan         0xc200+STD_BETA_ENCODE,0x2d00
953 #define readENCChannelConfigurationStreamATMOSMask         readENCChannelConfigurationStreamATMOSChan
954 #define wroteENCChannelConfigurationStreamATMOSChanNone     0xca00+STD_BETA_ENCODE,0x2d00
955 #define wroteENCChannelConfigurationStreamATMOSChanLfhRfhLrhRrh     0xca00+STD_BETA_ENCODE,(0x2d11)//PAF_CC_EXTMASK_LfhRfh|PAF_CC_EXTMASK_LrhRrh
956 #define wroteENCChannelConfigurationStreamATMOSChanLtfRtfLtrRtr     0xca00+STD_BETA_ENCODE,(0x2d0a)//PAF_CC_EXTMASK_LtfRtf|PAF_CC_EXTMASK_LtrRtr
957 #define wroteENCChannelConfigurationStreamATMOSChanLtmRtm 0xca00+STD_BETA_ENCODE,(0x2d04)//PAF_CC_EXTMASK_LtmRtm
959 //-------------------------------------------------------------------------------------------------------------
961 #define  readENCChannelConfigurationEncode 0xc400+STD_BETA_ENCODE,0x0030
963 #define wroteENCChannelConfigurationEncodeUnknown 0xcc00+STD_BETA_ENCODE,0x0030,0x0000,0x0000
965 #define wroteENCChannelConfigurationEncodeNone 0xcc00+STD_BETA_ENCODE,0x0030,0x0001,0x0000
966 #define wroteENCChannelConfigurationEncodeMono 0xcc00+STD_BETA_ENCODE,0x0030,0x0002,0x0000
967 #define wroteENCChannelConfigurationEncodeStereo 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,0x0000
968 #define wroteENCChannelConfigurationEncodeStereoLtRt 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,0x0002
970 #define wroteENCChannelConfigurationEncodeNone_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0001,0x0000
971 #define wroteENCChannelConfigurationEncodeMono_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0002,0x0000
972 #define wroteENCChannelConfigurationEncodePhantom0_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,0x0000
973 #define wroteENCChannelConfigurationEncodePhantom0Stereo_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,0x0001
974 #define wroteENCChannelConfigurationEncodePhantom0LtRt_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,0x0002
975 #define wroteENCChannelConfigurationEncodePhantom0Mono_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,0x0003
976 #define wroteENCChannelConfigurationEncodePhantom0Dual_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,0x0004
977 #define wroteENCChannelConfigurationEncodePhantom1_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0004,0x0000
978 #define wroteENCChannelConfigurationEncodePhantom2_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,0x0000
979 #define wroteENCChannelConfigurationEncodePhantom2Stereo_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,0x0001
980 #define wroteENCChannelConfigurationEncodePhantom2LtRt_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,0x0002
981 #define wroteENCChannelConfigurationEncodePhantom2Mono_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,0x0003
982 #define wroteENCChannelConfigurationEncodePhantom3_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0006,0x0000
983 #define wroteENCChannelConfigurationEncodePhantom4_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0007,0x0000
984 #define wroteENCChannelConfigurationEncodeSurround0_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0008,0x0000
985 #define wroteENCChannelConfigurationEncodeSurround1_0 0xcc00+STD_BETA_ENCODE,0x0030,0x0009,0x0000
986 #define wroteENCChannelConfigurationEncodeSurround2_0 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,0x0000
987 #define wroteENCChannelConfigurationEncodeSurround2Stereo_0 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,0x0001
988 #define wroteENCChannelConfigurationEncodeSurround2LtRt_0 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,0x0002
989 #define wroteENCChannelConfigurationEncodeSurround2Mono_0 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,0x0003
990 #define wroteENCChannelConfigurationEncodeSurround3_0 0xcc00+STD_BETA_ENCODE,0x0030,0x000b,0x0000
991 #define wroteENCChannelConfigurationEncodeSurround4_0 0xcc00+STD_BETA_ENCODE,0x0030,0x000c,0x0000
993 #define wroteENCChannelConfigurationEncodeNone_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0101,0x0000
994 #define wroteENCChannelConfigurationEncodeMono_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0102,0x0000
995 #define wroteENCChannelConfigurationEncodePhantom0_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,0x0000
996 #define wroteENCChannelConfigurationEncodePhantom0Stereo_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,0x0001
997 #define wroteENCChannelConfigurationEncodePhantom0LtRt_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,0x0002
998 #define wroteENCChannelConfigurationEncodePhantom0Mono_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,0x0003
999 #define wroteENCChannelConfigurationEncodePhantom0Dual_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,0x0004
1000 #define wroteENCChannelConfigurationEncodePhantom1_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0104,0x0000
1001 #define wroteENCChannelConfigurationEncodePhantom2_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,0x0000
1002 #define wroteENCChannelConfigurationEncodePhantom2Stereo_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,0x0001
1003 #define wroteENCChannelConfigurationEncodePhantom2LtRt_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,0x0002
1004 #define wroteENCChannelConfigurationEncodePhantom2Mono_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,0x0003
1005 #define wroteENCChannelConfigurationEncodePhantom3_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0106,0x0000
1006 #define wroteENCChannelConfigurationEncodePhantom4_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0107,0x0000
1007 #define wroteENCChannelConfigurationEncodeSurround0_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0108,0x0000
1008 #define wroteENCChannelConfigurationEncodeSurround1_1 0xcc00+STD_BETA_ENCODE,0x0030,0x0109,0x0000
1009 #define wroteENCChannelConfigurationEncodeSurround2_1 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,0x0000
1010 #define wroteENCChannelConfigurationEncodeSurround2Stereo_1 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,0x0001
1011 #define wroteENCChannelConfigurationEncodeSurround2LtRt_1 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,0x0002
1012 #define wroteENCChannelConfigurationEncodeSurround2Mono_1 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,0x0003
1013 #define wroteENCChannelConfigurationEncodeSurround3_1 0xcc00+STD_BETA_ENCODE,0x0030,0x010b,0x0000
1014 #define wroteENCChannelConfigurationEncodeSurround4_1 0xcc00+STD_BETA_ENCODE,0x0030,0x010c,0x0000
1016 #define wroteENCChannelConfigurationEncodeNone_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0201,0x0000
1017 #define wroteENCChannelConfigurationEncodeMono_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0202,0x0000
1018 #define wroteENCChannelConfigurationEncodePhantom0_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,0x0000
1019 #define wroteENCChannelConfigurationEncodePhantom0Stereo_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,0x0001
1020 #define wroteENCChannelConfigurationEncodePhantom0LtRt_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,0x0002
1021 #define wroteENCChannelConfigurationEncodePhantom0Mono_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,0x0003
1022 #define wroteENCChannelConfigurationEncodePhantom0Dual_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,0x0004
1023 #define wroteENCChannelConfigurationEncodePhantom1_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0204,0x0000
1024 #define wroteENCChannelConfigurationEncodePhantom2_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,0x0000
1025 #define wroteENCChannelConfigurationEncodePhantom2Stereo_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,0x0001
1026 #define wroteENCChannelConfigurationEncodePhantom2LtRt_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,0x0002
1027 #define wroteENCChannelConfigurationEncodePhantom2Mono_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,0x0003
1028 #define wroteENCChannelConfigurationEncodePhantom3_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0206,0x0000
1029 #define wroteENCChannelConfigurationEncodePhantom4_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0207,0x0000
1030 #define wroteENCChannelConfigurationEncodeSurround0_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0208,0x0000
1031 #define wroteENCChannelConfigurationEncodeSurround1_2 0xcc00+STD_BETA_ENCODE,0x0030,0x0209,0x0000
1032 #define wroteENCChannelConfigurationEncodeSurround2_2 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,0x0000
1033 #define wroteENCChannelConfigurationEncodeSurround2Stereo_2 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,0x0001
1034 #define wroteENCChannelConfigurationEncodeSurround2LtRt_2 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,0x0002
1035 #define wroteENCChannelConfigurationEncodeSurround2Mono_2 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,0x0003
1036 #define wroteENCChannelConfigurationEncodeSurround3_2 0xcc00+STD_BETA_ENCODE,0x0030,0x020b,0x0000
1037 #define wroteENCChannelConfigurationEncodeSurround4_2 0xcc00+STD_BETA_ENCODE,0x0030,0x020c,0x0000
1039 #define wroteENCChannelConfigurationEncodeNoneX_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0001,(n<<8|0x0000)
1040 #define wroteENCChannelConfigurationEncodeNoneLwRw_0 wroteENCChannelConfigurationEncodeNoneX_0(0x01)
1041 #define wroteENCChannelConfigurationEncodeNoneLhRh_0 wroteENCChannelConfigurationEncodeNoneX_0(0x04)
1042 #define wroteENCChannelConfigurationEncodeNoneLwRwLhRh_0 wroteENCChannelConfigurationEncodeNoneX_0(0x05)
1043 #define wroteENCChannelConfigurationEncodeMonoX_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0002,(n<<8|0x0000)
1044 #define wroteENCChannelConfigurationEncodeMonoLwRw_0 wroteENCChannelConfigurationEncodeMonoX_0(0x01)
1045 #define wroteENCChannelConfigurationEncodeMonoLhRh_0 wroteENCChannelConfigurationEncodeMonoX_0(0x04)
1046 #define wroteENCChannelConfigurationEncodeMonoLwRwLhRh_0 wroteENCChannelConfigurationEncodeMonoX_0(0x05)
1047 #define wroteENCChannelConfigurationEncodePhantom0X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,(n<<8|0x0000)
1048 #define wroteENCChannelConfigurationEncodePhantom0LwRw_0 wroteENCChannelConfigurationEncodePhantom0X_0(0x01)
1049 #define wroteENCChannelConfigurationEncodePhantom0LhRh_0 wroteENCChannelConfigurationEncodePhantom0X_0(0x04)
1050 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRh_0 wroteENCChannelConfigurationEncodePhantom0X_0(0x05)
1051 #define wroteENCChannelConfigurationEncodePhantom0XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,(n<<8|0x0001)
1052 #define wroteENCChannelConfigurationEncodePhantom0LwRwStereo_0 wroteENCChannelConfigurationEncodePhantom0XStereo_0(0x01)
1053 #define wroteENCChannelConfigurationEncodePhantom0LhRhStereo_0 wroteENCChannelConfigurationEncodePhantom0XStereo_0(0x04)
1054 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhStereo_0 wroteENCChannelConfigurationEncodePhantom0XStereo_0(0x05)
1055 #define wroteENCChannelConfigurationEncodePhantom0XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,(n<<8|0x0002)
1056 #define wroteENCChannelConfigurationEncodePhantom0LwRwLtRt_0 wroteENCChannelConfigurationEncodePhantom0XLtRt_0(0x01)
1057 #define wroteENCChannelConfigurationEncodePhantom0LhRhLtRt_0 wroteENCChannelConfigurationEncodePhantom0XLtRt_0(0x04)
1058 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhLtRt_0 wroteENCChannelConfigurationEncodePhantom0XLtRt_0(0x05)
1059 #define wroteENCChannelConfigurationEncodePhantom0XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,(n<<8|0x0003)
1060 #define wroteENCChannelConfigurationEncodePhantom0LwRwMono_0 wroteENCChannelConfigurationEncodePhantom0XMono_0(0x01)
1061 #define wroteENCChannelConfigurationEncodePhantom0LhRhMono_0 wroteENCChannelConfigurationEncodePhantom0XMono_0(0x04)
1062 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhMono_0 wroteENCChannelConfigurationEncodePhantom0XMono_0(0x05)
1063 #define wroteENCChannelConfigurationEncodePhantom0XDual_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0003,(n<<8|0x0004)
1064 #define wroteENCChannelConfigurationEncodePhantom0LwRwDual_0 wroteENCChannelConfigurationEncodePhantom0XDual_0(0x01)
1065 #define wroteENCChannelConfigurationEncodePhantom0LhRhDual_0 wroteENCChannelConfigurationEncodePhantom0XDual_0(0x04)
1066 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhDual_0 wroteENCChannelConfigurationEncodePhantom0XDual_0(0x05)
1067 #define wroteENCChannelConfigurationEncodePhantom1X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0004,(n<<8|0x0000)
1068 #define wroteENCChannelConfigurationEncodePhantom1LwRw_0 wroteENCChannelConfigurationEncodePhantom1X_0(0x01)
1069 #define wroteENCChannelConfigurationEncodePhantom1LhRh_0 wroteENCChannelConfigurationEncodePhantom1X_0(0x04)
1070 #define wroteENCChannelConfigurationEncodePhantom1LwRwLhRh_0 wroteENCChannelConfigurationEncodePhantom1X_0(0x05)
1071 #define wroteENCChannelConfigurationEncodePhantom2X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,(n<<8|0x0000)
1072 #define wroteENCChannelConfigurationEncodePhantom2LwRw_0 wroteENCChannelConfigurationEncodePhantom2X_0(0x01)
1073 #define wroteENCChannelConfigurationEncodePhantom2LhRh_0 wroteENCChannelConfigurationEncodePhantom2X_0(0x04)
1074 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRh_0 wroteENCChannelConfigurationEncodePhantom2X_0(0x05)
1075 #define wroteENCChannelConfigurationEncodePhantom2XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,(n<<8|0x0001)
1076 #define wroteENCChannelConfigurationEncodePhantom2LwRwStereo_0 wroteENCChannelConfigurationEncodePhantom2XStereo_0(0x01)
1077 #define wroteENCChannelConfigurationEncodePhantom2LhRhStereo_0 wroteENCChannelConfigurationEncodePhantom2XStereo_0(0x04)
1078 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhStereo_0 wroteENCChannelConfigurationEncodePhantom2XStereo_0(0x05)
1079 #define wroteENCChannelConfigurationEncodePhantom2XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,(n<<8|0x0002)
1080 #define wroteENCChannelConfigurationEncodePhantom2LwRwLtRt_0 wroteENCChannelConfigurationEncodePhantom2XLtRt_0(0x01)
1081 #define wroteENCChannelConfigurationEncodePhantom2LhRhLtRt_0 wroteENCChannelConfigurationEncodePhantom2XLtRt_0(0x04)
1082 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhLtRt_0 wroteENCChannelConfigurationEncodePhantom2XLtRt_0(0x05)
1083 #define wroteENCChannelConfigurationEncodePhantom2XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0005,(n<<8|0x0003)
1084 #define wroteENCChannelConfigurationEncodePhantom2LwRwMono_0 wroteENCChannelConfigurationEncodePhantom2XMono_0(0x01)
1085 #define wroteENCChannelConfigurationEncodePhantom2LhRhMono_0 wroteENCChannelConfigurationEncodePhantom2XMono_0(0x04)
1086 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhMono_0 wroteENCChannelConfigurationEncodePhantom2XMono_0(0x05)
1087 #define wroteENCChannelConfigurationEncodePhantom3X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0006,(n<<8|0x0000)
1088 #define wroteENCChannelConfigurationEncodePhantom3LwRw_0 wroteENCChannelConfigurationEncodePhantom3X_0(0x01)
1089 #define wroteENCChannelConfigurationEncodePhantom3LhRh_0 wroteENCChannelConfigurationEncodePhantom3X_0(0x04)
1090 #define wroteENCChannelConfigurationEncodePhantom3LwRwLhRh_0 wroteENCChannelConfigurationEncodePhantom3X_0(0x05)
1091 #define wroteENCChannelConfigurationEncodePhantom4X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0007,(n<<8|0x0000)
1092 #define wroteENCChannelConfigurationEncodePhantom4LwRw_0 wroteENCChannelConfigurationEncodePhantom4X_0(0x01)
1093 #define wroteENCChannelConfigurationEncodePhantom4LhRh_0 wroteENCChannelConfigurationEncodePhantom4X_0(0x04)
1094 #define wroteENCChannelConfigurationEncodePhantom4LwRwLhRh_0 wroteENCChannelConfigurationEncodePhantom4X_0(0x05)
1095 #define wroteENCChannelConfigurationEncodeSurround0X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0008,(n<<8|0x0000)
1096 #define wroteENCChannelConfigurationEncodeSurround0LwRw_0 wroteENCChannelConfigurationEncodeSurround0X_0(0x01)
1097 #define wroteENCChannelConfigurationEncodeSurround0LhRh_0 wroteENCChannelConfigurationEncodeSurround0X_0(0x04)
1098 #define wroteENCChannelConfigurationEncodeSurround0LwRwLhRh_0 wroteENCChannelConfigurationEncodeSurround0X_0(0x05)
1099 #define wroteENCChannelConfigurationEncodeSurround1X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0009,(n<<8|0x0000)
1100 #define wroteENCChannelConfigurationEncodeSurround1LwRw_0 wroteENCChannelConfigurationEncodeSurround1X_0(0x01)
1101 #define wroteENCChannelConfigurationEncodeSurround1LhRh_0 wroteENCChannelConfigurationEncodeSurround1X_0(0x04)
1102 #define wroteENCChannelConfigurationEncodeSurround1LwRwLhRh_0 wroteENCChannelConfigurationEncodeSurround1X_0(0x05)
1103 #define wroteENCChannelConfigurationEncodeSurround2X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,(n<<8|0x0000)
1104 #define wroteENCChannelConfigurationEncodeSurround2LwRw_0 wroteENCChannelConfigurationEncodeSurround2X_0(0x01) 
1105 #define wroteENCChannelConfigurationEncodeSurround2LhRh_0 wroteENCChannelConfigurationEncodeSurround2X_0(0x04) 
1106 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRh_0 wroteENCChannelConfigurationEncodeSurround2X_0(0x05)
1107 #define wroteENCChannelConfigurationEncodeSurround2XStereo_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,(n<<8|0x0001)
1108 #define wroteENCChannelConfigurationEncodeSurround2LwRwStereo_0 wroteENCChannelConfigurationEncodeSurround2XStereo_0(0x01)
1109 #define wroteENCChannelConfigurationEncodeSurround2LhRhStereo_0 wroteENCChannelConfigurationEncodeSurround2XStereo_0(0x04)
1110 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhStereo_0 wroteENCChannelConfigurationEncodeSurround2XStereo_0(0x05)
1111 #define wroteENCChannelConfigurationEncodeSurround2XLtRt_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,(n<<8|0x0002)
1112 #define wroteENCChannelConfigurationEncodeSurround2LwRwLtRt_0 wroteENCChannelConfigurationEncodeSurround2XLtRt_0(0x01)
1113 #define wroteENCChannelConfigurationEncodeSurround2LhRhLtRt_0 wroteENCChannelConfigurationEncodeSurround2XLtRt_0(0x04)
1114 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhLtRt_0 wroteENCChannelConfigurationEncodeSurround2XLtRt_0(0x05)
1115 #define wroteENCChannelConfigurationEncodeSurround2XMono_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x000a,(n<<8|0x0003)
1116 #define wroteENCChannelConfigurationEncodeSurround2LwRwMono_0 wroteENCChannelConfigurationEncodeSurround2XMono_0(0x01)
1117 #define wroteENCChannelConfigurationEncodeSurround2LhRhMono_0 wroteENCChannelConfigurationEncodeSurround2XMono_0(0x04)
1118 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhMono_0 wroteENCChannelConfigurationEncodeSurround2XMono_0(0x05)
1119 #define wroteENCChannelConfigurationEncodeSurround3X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x000b,(n<<8|0x0000)
1120 #define wroteENCChannelConfigurationEncodeSurround3LwRw_0 wroteENCChannelConfigurationEncodeSurround3X_0(0x01)
1121 #define wroteENCChannelConfigurationEncodeSurround3LhRh_0 wroteENCChannelConfigurationEncodeSurround3X_0(0x04)
1122 #define wroteENCChannelConfigurationEncodeSurround3LwRwLhRh_0 wroteENCChannelConfigurationEncodeSurround3X_0(0x05)
1123 #define wroteENCChannelConfigurationEncodeSurround4X_0(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x000c,(n<<8|0x0000)
1124 #define wroteENCChannelConfigurationEncodeSurround4LwRw_0 wroteENCChannelConfigurationEncodeSurround4X_0(0x01)
1125 #define wroteENCChannelConfigurationEncodeSurround4LhRh_0 wroteENCChannelConfigurationEncodeSurround4X_0(0x04)
1126 #define wroteENCChannelConfigurationEncodeSurround4LwRwLhRh_0 wroteENCChannelConfigurationEncodeSurround4X_0(0x05)
1128 #define wroteENCChannelConfigurationEncodeNoneX_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0101,(n<<8|0x0000)
1129 #define wroteENCChannelConfigurationEncodeNoneLwRw_1 wroteENCChannelConfigurationEncodeNoneX_1(0x01)
1130 #define wroteENCChannelConfigurationEncodeNoneLhRh_1 wroteENCChannelConfigurationEncodeNoneX_1(0x04)
1131 #define wroteENCChannelConfigurationEncodeNoneLwRwLhRh_1 wroteENCChannelConfigurationEncodeNoneX_1(0x05)
1132 #define wroteENCChannelConfigurationEncodeMonoX_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0102,(n<<8|0x0000)
1133 #define wroteENCChannelConfigurationEncodeMonoLwRw_1 wroteENCChannelConfigurationEncodeMonoX_1(0x01)
1134 #define wroteENCChannelConfigurationEncodeMonoLhRh_1 wroteENCChannelConfigurationEncodeMonoX_1(0x04)
1135 #define wroteENCChannelConfigurationEncodeMonoLwRwLhRh_1 wroteENCChannelConfigurationEncodeMonoX_1(0x05)
1136 #define wroteENCChannelConfigurationEncodePhantom0X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,(n<<8|0x0000)
1137 #define wroteENCChannelConfigurationEncodePhantom0LwRw_1 wroteENCChannelConfigurationEncodePhantom0X_1(0x01)
1138 #define wroteENCChannelConfigurationEncodePhantom0LhRh_1 wroteENCChannelConfigurationEncodePhantom0X_1(0x04)
1139 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRh_1 wroteENCChannelConfigurationEncodePhantom0X_1(0x05)
1140 #define wroteENCChannelConfigurationEncodePhantom0XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,(n<<8|0x0001)
1141 #define wroteENCChannelConfigurationEncodePhantom0LwRwStereo_1 wroteENCChannelConfigurationEncodePhantom0XStereo_1(0x01)
1142 #define wroteENCChannelConfigurationEncodePhantom0LhRhStereo_1 wroteENCChannelConfigurationEncodePhantom0XStereo_1(0x04)
1143 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhStereo_1 wroteENCChannelConfigurationEncodePhantom0XStereo_1(0x05)
1144 #define wroteENCChannelConfigurationEncodePhantom0XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,(n<<8|0x0002)
1145 #define wroteENCChannelConfigurationEncodePhantom0LwRwLtRt_1 wroteENCChannelConfigurationEncodePhantom0XLtRt_1(0x01)
1146 #define wroteENCChannelConfigurationEncodePhantom0LhRhLtRt_1 wroteENCChannelConfigurationEncodePhantom0XLtRt_1(0x04)
1147 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhLtRt_1 wroteENCChannelConfigurationEncodePhantom0XLtRt_1(0x05)
1148 #define wroteENCChannelConfigurationEncodePhantom0XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,(n<<8|0x0003)
1149 #define wroteENCChannelConfigurationEncodePhantom0LwRwMono_1 wroteENCChannelConfigurationEncodePhantom0XMono_1(0x01)
1150 #define wroteENCChannelConfigurationEncodePhantom0LhRhMono_1 wroteENCChannelConfigurationEncodePhantom0XMono_1(0x04)
1151 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhMono_1 wroteENCChannelConfigurationEncodePhantom0XMono_1(0x05)
1152 #define wroteENCChannelConfigurationEncodePhantom0XDual_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0103,(n<<8|0x0004)
1153 #define wroteENCChannelConfigurationEncodePhantom0LwRwDual_1 wroteENCChannelConfigurationEncodePhantom0XDual_1(0x01)
1154 #define wroteENCChannelConfigurationEncodePhantom0LhRhDual_1 wroteENCChannelConfigurationEncodePhantom0XDual_1(0x04)
1155 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhDual_1 wroteENCChannelConfigurationEncodePhantom0XDual_1(0x05)
1156 #define wroteENCChannelConfigurationEncodePhantom1X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0104,(n<<8|0x0000)
1157 #define wroteENCChannelConfigurationEncodePhantom1LwRw_1 wroteENCChannelConfigurationEncodePhantom1X_1(0x01)
1158 #define wroteENCChannelConfigurationEncodePhantom1LhRh_1 wroteENCChannelConfigurationEncodePhantom1X_1(0x04)
1159 #define wroteENCChannelConfigurationEncodePhantom1LwRwLhRh_1 wroteENCChannelConfigurationEncodePhantom1X_1(0x05)
1160 #define wroteENCChannelConfigurationEncodePhantom2X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,(n<<8|0x0000)
1161 #define wroteENCChannelConfigurationEncodePhantom2LwRw_1 wroteENCChannelConfigurationEncodePhantom2X_1(0x01)
1162 #define wroteENCChannelConfigurationEncodePhantom2LhRh_1 wroteENCChannelConfigurationEncodePhantom2X_1(0x04)
1163 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRh_1 wroteENCChannelConfigurationEncodePhantom2X_1(0x05)
1164 #define wroteENCChannelConfigurationEncodePhantom2XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,(n<<8|0x0001)
1165 #define wroteENCChannelConfigurationEncodePhantom2LwRwStereo_1 wroteENCChannelConfigurationEncodePhantom2XStereo_1(0x01)
1166 #define wroteENCChannelConfigurationEncodePhantom2LhRhStereo_1 wroteENCChannelConfigurationEncodePhantom2XStereo_1(0x04)
1167 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhStereo_1 wroteENCChannelConfigurationEncodePhantom2XStereo_1(0x05)
1168 #define wroteENCChannelConfigurationEncodePhantom2XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,(n<<8|0x0002)
1169 #define wroteENCChannelConfigurationEncodePhantom2LwRwLtRt_1 wroteENCChannelConfigurationEncodePhantom2XLtRt_1(0x01)
1170 #define wroteENCChannelConfigurationEncodePhantom2LhRhLtRt_1 wroteENCChannelConfigurationEncodePhantom2XLtRt_1(0x04)
1171 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhLtRt_1 wroteENCChannelConfigurationEncodePhantom2XLtRt_1(0x05)
1172 #define wroteENCChannelConfigurationEncodePhantom2XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0105,(n<<8|0x0003)
1173 #define wroteENCChannelConfigurationEncodePhantom2LwRwMono_1 wroteENCChannelConfigurationEncodePhantom2XMono_1(0x01)
1174 #define wroteENCChannelConfigurationEncodePhantom2LhRhMono_1 wroteENCChannelConfigurationEncodePhantom2XMono_1(0x04)
1175 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhMono_1 wroteENCChannelConfigurationEncodePhantom2XMono_1(0x05)
1176 #define wroteENCChannelConfigurationEncodePhantom3X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0106,(n<<8|0x0000)
1177 #define wroteENCChannelConfigurationEncodePhantom3LwRw_1 wroteENCChannelConfigurationEncodePhantom3X_1(0x01)
1178 #define wroteENCChannelConfigurationEncodePhantom3LhRh_1 wroteENCChannelConfigurationEncodePhantom3X_1(0x04)
1179 #define wroteENCChannelConfigurationEncodePhantom3LwRwLhRh_1 wroteENCChannelConfigurationEncodePhantom3X_1(0x05)
1180 #define wroteENCChannelConfigurationEncodePhantom4X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0107,(n<<8|0x0000)
1181 #define wroteENCChannelConfigurationEncodePhantom4LwRw_1 wroteENCChannelConfigurationEncodePhantom4X_1(0x01)
1182 #define wroteENCChannelConfigurationEncodePhantom4LhRh_1 wroteENCChannelConfigurationEncodePhantom4X_1(0x04)
1183 #define wroteENCChannelConfigurationEncodePhantom4LwRwLhRh_1 wroteENCChannelConfigurationEncodePhantom4X_1(0x05)
1184 #define wroteENCChannelConfigurationEncodeSurround0X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0108,(n<<8|0x0000)
1185 #define wroteENCChannelConfigurationEncodeSurround0LwRw_1 wroteENCChannelConfigurationEncodeSurround0X_1(0x01)
1186 #define wroteENCChannelConfigurationEncodeSurround0LhRh_1 wroteENCChannelConfigurationEncodeSurround0X_1(0x04)
1187 #define wroteENCChannelConfigurationEncodeSurround0LwRwLhRh_1 wroteENCChannelConfigurationEncodeSurround0X_1(0x05)
1188 #define wroteENCChannelConfigurationEncodeSurround1X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0109,(n<<8|0x0000)
1189 #define wroteENCChannelConfigurationEncodeSurround1LwRw_1 wroteENCChannelConfigurationEncodeSurround1X_1(0x01)
1190 #define wroteENCChannelConfigurationEncodeSurround1LhRh_1 wroteENCChannelConfigurationEncodeSurround1X_1(0x04)
1191 #define wroteENCChannelConfigurationEncodeSurround1LwRwLhRh_1 wroteENCChannelConfigurationEncodeSurround1X_1(0x05)
1192 #define wroteENCChannelConfigurationEncodeSurround2X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,(n<<8|0x0000)
1193 #define wroteENCChannelConfigurationEncodeSurround2LwRw_1 wroteENCChannelConfigurationEncodeSurround2X_1(0x01) 
1194 #define wroteENCChannelConfigurationEncodeSurround2LhRh_1 wroteENCChannelConfigurationEncodeSurround2X_1(0x04) 
1195 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRh_1 wroteENCChannelConfigurationEncodeSurround2X_1(0x05)
1196 #define wroteENCChannelConfigurationEncodeSurround2XStereo_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,(n<<8|0x0001)
1197 #define wroteENCChannelConfigurationEncodeSurround2LwRwStereo_1 wroteENCChannelConfigurationEncodeSurround2XStereo_1(0x01)
1198 #define wroteENCChannelConfigurationEncodeSurround2LhRhStereo_1 wroteENCChannelConfigurationEncodeSurround2XStereo_1(0x04)
1199 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhStereo_1 wroteENCChannelConfigurationEncodeSurround2XStereo_1(0x05)
1200 #define wroteENCChannelConfigurationEncodeSurround2XLtRt_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,(n<<8|0x0002)
1201 #define wroteENCChannelConfigurationEncodeSurround2LwRwLtRt_1 wroteENCChannelConfigurationEncodeSurround2XLtRt_1(0x01)
1202 #define wroteENCChannelConfigurationEncodeSurround2LhRhLtRt_1 wroteENCChannelConfigurationEncodeSurround2XLtRt_1(0x04)
1203 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhLtRt_1 wroteENCChannelConfigurationEncodeSurround2XLtRt_1(0x05)
1204 #define wroteENCChannelConfigurationEncodeSurround2XMono_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x010a,(n<<8|0x0003)
1205 #define wroteENCChannelConfigurationEncodeSurround2LwRwMono_1 wroteENCChannelConfigurationEncodeSurround2XMono_1(0x01)
1206 #define wroteENCChannelConfigurationEncodeSurround2LhRhMono_1 wroteENCChannelConfigurationEncodeSurround2XMono_1(0x04)
1207 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhMono_1 wroteENCChannelConfigurationEncodeSurround2XMono_1(0x05)
1208 #define wroteENCChannelConfigurationEncodeSurround3X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x010b,(n<<8|0x0000)
1209 #define wroteENCChannelConfigurationEncodeSurround3LwRw_1 wroteENCChannelConfigurationEncodeSurround3X_1(0x01)
1210 #define wroteENCChannelConfigurationEncodeSurround3LhRh_1 wroteENCChannelConfigurationEncodeSurround3X_1(0x04)
1211 #define wroteENCChannelConfigurationEncodeSurround3LwRwLhRh_1 wroteENCChannelConfigurationEncodeSurround3X_1(0x05)
1212 #define wroteENCChannelConfigurationEncodeSurround4X_1(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x010c,(n<<8|0x0000)
1213 #define wroteENCChannelConfigurationEncodeSurround4LwRw_1 wroteENCChannelConfigurationEncodeSurround4X_1(0x01)
1214 #define wroteENCChannelConfigurationEncodeSurround4LhRh_1 wroteENCChannelConfigurationEncodeSurround4X_1(0x04)
1215 #define wroteENCChannelConfigurationEncodeSurround4LwRwLhRh_1 wroteENCChannelConfigurationEncodeSurround4X_1(0x05)
1217 #define wroteENCChannelConfigurationEncodeNoneX_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0201,(n<<8|0x0000)
1218 #define wroteENCChannelConfigurationEncodeNoneLwRw_2 wroteENCChannelConfigurationEncodeNoneX_2(0x01)
1219 #define wroteENCChannelConfigurationEncodeNoneLhRh_2 wroteENCChannelConfigurationEncodeNoneX_2(0x04)
1220 #define wroteENCChannelConfigurationEncodeNoneLwRwLhRh_2 wroteENCChannelConfigurationEncodeNoneX_2(0x05)
1221 #define wroteENCChannelConfigurationEncodeMonoX_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0202,(n<<8|0x0000)
1222 #define wroteENCChannelConfigurationEncodeMonoLwRw_2 wroteENCChannelConfigurationEncodeMonoX_2(0x01)
1223 #define wroteENCChannelConfigurationEncodeMonoLhRh_2 wroteENCChannelConfigurationEncodeMonoX_2(0x04)
1224 #define wroteENCChannelConfigurationEncodeMonoLwRwLhRh_2 wroteENCChannelConfigurationEncodeMonoX_2(0x05)
1225 #define wroteENCChannelConfigurationEncodePhantom0X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,(n<<8|0x0000)
1226 #define wroteENCChannelConfigurationEncodePhantom0LwRw_2 wroteENCChannelConfigurationEncodePhantom0X_2(0x01)
1227 #define wroteENCChannelConfigurationEncodePhantom0LhRh_2 wroteENCChannelConfigurationEncodePhantom0X_2(0x04)
1228 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRh_2 wroteENCChannelConfigurationEncodePhantom0X_2(0x05)
1229 #define wroteENCChannelConfigurationEncodePhantom0XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,(n<<8|0x0001)
1230 #define wroteENCChannelConfigurationEncodePhantom0LwRwStereo_2 wroteENCChannelConfigurationEncodePhantom0XStereo_2(0x01)
1231 #define wroteENCChannelConfigurationEncodePhantom0LhRhStereo_2 wroteENCChannelConfigurationEncodePhantom0XStereo_2(0x04)
1232 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhStereo_2 wroteENCChannelConfigurationEncodePhantom0XStereo_2(0x05)
1233 #define wroteENCChannelConfigurationEncodePhantom0XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,(n<<8|0x0002)
1234 #define wroteENCChannelConfigurationEncodePhantom0LwRwLtRt_2 wroteENCChannelConfigurationEncodePhantom0XLtRt_2(0x01)
1235 #define wroteENCChannelConfigurationEncodePhantom0LhRhLtRt_2 wroteENCChannelConfigurationEncodePhantom0XLtRt_2(0x04)
1236 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhLtRt_2 wroteENCChannelConfigurationEncodePhantom0XLtRt_2(0x05)
1237 #define wroteENCChannelConfigurationEncodePhantom0XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,(n<<8|0x0003)
1238 #define wroteENCChannelConfigurationEncodePhantom0LwRwMono_2 wroteENCChannelConfigurationEncodePhantom0XMono_2(0x01)
1239 #define wroteENCChannelConfigurationEncodePhantom0LhRhMono_2 wroteENCChannelConfigurationEncodePhantom0XMono_2(0x04)
1240 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhMono_2 wroteENCChannelConfigurationEncodePhantom0XMono_2(0x05)
1241 #define wroteENCChannelConfigurationEncodePhantom0XDual_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0203,(n<<8|0x0004)
1242 #define wroteENCChannelConfigurationEncodePhantom0LwRwDual_2 wroteENCChannelConfigurationEncodePhantom0XDual_2(0x01)
1243 #define wroteENCChannelConfigurationEncodePhantom0LhRhDual_2 wroteENCChannelConfigurationEncodePhantom0XDual_2(0x04)
1244 #define wroteENCChannelConfigurationEncodePhantom0LwRwLhRhDual_2 wroteENCChannelConfigurationEncodePhantom0XDual_2(0x05)
1245 #define wroteENCChannelConfigurationEncodePhantom1X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0204,(n<<8|0x0000)
1246 #define wroteENCChannelConfigurationEncodePhantom1LwRw_2 wroteENCChannelConfigurationEncodePhantom1X_2(0x01)
1247 #define wroteENCChannelConfigurationEncodePhantom1LhRh_2 wroteENCChannelConfigurationEncodePhantom1X_2(0x04)
1248 #define wroteENCChannelConfigurationEncodePhantom1LwRwLhRh_2 wroteENCChannelConfigurationEncodePhantom1X_2(0x05)
1249 #define wroteENCChannelConfigurationEncodePhantom2X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,(n<<8|0x0000)
1250 #define wroteENCChannelConfigurationEncodePhantom2LwRw_2 wroteENCChannelConfigurationEncodePhantom2X_2(0x01)
1251 #define wroteENCChannelConfigurationEncodePhantom2LhRh_2 wroteENCChannelConfigurationEncodePhantom2X_2(0x04)
1252 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRh_2 wroteENCChannelConfigurationEncodePhantom2X_2(0x05)
1253 #define wroteENCChannelConfigurationEncodePhantom2XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,(n<<8|0x0001)
1254 #define wroteENCChannelConfigurationEncodePhantom2LwRwStereo_2 wroteENCChannelConfigurationEncodePhantom2XStereo_2(0x01)
1255 #define wroteENCChannelConfigurationEncodePhantom2LhRhStereo_2 wroteENCChannelConfigurationEncodePhantom2XStereo_2(0x04)
1256 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhStereo_2 wroteENCChannelConfigurationEncodePhantom2XStereo_2(0x05)
1257 #define wroteENCChannelConfigurationEncodePhantom2XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,(n<<8|0x0002)
1258 #define wroteENCChannelConfigurationEncodePhantom2LwRwLtRt_2 wroteENCChannelConfigurationEncodePhantom2XLtRt_2(0x01)
1259 #define wroteENCChannelConfigurationEncodePhantom2LhRhLtRt_2 wroteENCChannelConfigurationEncodePhantom2XLtRt_2(0x04)
1260 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhLtRt_2 wroteENCChannelConfigurationEncodePhantom2XLtRt_2(0x05)
1261 #define wroteENCChannelConfigurationEncodePhantom2XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0205,(n<<8|0x0003)
1262 #define wroteENCChannelConfigurationEncodePhantom2LwRwMono_2 wroteENCChannelConfigurationEncodePhantom2XMono_2(0x01)
1263 #define wroteENCChannelConfigurationEncodePhantom2LhRhMono_2 wroteENCChannelConfigurationEncodePhantom2XMono_2(0x04)
1264 #define wroteENCChannelConfigurationEncodePhantom2LwRwLhRhMono_2 wroteENCChannelConfigurationEncodePhantom2XMono_2(0x05)
1265 #define wroteENCChannelConfigurationEncodePhantom3X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0206,(n<<8|0x0000)
1266 #define wroteENCChannelConfigurationEncodePhantom3LwRw_2 wroteENCChannelConfigurationEncodePhantom3X_2(0x01)
1267 #define wroteENCChannelConfigurationEncodePhantom3LhRh_2 wroteENCChannelConfigurationEncodePhantom3X_2(0x04)
1268 #define wroteENCChannelConfigurationEncodePhantom3LwRwLhRh_2 wroteENCChannelConfigurationEncodePhantom3X_2(0x05)
1269 #define wroteENCChannelConfigurationEncodePhantom4X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0207,(n<<8|0x0000)
1270 #define wroteENCChannelConfigurationEncodePhantom4LwRw_2 wroteENCChannelConfigurationEncodePhantom4X_2(0x01)
1271 #define wroteENCChannelConfigurationEncodePhantom4LhRh_2 wroteENCChannelConfigurationEncodePhantom4X_2(0x04)
1272 #define wroteENCChannelConfigurationEncodePhantom4LwRwLhRh_2 wroteENCChannelConfigurationEncodePhantom4X_2(0x05)
1273 #define wroteENCChannelConfigurationEncodeSurround0X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0208,(n<<8|0x0000)
1274 #define wroteENCChannelConfigurationEncodeSurround0LwRw_2 wroteENCChannelConfigurationEncodeSurround0X_2(0x01)
1275 #define wroteENCChannelConfigurationEncodeSurround0LhRh_2 wroteENCChannelConfigurationEncodeSurround0X_2(0x04)
1276 #define wroteENCChannelConfigurationEncodeSurround0LwRwLhRh_2 wroteENCChannelConfigurationEncodeSurround0X_2(0x05)
1277 #define wroteENCChannelConfigurationEncodeSurround1X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x0209,(n<<8|0x0000)
1278 #define wroteENCChannelConfigurationEncodeSurround1LwRw_2 wroteENCChannelConfigurationEncodeSurround1X_2(0x01)
1279 #define wroteENCChannelConfigurationEncodeSurround1LhRh_2 wroteENCChannelConfigurationEncodeSurround1X_2(0x04)
1280 #define wroteENCChannelConfigurationEncodeSurround1LwRwLhRh_2 wroteENCChannelConfigurationEncodeSurround1X_2(0x05)
1281 #define wroteENCChannelConfigurationEncodeSurround2X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,(n<<8|0x0000)
1282 #define wroteENCChannelConfigurationEncodeSurround2LwRw_2 wroteENCChannelConfigurationEncodeSurround2X_2(0x01) 
1283 #define wroteENCChannelConfigurationEncodeSurround2LhRh_2 wroteENCChannelConfigurationEncodeSurround2X_2(0x04) 
1284 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRh_2 wroteENCChannelConfigurationEncodeSurround2X_2(0x05)
1285 #define wroteENCChannelConfigurationEncodeSurround2XStereo_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,(n<<8|0x0001)
1286 #define wroteENCChannelConfigurationEncodeSurround2LwRwStereo_2 wroteENCChannelConfigurationEncodeSurround2XStereo_2(0x01)
1287 #define wroteENCChannelConfigurationEncodeSurround2LhRhStereo_2 wroteENCChannelConfigurationEncodeSurround2XStereo_2(0x04)
1288 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhStereo_2 wroteENCChannelConfigurationEncodeSurround2XStereo_2(0x05)
1289 #define wroteENCChannelConfigurationEncodeSurround2XLtRt_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,(n<<8|0x0002)
1290 #define wroteENCChannelConfigurationEncodeSurround2LwRwLtRt_2 wroteENCChannelConfigurationEncodeSurround2XLtRt_2(0x01)
1291 #define wroteENCChannelConfigurationEncodeSurround2LhRhLtRt_2 wroteENCChannelConfigurationEncodeSurround2XLtRt_2(0x04)
1292 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhLtRt_2 wroteENCChannelConfigurationEncodeSurround2XLtRt_2(0x05)
1293 #define wroteENCChannelConfigurationEncodeSurround2XMono_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x020a,(n<<8|0x0003)
1294 #define wroteENCChannelConfigurationEncodeSurround2LwRwMono_2 wroteENCChannelConfigurationEncodeSurround2XMono_2(0x01)
1295 #define wroteENCChannelConfigurationEncodeSurround2LhRhMono_2 wroteENCChannelConfigurationEncodeSurround2XMono_2(0x04)
1296 #define wroteENCChannelConfigurationEncodeSurround2LwRwLhRhMono_2 wroteENCChannelConfigurationEncodeSurround2XMono_2(0x05)
1297 #define wroteENCChannelConfigurationEncodeSurround3X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x020b,(n<<8|0x0000)
1298 #define wroteENCChannelConfigurationEncodeSurround3LwRw_2 wroteENCChannelConfigurationEncodeSurround3X_2(0x01)
1299 #define wroteENCChannelConfigurationEncodeSurround3LhRh_2 wroteENCChannelConfigurationEncodeSurround3X_2(0x04)
1300 #define wroteENCChannelConfigurationEncodeSurround3LwRwLhRh_2 wroteENCChannelConfigurationEncodeSurround3X_2(0x05)
1301 #define wroteENCChannelConfigurationEncodeSurround4X_2(n) 0xcc00+STD_BETA_ENCODE,0x0030,0x020c,(n<<8|0x0000)
1302 #define wroteENCChannelConfigurationEncodeSurround4LwRw_2 wroteENCChannelConfigurationEncodeSurround4X_2(0x01)
1303 #define wroteENCChannelConfigurationEncodeSurround4LhRh_2 wroteENCChannelConfigurationEncodeSurround4X_2(0x04)
1304 #define wroteENCChannelConfigurationEncodeSurround4LwRwLhRh_2 wroteENCChannelConfigurationEncodeSurround4X_2(0x05)
1306 #define  readENCChannelConfigurationEncodeExtChan 0xc200+STD_BETA_ENCODE,0x3300
1307 #define  readENCChannelConfigurationEncodeExtMask readENCChannelConfigurationEncodeExtChan
1308 #define wroteENCChannelConfigurationEncodeExtChanNone 0xca00+STD_BETA_ENCODE,0x3300
1309 #define wroteENCChannelConfigurationEncodeExtChanLwRw 0xca00+STD_BETA_ENCODE,0x3301
1310 #define wroteENCChannelConfigurationEncodeExtChanLhRh 0xca00+STD_BETA_ENCODE,0x3304
1311 #define wroteENCChannelConfigurationEncodeExtChanLwRwLhRh 0xca00+STD_BETA_ENCODE,0x3305
1313 //ATMOS
1314 #define wroteENCChannelConfigurationEncodeSurround2ATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x3008,0x000a,0x0003,(n<<8),0x0000
1315 #define wroteENCChannelConfigurationEncodeSurround2ATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x3008,0x010a,0x0003,(n<<8),0x0000
1316 #define wroteENCChannelConfigurationEncodeSurround2ATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x3008,0x020a,0x0003,(n<<8),0x0000
1318 #define wroteENCChannelConfigurationEncodeSurround2LwRwATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x3008,0x000a,0x0103,(n<<8),0x0000
1319 #define wroteENCChannelConfigurationEncodeSurround2LwRwATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x3008,0x010a,0x0103,(n<<8),0x0000
1320 #define wroteENCChannelConfigurationEncodeSurround2LwRwATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x3008,0x020a,0x0103,(n<<8),0x0000
1322 #define wroteENCChannelConfigurationEncodeSurround4ATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x3008,0x000c,0x0003,(n<<8),0x0000
1323 #define wroteENCChannelConfigurationEncodeSurround4ATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x3008,0x010c,0x0003,(n<<8),0x0000
1324 #define wroteENCChannelConfigurationEncodeSurround4ATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x3008,0x020c,0x0003,(n<<8),0x0000
1326 #define wroteENCChannelConfigurationEncodeSurround4LwRwATMOSMono_0(n) 0xce00+STD_BETA_ENCODE,0x3008,0x000c,0x0103,(n<<8),0x0000
1327 #define wroteENCChannelConfigurationEncodeSurround4LwRwATMOSMono_1(n) 0xce00+STD_BETA_ENCODE,0x3008,0x010c,0x0103,(n<<8),0x0000
1328 #define wroteENCChannelConfigurationEncodeSurround4LwRwATMOSMono_2(n) 0xce00+STD_BETA_ENCODE,0x3008,0x020c,0x0103,(n<<8),0x0000
1330 #define wroteENCChannelConfigurationEncodeSurround2LtfRtfLtrRtr_0 wroteENCChannelConfigurationEncodeSurround2ATMOSMono_0(0xA)
1331 #define wroteENCChannelConfigurationEncodeSurround2LtfRtfLtrRtr_1 wroteENCChannelConfigurationEncodeSurround2ATMOSMono_1(0xA)
1332 #define wroteENCChannelConfigurationEncodeSurround2LtfRtfLtrRtr_2 wroteENCChannelConfigurationEncodeSurround2ATMOSMono_2(0xA)
1334 #define wroteENCChannelConfigurationEncodeSurround4LtmRtm_0 wroteENCChannelConfigurationEncodeSurround4ATMOSMono_0(0x4)
1335 #define wroteENCChannelConfigurationEncodeSurround4LtmRtm_1 wroteENCChannelConfigurationEncodeSurround4ATMOSMono_1(0x4)
1336 #define wroteENCChannelConfigurationEncodeSurround4LtmRtm_2 wroteENCChannelConfigurationEncodeSurround4ATMOSMono_2(0x4)
1338 #define wroteENCChannelConfigurationEncodeSurround2LwRwLtfRtfLtrRtr_0 wroteENCChannelConfigurationEncodeSurround2LwRwATMOSMono_0(0xA)
1339 #define wroteENCChannelConfigurationEncodeSurround2LwRwLtfRtfLtrRtr_1 wroteENCChannelConfigurationEncodeSurround2LwRwATMOSMono_1(0xA)
1340 #define wroteENCChannelConfigurationEncodeSurround2LwRwLtfRtfLtrRtr_2 wroteENCChannelConfigurationEncodeSurround2LwRwATMOSMono_2(0xA)
1342 #define wroteENCChannelConfigurationEncodeSurround4LtfRtfLtrRtr_0 wroteENCChannelConfigurationEncodeSurround4ATMOSMono_0(0xA)
1343 #define wroteENCChannelConfigurationEncodeSurround4LtfRtfLtrRtr_1 wroteENCChannelConfigurationEncodeSurround4ATMOSMono_1(0xA)
1344 #define wroteENCChannelConfigurationEncodeSurround4LtfRtfLtrRtr_2 wroteENCChannelConfigurationEncodeSurround4ATMOSMono_2(0xA)
1346 #define wroteENCChannelConfigurationEncodeSurround4LwRwLtfRtfLtrRtr_0 wroteENCChannelConfigurationEncodeSurround4LwRwATMOSMono_0(0xA)
1347 #define wroteENCChannelConfigurationEncodeSurround4LwRwLtfRtfLtrRtr_1 wroteENCChannelConfigurationEncodeSurround4LwRwATMOSMono_1(0xA)
1348 #define wroteENCChannelConfigurationEncodeSurround4LwRwLtfRtfLtrRtr_2 wroteENCChannelConfigurationEncodeSurround4LwRwATMOSMono_2(0xA)
1350 #define readENCChannelConfigurationEncodeATMOSChan         0xc200+STD_BETA_ENCODE,0x3500
1351 #define readENCChannelConfigurationEncodeATMOSMask         readENCChannelConfigurationEncodeATMOSChan
1352 #define wroteENCChannelConfigurationEncodeATMOSChanNone     0xca00+STD_BETA_ENCODE,0x3500
1353 #define wroteENCChannelConfigurationEncodeATMOSChanLfhRfhLrhRrh     0xca00+STD_BETA_ENCODE,(0x3511)//PAF_CC_EXTMASK_LfhRfh|PAF_CC_EXTMASK_LrhRrh
1354 #define wroteENCChannelConfigurationEncodeATMOSChanLtfRtfLtrRtr     0xca00+STD_BETA_ENCODE,(0x350a)//PAF_CC_EXTMASK_LtfRtf|PAF_CC_EXTMASK_LtrRtr
1355 #define wroteENCChannelConfigurationEncodeATMOSChanLtmRtm 0xca00+STD_BETA_ENCODE,(0x3504)//PAF_CC_EXTMASK_LtmRtm
1357 //-------------------------------------------------------------------------------------------------------------
1359 #define wroteENCChannelConfigurationEncode 0xcc00+STD_BETA_ENCODE,0x0030
1361 #define  readENCFrameLength 0xc300+STD_BETA_ENCODE,0x001c
1362 #define wroteENCFrameLength 0xcb00+STD_BETA_ENCODE,0x001c
1364 #define  readENCBypass          0xc200+STD_BETA_ENCODE,0x1e00
1365 #define writeENCBypassEnable    0xca00+STD_BETA_ENCODE,0x1e01
1366 #define writeENCBypassDisable   0xca00+STD_BETA_ENCODE,0x1e00
1368 #define  readENCByPass           readENCBypass 
1369 #define writeENCByPassEnable    writeENCBypassEnable
1370 #define writeENCByPassDisable   writeENCBypassDisable
1372 #define  readENCSelect          0xc200+STD_BETA_ENCODE,0x1f00
1373 #define writeENCSelectPCE       0xca00+STD_BETA_ENCODE,0x1f08
1374 #define writeENCSelectMPE       0xca00+STD_BETA_ENCODE,0x1f13
1375 #define writeENCSelectDDE       0xca00+STD_BETA_ENCODE,0x1f0a
1376 #define writeENCSelectDTE       0xca00+STD_BETA_ENCODE,0x1f06
1377 #define writeENCSelectACE       0xca00+STD_BETA_ENCODE,0x1f0c
1378 #define wroteENCSelectPCE       0xca00+STD_BETA_ENCODE,0x1f08
1379 #define wroteENCSelectMPE       0xca00+STD_BETA_ENCODE,0x1f13
1380 #define wroteENCSelectDDE       0xca00+STD_BETA_ENCODE,0x1f0a
1381 #define wroteENCSelectDTE       0xca00+STD_BETA_ENCODE,0x1f06
1382 #define wroteENCSelectACE       0xca00+STD_BETA_ENCODE,0x1f0c
1384 #if PAF_MAXNUMCHAN==8
1386 #define  readENCChannelMapFrom 0xc600+STD_BETA_ENCODE,0x4008
1387 #define wroteENCChannelMapFrom 0xce00+STD_BETA_ENCODE,0x4008
1388 #define writeENCChannelMapFrom8(N0,N1,N2,N3,N4,N5,N6,N7) \
1389     0xce00+STD_BETA_ENCODE,0x4008,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7)
1391 #define  readENCChannelMapTo 0xc600+STD_BETA_ENCODE,0x4808
1392 #define wroteENCChannelMapTo 0xce00+STD_BETA_ENCODE,0x4808
1393 #define writeENCChannelMapTo2(N0,N1) \
1394     0xce00+STD_BETA_ENCODE,0x4802,TWOUP(N0,N1)
1395 #define writeENCChannelMapTo8(N0,N1,N2,N3,N4,N5,N6,N7) \
1396     0xce00+STD_BETA_ENCODE,0x4808,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7)
1397         
1398 #define  readENCProgramFormat 0xc400+STD_BETA_ENCODE,0x0050
1399 #define wroteENCProgramFormat 0xcc00+STD_BETA_ENCODE,0x0050
1400 #define  readENCListeningFormat 0xc400+STD_BETA_ENCODE,0x0058
1401 #define wroteENCListeningFormat 0xcc00+STD_BETA_ENCODE,0x0058
1403 #define  readENCSampleProcess 0xc600+STD_BETA_ENCODE,0x6004
1404 #define  readENCSampleProcess0 0xc200+STD_BETA_ENCODE,0x6000
1405 #define  readENCSampleProcess1 0xc200+STD_BETA_ENCODE,0x6000
1406 #define  readENCSampleProcess2 0xc200+STD_BETA_ENCODE,0x6000
1407 #define  readENCSampleProcess3 0xc200+STD_BETA_ENCODE,0x6000
1409 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
1410 #define writeENCChannelConfigurationCompact(sat,sub,aux,ext0) \
1411     0xce00+STD_BETA_ENCODE,0x6804,((sub<<8)+sat),((ext0<<8)+aux)
1413 #define  readENCChannelCompactMapTo 0xc600+STD_BETA_ENCODE,0x7008
1414 #define wroteENCChannelCompactMapTo 0xce00+STD_BETA_ENCODE,0x7008
1416 #elif PAF_MAXNUMCHAN==16
1418 #define  readENCChannelMapFrom 0xc600+STD_BETA_ENCODE,0x4010
1419 #define wroteENCChannelMapFrom 0xce00+STD_BETA_ENCODE,0x4010
1420 #define writeENCChannelMapFrom16(N0,N1,N2,N3,N4,N5,N6,N7,N8,N9,Na,Nb,Nc,Nd,Ne,Nf) \
1421     0xce00+STD_BETA_ENCODE,0x4010,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7), \
1422         TWOUP(N8,N9),TWOUP(Na,Nb),TWOUP(Nc,Nd),TWOUP(Ne,Nf)
1424 #define  readENCChannelMapTo 0xc600+STD_BETA_ENCODE,0x5010
1425 #define wroteENCChannelMapTo 0xce00+STD_BETA_ENCODE,0x5010
1426 #define writeENCChannelMapTo2(N0,N1) \
1427     0xce00+STD_BETA_ENCODE,0x5002,TWOUP(N0,N1)
1428 #define writeENCChannelMapTo8(N0,N1,N2,N3,N4,N5,N6,N7) \
1429     0xce00+STD_BETA_ENCODE,0x5008,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7)
1430 #define writeENCChannelMapTo16(N0,N1,N2,N3,N4,N5,N6,N7,N8,N9,Na,Nb,Nc,Nd,Ne,Nf) \
1431     0xce00+STD_BETA_ENCODE,0x5010,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7), \
1432         TWOUP(N8,N9),TWOUP(Na,Nb),TWOUP(Nc,Nd),TWOUP(Ne,Nf)
1434 #define  readENCProgramFormat 0xc400+STD_BETA_ENCODE,0x0060
1435 #define wroteENCProgramFormat 0xcc00+STD_BETA_ENCODE,0x0060
1436 #define  readENCListeningFormat 0xc400+STD_BETA_ENCODE,0x0070
1437 #define wroteENCListeningFormat 0xcc00+STD_BETA_ENCODE,0x0070
1439 #define  readENCSampleProcess 0xc600+STD_BETA_ENCODE,0x8004
1440 #define  readENCSampleProcess0 0xc200+STD_BETA_ENCODE,0x8000
1441 #define  readENCSampleProcess1 0xc200+STD_BETA_ENCODE,0x8100
1442 #define  readENCSampleProcess2 0xc200+STD_BETA_ENCODE,0x8200
1443 #define  readENCSampleProcess3 0xc200+STD_BETA_ENCODE,0x8300
1445 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
1446 #define writeENCChannelConfigurationCompact(sat,sub,aux,ext0,ext2,ext3,rsvd1,rsvd2) \
1447     0xce00+STD_BETA_ENCODE,0x8808,((sub<<8)+sat),((ext0<<8)+aux),((ext3<<8)+ext2),0x0000
1449 #define  readENCChannelCompactMapTo 0xc600+STD_BETA_ENCODE,0x9010
1450 #define wroteENCChannelCompactMapTo 0xce00+STD_BETA_ENCODE,0x9010
1452 #elif PAF_MAXNUMCHAN ==32
1454 #define  readENCChannelMapFrom 0xc600+STD_BETA_ENCODE,0x4020
1455 #define wroteENCChannelMapFrom 0xce00+STD_BETA_ENCODE,0x4020
1456 #define writeENCChannelMapFrom16(N0,N1,N2,N3,N4,N5,N6,N7,N8,N9,Na,Nb,Nc,Nd,Ne,Nf) \
1457     0xce00+STD_BETA_ENCODE,0x4010,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7), \
1458         TWOUP(N8,N9),TWOUP(Na,Nb),TWOUP(Nc,Nd),TWOUP(Ne,Nf)
1459 #define writeENCChannelMapFrom32(N0,N1,N2,N3,N4,N5,N6,N7,N8,N9,Na,Nb,Nc,Nd,Ne,Nf,N10,N11,N12,N13,N14,N15,N16,N17,N18,N19,N1a,N1b,N1c,N1d,N1e,N1f) \
1460     0xce00+STD_BETA_ENCODE,0x4020,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7), \
1461         TWOUP(N8,N9),TWOUP(Na,Nb),TWOUP(Nc,Nd),TWOUP(Ne,Nf), \
1462                 TWOUP(N10,N11),TWOUP(N12,N13),TWOUP(N14,N15),TWOUP(N16,N17), \
1463         TWOUP(N18,N19),TWOUP(N1a,N1b),TWOUP(N1c,N1d),TWOUP(N1e,N1f)
1465 #define  readENCChannelMapTo 0xc600+STD_BETA_ENCODE,0x6020
1466 #define wroteENCChannelMapTo 0xce00+STD_BETA_ENCODE,0x6020
1467 #define writeENCChannelMapTo2(N0,N1) \
1468     0xce00+STD_BETA_ENCODE,0x6002,TWOUP(N0,N1)
1469 #define writeENCChannelMapTo8(N0,N1,N2,N3,N4,N5,N6,N7) \
1470     0xce00+STD_BETA_ENCODE,0x6008,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7)
1471 #define writeENCChannelMapTo16(N0,N1,N2,N3,N4,N5,N6,N7,N8,N9,Na,Nb,Nc,Nd,Ne,Nf) \
1472     0xce00+STD_BETA_ENCODE,0x6010,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7), \
1473         TWOUP(N8,N9),TWOUP(Na,Nb),TWOUP(Nc,Nd),TWOUP(Ne,Nf)
1474                 
1475 #define writeENCChannelMapTo32(N0,N1,N2,N3,N4,N5,N6,N7,N8,N9,Na,Nb,Nc,Nd,Ne,Nf,N10,N11,N12,N13,N14,N15,N16,N17,N18,N19,N1a,N1b,N1c,N1d,N1e,N1f) \
1476     0xce00+STD_BETA_ENCODE,0x6020,TWOUP(N0,N1),TWOUP(N2,N3),TWOUP(N4,N5),TWOUP(N6,N7), \
1477         TWOUP(N8,N9),TWOUP(Na,Nb),TWOUP(Nc,Nd),TWOUP(Ne,Nf), \
1478                 TWOUP(N10,N11),TWOUP(N12,N13),TWOUP(N14,N15),TWOUP(N16,N17), \
1479         TWOUP(N18,N19),TWOUP(N1a,N1b),TWOUP(N1c,N1d),TWOUP(N1e,N1f)
1481 #define  readENCProgramFormat 0xc400+STD_BETA_ENCODE,0x0080
1482 #define wroteENCProgramFormat 0xcc00+STD_BETA_ENCODE,0x0080
1483 #define  readENCListeningFormat 0xc400+STD_BETA_ENCODE,0x0088
1484 #define wroteENCListeningFormat 0xcc00+STD_BETA_ENCODE,0x0088
1486 #define  readENCSampleProcess 0xc600+STD_BETA_ENCODE,0x9004
1487 #define  readENCSampleProcess0 0xc200+STD_BETA_ENCODE,0x9000
1488 #define  readENCSampleProcess1 0xc200+STD_BETA_ENCODE,0x9100
1489 #define  readENCSampleProcess2 0xc200+STD_BETA_ENCODE,0x9200
1490 #define  readENCSampleProcess3 0xc200+STD_BETA_ENCODE,0x9300
1492 // PAF_ChannelConfiguration [sub][sat],[extMask][aux],[extMask3][extMask2],[reserved2][reserved1]
1493 #define writeENCChannelConfigurationCompact(sat,sub,aux,ext0,ext2,ext3,rsvd1,rsvd2) \
1494     0xce00+STD_BETA_ENCODE,0x9808,((sub<<8)+sat),((ext0<<8)+aux),((ext3<<8)+ext2),0x0000
1496 #define  readENCChannelCompactMapTo 0xc600+STD_BETA_ENCODE,0xa020
1497 #define wroteENCChannelCompactMapTo 0xce00+STD_BETA_ENCODE,0xa020
1499 #else
1501 #error unsupported option
1503 #endif /* PAF_MAXNUMCHAN */
1505 #define  readENCStatus 0xc508,STD_BETA_ENCODE
1506 #define  readENCControl \
1507          readENCMode, \
1508          readENCChannelConfigurationRequest, \
1509          readENCChannelMapFrom, \
1510          readENCChannelMapTo
1512 // binary operations
1514 #define  rb32ENCSampleRate 0xc000+STD_BETA_ENCODE,0x0649
1515 #define  rb32ENCChannelConfigurationStream 0xc000+STD_BETA_ENCODE,0x2844
1517 #endif /* _PAFENC_A */