blob: 0f6b0734ff99509a0fc62f07c6efb377e2f01422 [file] [log] [blame]
Jean-Michel Triviac12fb02012-03-06 08:52:14 -08001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_EFFECT_DOWNMIX_H_
18#define ANDROID_EFFECT_DOWNMIX_H_
19
20#include <hardware/audio_effect.h>
21
22#if __cplusplus
23extern "C" {
24#endif
25
26#define EFFECT_UIID_DOWNMIX__ { 0x381e49cc, 0xa858, 0x4aa2, 0x87f6, \
27 { 0xe8, 0x38, 0x8e, 0x76, 0x01, 0xb2 } }
28static const effect_uuid_t EFFECT_UIID_DOWNMIX_ = EFFECT_UIID_DOWNMIX__;
29const effect_uuid_t * const EFFECT_UIID_DOWNMIX = &EFFECT_UIID_DOWNMIX_;
30
31
32/* enumerated parameter settings for downmix effect */
33typedef enum {
34 DOWNMIX_PARAM_TYPE
35} downmix_params_t;
36
37
38typedef enum {
39 DOWNMIX_TYPE_INVALID = -1,
40 // throw away the extra channels
41 DOWNMIX_TYPE_STRIP = 0,
42 // mix the extra channels with FL/FR
43 DOWNMIX_TYPE_FOLD = 1,
44 DOWNMIX_TYPE_CNT,
45 DOWNMIX_TYPE_LAST = DOWNMIX_TYPE_CNT - 1
46} downmix_type_t;
47
48#if __cplusplus
49} // extern "C"
50#endif
51
52
53#endif /*ANDROID_EFFECT_DOWNMIX_H_*/