| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2006-2012, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bape_mixer.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/12 $ |
|---|
| 12 | * $brcm_Date: 3/7/12 4:35p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: Audio Mixer Interface |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/ape/7422/bape_mixer.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/12 3/7/12 4:35p jgarrett |
|---|
| 21 | * SW7435-24: Adding DSP index for decode and dsp mixer |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/11 12/2/11 3:18p jgarrett |
|---|
| 24 | * SW7346-578: Adding ability to change some mixer settings without |
|---|
| 25 | * destroying and re-creating the mixer |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/10 8/25/11 1:48p gskerl |
|---|
| 28 | * SW7425-1119: Removed obsolete prototype for |
|---|
| 29 | * BAPE_Mixer_GetLoopbackInputPort |
|---|
| 30 | * |
|---|
| 31 | * Hydra_Software_Devel/9 8/17/11 3:37p gskerl |
|---|
| 32 | * SW7425-1119: Added prototypes for BAPE_Mixer_Start() and |
|---|
| 33 | * BAPE_Mixer_Stop() |
|---|
| 34 | * |
|---|
| 35 | * Hydra_Software_Devel/8 7/8/11 4:24p gskerl |
|---|
| 36 | * SW7552-72: Added support for NCO/Mclkgen audio clock sources |
|---|
| 37 | * |
|---|
| 38 | * Hydra_Software_Devel/7 6/3/11 6:41p jgarrett |
|---|
| 39 | * SW7425-406: Adding BAPE_Mixer_GetConnector routines |
|---|
| 40 | * |
|---|
| 41 | * Hydra_Software_Devel/6 2/22/11 5:43p jgarrett |
|---|
| 42 | * SW7422-146: Implemented type renaming based on filter graph review |
|---|
| 43 | * comments |
|---|
| 44 | * |
|---|
| 45 | * Hydra_Software_Devel/5 1/10/11 5:19p jgarrett |
|---|
| 46 | * SW7422-146: Adding ramp step APIs |
|---|
| 47 | * |
|---|
| 48 | * Hydra_Software_Devel/4 12/17/10 3:58p jgarrett |
|---|
| 49 | * SW7422-146: Nexus APE integration on 7422 |
|---|
| 50 | * |
|---|
| 51 | * Hydra_Software_Devel/3 12/16/10 4:04p jgarrett |
|---|
| 52 | * SW7422-146: Initial compilable APE for 7422 |
|---|
| 53 | * |
|---|
| 54 | * Hydra_Software_Devel/2 12/14/10 2:39p jgarrett |
|---|
| 55 | * SW7422-146: Renaming MixerOutput to OutputPort |
|---|
| 56 | * |
|---|
| 57 | * Hydra_Software_Devel/1 12/14/10 2:16p jgarrett |
|---|
| 58 | * SW7422-146: Adding initial API for APE/DSP |
|---|
| 59 | * |
|---|
| 60 | ***************************************************************************/ |
|---|
| 61 | |
|---|
| 62 | #ifndef BAPE_MIXER_H_ |
|---|
| 63 | #define BAPE_MIXER_H_ |
|---|
| 64 | |
|---|
| 65 | #include "bavc.h" |
|---|
| 66 | |
|---|
| 67 | /*************************************************************************** |
|---|
| 68 | Summary: |
|---|
| 69 | Mixer Handle |
|---|
| 70 | ***************************************************************************/ |
|---|
| 71 | typedef struct BAPE_Mixer *BAPE_MixerHandle; |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | /*************************************************************************** |
|---|
| 75 | Summary: |
|---|
| 76 | Mixer Types |
|---|
| 77 | ***************************************************************************/ |
|---|
| 78 | typedef enum BAPE_MixerType |
|---|
| 79 | { |
|---|
| 80 | BAPE_MixerType_eStandard, /* Mixing and sample rate conversion are permitted */ |
|---|
| 81 | BAPE_MixerType_eDsp, /* Mix using the DSP/Firmware and not the FMM */ |
|---|
| 82 | BAPE_MixerType_eMax |
|---|
| 83 | } BAPE_MixerType; |
|---|
| 84 | |
|---|
| 85 | /*************************************************************************** |
|---|
| 86 | Summary: |
|---|
| 87 | Mixer Settings |
|---|
| 88 | ***************************************************************************/ |
|---|
| 89 | typedef struct BAPE_MixerSettings |
|---|
| 90 | { |
|---|
| 91 | BAPE_MixerType type; /* Type of mixer. This can only be set while creating |
|---|
| 92 | a mixer and not changed afterward. */ |
|---|
| 93 | |
|---|
| 94 | unsigned mixerSampleRate; /* Output rate of this mixer if it is fixed. |
|---|
| 95 | Default = 0, which will slave to the master input |
|---|
| 96 | sample rate */ |
|---|
| 97 | |
|---|
| 98 | unsigned defaultSampleRate; /* If there is no master input or the |
|---|
| 99 | master input is not started, the |
|---|
| 100 | sample rate specified here will be |
|---|
| 101 | applied to all outputs. Ignored if mixerSampleRate |
|---|
| 102 | has been set. */ |
|---|
| 103 | |
|---|
| 104 | unsigned dspIndex; /* Index of the DSP you would like to use. Default = 0. |
|---|
| 105 | Applies to DSP mixers only. */ |
|---|
| 106 | |
|---|
| 107 | BAPE_Pll outputPll; /* Which output PLL will be used with this mixer. |
|---|
| 108 | It's usage depends on the type of outputs |
|---|
| 109 | connected to the mixer. If the mixer has |
|---|
| 110 | only DAC outputs, then outputPll is not used. |
|---|
| 111 | Otherwise, if the mixer has any I2S or Spdif |
|---|
| 112 | outputs, then outputPll specifies the PLL to |
|---|
| 113 | be used as the mixer's timing source. |
|---|
| 114 | Otherwise (no DACS, I2S, or Spdif outputs), |
|---|
| 115 | outputPll specifies the PLL to use when: |
|---|
| 116 | 1) there is not another mixer with matching inputs |
|---|
| 117 | and settings that has a DAC output whose |
|---|
| 118 | clock can be used for the timing source, |
|---|
| 119 | and 2) a valid outputNco has not been |
|---|
| 120 | specified. |
|---|
| 121 | |
|---|
| 122 | Strongly recommended for I2S and SPDIF outputs. |
|---|
| 123 | Independent PLLs should be used if their |
|---|
| 124 | input clock (VCXO) is different or if their |
|---|
| 125 | sample rate is not an integer multiple of |
|---|
| 126 | other rates driven by the PLL. This cannot |
|---|
| 127 | be changed while inputs are running. |
|---|
| 128 | |
|---|
| 129 | Setting this field to BAPE_Pll_eMax will |
|---|
| 130 | prevent this mixer from using a PLL as a |
|---|
| 131 | timing source. */ |
|---|
| 132 | |
|---|
| 133 | BAPE_Nco outputNco; /* Which output NCO will be used with this mixer. |
|---|
| 134 | It's usage depends on the type of outputs |
|---|
| 135 | connected to the mixer. If the mixer has |
|---|
| 136 | only DAC outputs, then outputNco is not used. |
|---|
| 137 | Otherwise, if the mixer has any I2S or Spdif |
|---|
| 138 | outputs, then outputNco specifies the NCO to |
|---|
| 139 | be used as the mixer's timing source unless |
|---|
| 140 | outputPll specifies a valid PLL. Otherwise |
|---|
| 141 | (no DACS, I2S, or Spdif outputs), then |
|---|
| 142 | outputNco specifies the NCO to use for the |
|---|
| 143 | timing source. |
|---|
| 144 | |
|---|
| 145 | Recommended for use when a mixer only has MAI, |
|---|
| 146 | DummyOutput, and/or OutputCapture outputs |
|---|
| 147 | (if the current chip has an audio NCO). |
|---|
| 148 | |
|---|
| 149 | Independent NCOs should be used if their |
|---|
| 150 | input clock (timebase) is different. This |
|---|
| 151 | cannot be changed while inputs are running. |
|---|
| 152 | |
|---|
| 153 | This field's default value is BAPE_Nco_eMax, |
|---|
| 154 | which prevents the mixer from using an |
|---|
| 155 | NCO for a timing source. */ |
|---|
| 156 | |
|---|
| 157 | BAVC_Timebase outputTimebase; /* What timebase will be used to drive |
|---|
| 158 | any DAC outputs connected to this mixer. |
|---|
| 159 | Timebase input to the VCXO Rate Manager |
|---|
| 160 | must be programmed externally by the |
|---|
| 161 | application. This cannot be changed while |
|---|
| 162 | inputs are running. */ |
|---|
| 163 | |
|---|
| 164 | unsigned outputDelay; /* Delay for connected outputs (in ms). Currently, applies to decoder |
|---|
| 165 | inputs only. */ |
|---|
| 166 | |
|---|
| 167 | } BAPE_MixerSettings; |
|---|
| 168 | |
|---|
| 169 | /*************************************************************************** |
|---|
| 170 | Summary: |
|---|
| 171 | Get Default Mixer Settings |
|---|
| 172 | ***************************************************************************/ |
|---|
| 173 | void BAPE_Mixer_GetDefaultSettings( |
|---|
| 174 | BAPE_MixerSettings *pSettings /* [out] */ |
|---|
| 175 | ); |
|---|
| 176 | |
|---|
| 177 | /*************************************************************************** |
|---|
| 178 | Summary: |
|---|
| 179 | Open a mixer |
|---|
| 180 | ***************************************************************************/ |
|---|
| 181 | BERR_Code BAPE_Mixer_Create( |
|---|
| 182 | BAPE_Handle deviceHandle, |
|---|
| 183 | const BAPE_MixerSettings *pSettings, |
|---|
| 184 | BAPE_MixerHandle *pHandle /* [out] */ |
|---|
| 185 | ); |
|---|
| 186 | |
|---|
| 187 | /*************************************************************************** |
|---|
| 188 | Summary: |
|---|
| 189 | Close a mixer |
|---|
| 190 | ***************************************************************************/ |
|---|
| 191 | void BAPE_Mixer_Destroy( |
|---|
| 192 | BAPE_MixerHandle handle |
|---|
| 193 | ); |
|---|
| 194 | |
|---|
| 195 | /*************************************************************************** |
|---|
| 196 | Summary: |
|---|
| 197 | Get Current Mixer Settings |
|---|
| 198 | ***************************************************************************/ |
|---|
| 199 | void BAPE_Mixer_GetSettings( |
|---|
| 200 | BAPE_MixerHandle hMixer, |
|---|
| 201 | BAPE_MixerSettings *pSettings /* [out] */ |
|---|
| 202 | ); |
|---|
| 203 | |
|---|
| 204 | /*************************************************************************** |
|---|
| 205 | Summary: |
|---|
| 206 | Set Mixer Settings |
|---|
| 207 | |
|---|
| 208 | Description: |
|---|
| 209 | This call can only be made while all inputs to a mixer are stopped and |
|---|
| 210 | the mixer itself is stopped (meaning BAPE_Mixer_Start has not been called). |
|---|
| 211 | Attempts to change on the fly will return an error and the new settings will |
|---|
| 212 | not be saved. |
|---|
| 213 | |
|---|
| 214 | See Also: |
|---|
| 215 | BAPE_Mixer_GetSettings |
|---|
| 216 | ***************************************************************************/ |
|---|
| 217 | BERR_Code BAPE_Mixer_SetSettings( |
|---|
| 218 | BAPE_MixerHandle hMixer, |
|---|
| 219 | const BAPE_MixerSettings *pSettings |
|---|
| 220 | ); |
|---|
| 221 | |
|---|
| 222 | /*************************************************************************** |
|---|
| 223 | Summary: |
|---|
| 224 | Start a mixer |
|---|
| 225 | |
|---|
| 226 | Description: |
|---|
| 227 | This call is optional. By default, mixers will automatically start when |
|---|
| 228 | The first input starts, but if you want to explicitly enable the mixer |
|---|
| 229 | earlier call this function prior to starting any inputs. |
|---|
| 230 | ***************************************************************************/ |
|---|
| 231 | BERR_Code BAPE_Mixer_Start( |
|---|
| 232 | BAPE_MixerHandle handle |
|---|
| 233 | ); |
|---|
| 234 | |
|---|
| 235 | /*************************************************************************** |
|---|
| 236 | Summary: |
|---|
| 237 | Stop a mixer |
|---|
| 238 | |
|---|
| 239 | Description: |
|---|
| 240 | This call is required only if you call BAPE_Mixer_Start(). By default, |
|---|
| 241 | mixers will automatically stop when the last input stops, but if you |
|---|
| 242 | have explicitly started the mixer via BAPE_Mixer_Start() you must call |
|---|
| 243 | this routine to stop it after all inputs have stopped. |
|---|
| 244 | ***************************************************************************/ |
|---|
| 245 | void BAPE_Mixer_Stop( |
|---|
| 246 | BAPE_MixerHandle handle |
|---|
| 247 | ); |
|---|
| 248 | |
|---|
| 249 | /*************************************************************************** |
|---|
| 250 | Summary: |
|---|
| 251 | Get a data path connector to cascade a mixer to other audio components |
|---|
| 252 | ***************************************************************************/ |
|---|
| 253 | void BAPE_Mixer_GetConnector( |
|---|
| 254 | BAPE_MixerHandle handle, |
|---|
| 255 | BAPE_Connector *pConnector /* [out] */ |
|---|
| 256 | ); |
|---|
| 257 | |
|---|
| 258 | /*************************************************************************** |
|---|
| 259 | Summary: |
|---|
| 260 | Mixer Input Settings |
|---|
| 261 | ***************************************************************************/ |
|---|
| 262 | typedef struct BAPE_MixerAddInputSettings |
|---|
| 263 | { |
|---|
| 264 | bool sampleRateMaster; /* If true, this will be the master input for sample rate purposes */ |
|---|
| 265 | bool convertSampleRate; /* For DSP mixers, this input must be sample-rate converted to |
|---|
| 266 | match the mixed sample rate. Ignored on other mixer types. */ |
|---|
| 267 | } BAPE_MixerAddInputSettings; |
|---|
| 268 | |
|---|
| 269 | /*************************************************************************** |
|---|
| 270 | Summary: |
|---|
| 271 | Get Default Mixer Input Settings |
|---|
| 272 | ***************************************************************************/ |
|---|
| 273 | void BAPE_Mixer_GetDefaultAddInputSettings( |
|---|
| 274 | BAPE_MixerAddInputSettings *pSettings /* [out] */ |
|---|
| 275 | ); |
|---|
| 276 | |
|---|
| 277 | /*************************************************************************** |
|---|
| 278 | Summary: |
|---|
| 279 | Add Mixer Input |
|---|
| 280 | |
|---|
| 281 | Description: |
|---|
| 282 | Inputs to a mixer can not be modified while any previously connected |
|---|
| 283 | inputs are running. |
|---|
| 284 | ***************************************************************************/ |
|---|
| 285 | BERR_Code BAPE_Mixer_AddInput( |
|---|
| 286 | BAPE_MixerHandle handle, |
|---|
| 287 | BAPE_Connector input, |
|---|
| 288 | const BAPE_MixerAddInputSettings *pSettings /* Optional, pass NULL for default settings */ |
|---|
| 289 | ); |
|---|
| 290 | |
|---|
| 291 | /*************************************************************************** |
|---|
| 292 | Summary: |
|---|
| 293 | Remove Mixer Input |
|---|
| 294 | |
|---|
| 295 | Description: |
|---|
| 296 | Inputs to a mixer can not be modified while any previously connected |
|---|
| 297 | inputs are running. |
|---|
| 298 | ***************************************************************************/ |
|---|
| 299 | BERR_Code BAPE_Mixer_RemoveInput( |
|---|
| 300 | BAPE_MixerHandle handle, |
|---|
| 301 | BAPE_Connector input |
|---|
| 302 | ); |
|---|
| 303 | |
|---|
| 304 | /*************************************************************************** |
|---|
| 305 | Summary: |
|---|
| 306 | Remove All Mixer Inputs |
|---|
| 307 | |
|---|
| 308 | Description: |
|---|
| 309 | Inputs to a mixer can not be modified while any previously connected |
|---|
| 310 | inputs are running. |
|---|
| 311 | ***************************************************************************/ |
|---|
| 312 | BERR_Code BAPE_Mixer_RemoveAllInputs( |
|---|
| 313 | BAPE_MixerHandle handle |
|---|
| 314 | ); |
|---|
| 315 | |
|---|
| 316 | /*************************************************************************** |
|---|
| 317 | Summary: |
|---|
| 318 | Add Mixer Output |
|---|
| 319 | |
|---|
| 320 | Description: |
|---|
| 321 | Outputs from a mixer can not be modified while any previously connected |
|---|
| 322 | inputs are running. |
|---|
| 323 | ***************************************************************************/ |
|---|
| 324 | BERR_Code BAPE_Mixer_AddOutput( |
|---|
| 325 | BAPE_MixerHandle handle, |
|---|
| 326 | BAPE_OutputPort output |
|---|
| 327 | ); |
|---|
| 328 | |
|---|
| 329 | /*************************************************************************** |
|---|
| 330 | Summary: |
|---|
| 331 | Remove Mixer Output |
|---|
| 332 | |
|---|
| 333 | Description: |
|---|
| 334 | Outputs from a mixer can not be modified while any previously connected |
|---|
| 335 | inputs are running. |
|---|
| 336 | ***************************************************************************/ |
|---|
| 337 | BERR_Code BAPE_Mixer_RemoveOutput( |
|---|
| 338 | BAPE_MixerHandle handle, |
|---|
| 339 | BAPE_OutputPort output |
|---|
| 340 | ); |
|---|
| 341 | |
|---|
| 342 | /*************************************************************************** |
|---|
| 343 | Summary: |
|---|
| 344 | Remove All Mixer Outputs |
|---|
| 345 | |
|---|
| 346 | Description: |
|---|
| 347 | Outputs from a mixer can not be modified while any previously connected |
|---|
| 348 | inputs are running. |
|---|
| 349 | ***************************************************************************/ |
|---|
| 350 | BERR_Code BAPE_Mixer_RemoveAllOutputs( |
|---|
| 351 | BAPE_MixerHandle handle |
|---|
| 352 | ); |
|---|
| 353 | |
|---|
| 354 | /*************************************************************************** |
|---|
| 355 | Summary: |
|---|
| 356 | Input Volume Settings |
|---|
| 357 | ***************************************************************************/ |
|---|
| 358 | typedef struct BAPE_MixerInputVolume |
|---|
| 359 | { |
|---|
| 360 | int32_t coefficients[BAPE_Channel_eMax][BAPE_Channel_eMax]; /* Entries in this table reflect scaling from the input channel to the output channel. |
|---|
| 361 | The first index is the input channel and the second index is the output channel. |
|---|
| 362 | Default is to have BAPE_VOLUME_NORMAL for each [n][n] coefficient and |
|---|
| 363 | BAPE_VOLUME_MIN for all others. This maps input channels to the same output channel |
|---|
| 364 | with no scaling. You can achieve effects such as a mono mix with these coefficients |
|---|
| 365 | if desired by setting [Left][Left] to BAPE_VOLUME_NORMAL/2 and [Left][Right] to |
|---|
| 366 | BAPE_VOLUME_NORMAL/2, etc. Mixing is only permitted between channels in the |
|---|
| 367 | same channel pair, so for example you can blend left and right, but not left and |
|---|
| 368 | center. Values are specified in 5.23 2' complement integers. These settings |
|---|
| 369 | are ignored for compressed inputs. */ |
|---|
| 370 | uint32_t coefficientRamp; /* The 23 LSB of this field is the fractional part and the bit[26:23] MSB is the integer part. |
|---|
| 371 | e.g. 0x800000 = 1, 0x400000 = 0.5 */ |
|---|
| 372 | bool muted; /* Mute input data if true */ |
|---|
| 373 | } BAPE_MixerInputVolume; |
|---|
| 374 | |
|---|
| 375 | /*************************************************************************** |
|---|
| 376 | Summary: |
|---|
| 377 | Get Input Volume Settings |
|---|
| 378 | ***************************************************************************/ |
|---|
| 379 | BERR_Code BAPE_Mixer_GetInputVolume( |
|---|
| 380 | BAPE_MixerHandle mixer, |
|---|
| 381 | BAPE_Connector input, |
|---|
| 382 | BAPE_MixerInputVolume *pVolume /* [out] */ |
|---|
| 383 | ); |
|---|
| 384 | |
|---|
| 385 | /*************************************************************************** |
|---|
| 386 | Summary: |
|---|
| 387 | Set Input Volume Settings |
|---|
| 388 | |
|---|
| 389 | Description: |
|---|
| 390 | Because inputs can be connected to more than one mixer, input volume is not |
|---|
| 391 | persistent after an input is removed from a mixer. |
|---|
| 392 | ***************************************************************************/ |
|---|
| 393 | BERR_Code BAPE_Mixer_SetInputVolume( |
|---|
| 394 | BAPE_MixerHandle mixer, |
|---|
| 395 | BAPE_Connector input, |
|---|
| 396 | const BAPE_MixerInputVolume *pVolume |
|---|
| 397 | ); |
|---|
| 398 | |
|---|
| 399 | /*************************************************************************** |
|---|
| 400 | Summary: |
|---|
| 401 | Output Volume Settings |
|---|
| 402 | ***************************************************************************/ |
|---|
| 403 | typedef struct BAPE_OutputVolume |
|---|
| 404 | { |
|---|
| 405 | uint32_t volume[BAPE_Channel_eMax]; /* Output volume scaling per output channel. Default is BAPE_VOLUME_NORMAL for all channels. |
|---|
| 406 | Ignored for compressed data. Values are specified in 5.23 integers, so 0x800000 corresponds |
|---|
| 407 | to unity (BAPE_VOLUME_NORMAL). */ |
|---|
| 408 | bool muted; /* Mute all output channels if true. */ |
|---|
| 409 | } BAPE_OutputVolume; |
|---|
| 410 | |
|---|
| 411 | /*************************************************************************** |
|---|
| 412 | Summary: |
|---|
| 413 | Get Output Volume Settings |
|---|
| 414 | ***************************************************************************/ |
|---|
| 415 | BERR_Code BAPE_GetOutputVolume( |
|---|
| 416 | BAPE_OutputPort output, |
|---|
| 417 | BAPE_OutputVolume *pVolume /* [out] */ |
|---|
| 418 | ); |
|---|
| 419 | |
|---|
| 420 | /*************************************************************************** |
|---|
| 421 | Summary: |
|---|
| 422 | Set Output Volume Settings |
|---|
| 423 | |
|---|
| 424 | Description: |
|---|
| 425 | Output volume settings are persistent and will remain set even when |
|---|
| 426 | outputs are added/removed from mixers. |
|---|
| 427 | ***************************************************************************/ |
|---|
| 428 | BERR_Code BAPE_SetOutputVolume( |
|---|
| 429 | BAPE_OutputPort output, |
|---|
| 430 | const BAPE_OutputVolume *pVolume |
|---|
| 431 | ); |
|---|
| 432 | |
|---|
| 433 | /*************************************************************************** |
|---|
| 434 | Summary: |
|---|
| 435 | Output Delay Status |
|---|
| 436 | ***************************************************************************/ |
|---|
| 437 | typedef struct BAPE_OutputDelayStatus |
|---|
| 438 | { |
|---|
| 439 | unsigned pathDelay; /* Path delay of all inputs to this output (in ms) */ |
|---|
| 440 | unsigned additionalDelay; /* Delay added in BAPE_MixerSettings (in ms) */ |
|---|
| 441 | } BAPE_OutputDelayStatus; |
|---|
| 442 | |
|---|
| 443 | /*************************************************************************** |
|---|
| 444 | Summary: |
|---|
| 445 | Get Output Delay Status for lipsync purposes |
|---|
| 446 | ***************************************************************************/ |
|---|
| 447 | void BAPE_GetOutputDelayStatus( |
|---|
| 448 | BAPE_OutputPort output, |
|---|
| 449 | BAPE_OutputDelayStatus *pStatus /* [out] */ |
|---|
| 450 | ); |
|---|
| 451 | |
|---|
| 452 | /*************************************************************************** |
|---|
| 453 | Summary: |
|---|
| 454 | Get Output Volume Ramp Step |
|---|
| 455 | ***************************************************************************/ |
|---|
| 456 | void BAPE_GetOutputVolumeRampStep( |
|---|
| 457 | BAPE_Handle deviceHandle, |
|---|
| 458 | uint32_t *pRampStep /* All mixers output volume is changed by this amount |
|---|
| 459 | every Fs while ramping. Specified in 4.23 format. |
|---|
| 460 | Ignored for compressed data. */ |
|---|
| 461 | ); |
|---|
| 462 | |
|---|
| 463 | /*************************************************************************** |
|---|
| 464 | Summary: |
|---|
| 465 | Set Output Volume Ramp Step |
|---|
| 466 | ***************************************************************************/ |
|---|
| 467 | BERR_Code BAPE_SetOutputVolumeRampStep( |
|---|
| 468 | BAPE_Handle deviceHandle, |
|---|
| 469 | uint32_t rampStep /* All mixers output volume is changed by this amount |
|---|
| 470 | every Fs while ramping. Specified in 4.23 format. |
|---|
| 471 | Ignored for compressed data. */ |
|---|
| 472 | ); |
|---|
| 473 | |
|---|
| 474 | /*************************************************************************** |
|---|
| 475 | Summary: |
|---|
| 476 | Get Sample Rate Converter Volume Ramp Step |
|---|
| 477 | ***************************************************************************/ |
|---|
| 478 | void BAPE_GetSampleRateConverterRampStep( |
|---|
| 479 | BAPE_Handle deviceHandle, |
|---|
| 480 | uint32_t *pRampStep /* All sample rate converters volume is changed by this amount |
|---|
| 481 | every Fs while ramping. Specified in 4.23 format. |
|---|
| 482 | Ignored for compressed data. */ |
|---|
| 483 | ); |
|---|
| 484 | |
|---|
| 485 | /*************************************************************************** |
|---|
| 486 | Summary: |
|---|
| 487 | Set Sample Rate Converter Volume Ramp Step |
|---|
| 488 | ***************************************************************************/ |
|---|
| 489 | BERR_Code BAPE_SetSampleRateConverterRampStep( |
|---|
| 490 | BAPE_Handle deviceHandle, |
|---|
| 491 | uint32_t rampStep /* All sample rate converters volume is changed by this amount |
|---|
| 492 | every Fs while ramping. Specified in 4.23 format. |
|---|
| 493 | Ignored for compressed data. */ |
|---|
| 494 | ); |
|---|
| 495 | |
|---|
| 496 | #endif /* #ifndef BAPE_MIXER_H_ */ |
|---|
| 497 | |
|---|