summaryrefslogtreecommitdiff
path: root/tvapi/libtv/audio/CTvAudio.h (plain)
blob: f2701a8277e2bfa456a39089e807ca355f17daed
1#ifndef __TV_AUDIO_API_H__
2#define __TV_AUDIO_API_H__
3
4
5#include "tvsetting/audio_cfg.h"
6#include "audio_alsa.h"
7#include "audio_effect.h"
8#include <audio_amaudio.h>
9#include "CAudioCustomerCtrl.h"
10
11enum CC_AUDIO_SWITCH_STATUS {
12 CC_SWITCH_OFF,
13 CC_SWITCH_ON,
14};
15
16enum CC_AMAUDIO_OUT_MODE {
17 CC_AMAUDIO_OUT_MODE_DIRECT,
18 CC_AMAUDIO_OUT_MODE_INTER_MIX,
19 CC_AMAUDIO_OUT_MODE_DIRECT_MIX,
20};
21
22static const int CC_SPDIF_MODE_PCM = 0;
23static const int CC_SPDIF_MODE_RAW = 1;
24
25static const int CC_MIN_SOUND_VOL = 0;
26static const int CC_MAX_SOUND_VOL = 100;
27static const int CC_DEF_SOUND_VOL = 10;
28static const int CC_MIN_SUPPERBASS_VOL = 0;
29static const int CC_MAX_SUPPERBASS_VOL = 100;
30static const int CC_DEF_SUPPERBASS_VOL = 50;
31
32static const int CC_DEF_BASS_TREBLE_VOL = 50;
33static const int CC_EQ_BASS_IND = 1;
34static const int CC_EQ_TREBLE_IND = 3;
35static const int CC_EQ_DEF_UI_MIN_GAIN = 0;
36static const int CC_EQ_DEF_UI_MAX_GAIN = 100;
37static const int CC_MIN_EQ_GAIN_VAL = -10;
38static const int CC_MAX_EQ_GAIN_VAL = 10;
39
40static const int CC_LUT_BUF_MASTER = 0;
41static const int CC_LUT_BUF_SUPPERBASS = 1;
42static const int CC_LUT_BUF_SIZE = 101;
43static const int CC_NO_LINE_POINTS_MAX_CNT = 101;
44
45
46enum CC_AUD_SOUND_MODE {
47 CC_SOUND_MODE_START = 0,
48 CC_SOUND_MODE_STD = 0,
49 CC_SOUND_MODE_MUSIC,
50 CC_SOUND_MODE_NEWS,
51 CC_SOUND_MODE_THEATER,
52 CC_SOUND_MODE_USER,
53 CC_SOUND_MODE_END = CC_SOUND_MODE_USER
54};
55
56enum CC_AUD_EQ_MODE {
57 CC_EQ_MODE_START = 0,
58 CC_EQ_MODE_NOMAL = 0,
59 CC_EQ_MODE_POP,
60 CC_EQ_MODE_JAZZ,
61 CC_EQ_MODE_ROCK,
62 CC_EQ_MODE_CLASSIC,
63 CC_EQ_MODE_DANCE,
64 CC_EQ_MODE_PARTY,
65 CC_EQ_MODE_BASS,
66 CC_EQ_MODE_TREBLE,
67 CC_EQ_MODE_CUSTOM,
68 CC_EQ_MODE_END = CC_EQ_MODE_CUSTOM
69};
70
71class CTvAudio {
72public:
73 CTvAudio();
74 ~CTvAudio();
75};
76#endif //__TV_AUDIO_API_H__
77