• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2013 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 // Put build-time configuration options here rather than Android.mk,
18 // so that the instantiate for AudioFlinger service will pick up the same options.
19 
20 #ifndef ANDROID_AUDIOFLINGER_CONFIGURATION_H
21 #define ANDROID_AUDIOFLINGER_CONFIGURATION_H
22 
23 // uncomment to enable detailed battery usage reporting (not debugged)
24 //#define ADD_BATTERY_DATA
25 
26 // uncomment to enable the audio watchdog
27 //#define AUDIO_WATCHDOG
28 
29 // uncomment to display CPU load adjusted for CPU frequency
30 //#define CPU_FREQUENCY_STATISTICS
31 
32 // uncomment to enable fast threads to take performance samples for later statistical analysis
33 #define FAST_THREAD_STATISTICS
34 
35 // uncomment for debugging timing problems related to StateQueue::push()
36 //#define STATE_QUEUE_DUMP
37 
38 // uncomment to allow tee sink debugging to be enabled by property
39 //#define TEE_SINK
40 
41 // uncomment to log CPU statistics every n wall clock seconds
42 //#define DEBUG_CPU_USAGE 10
43 
44 // define FLOAT_EFFECT_CHAIN to request float effects (falls back to int16_t if unavailable)
45 #define FLOAT_EFFECT_CHAIN
46 
47 #ifdef FLOAT_EFFECT_CHAIN
48 // define FLOAT_AUX to process aux effect buffers in float (FLOAT_EFFECT_CHAIN must be defined)
49 #define FLOAT_AUX
50 
51 // define MULTICHANNEL_EFFECT_CHAIN to allow multichannel effects (FLOAT_EFFECT_CHAIN defined)
52 #define MULTICHANNEL_EFFECT_CHAIN
53 #endif
54 
55 #endif // ANDROID_AUDIOFLINGER_CONFIGURATION_H
56