Glenn Kasten | 153b9fe | 2013-07-15 11:23:36 -0700 | [diff] [blame] | 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 | |
Glenn Kasten | 214b406 | 2015-03-02 14:15:47 -0800 | [diff] [blame] | 32 | // uncomment to enable fast threads to take performance samples for later statistical analysis |
| 33 | #define FAST_THREAD_STATISTICS |
Glenn Kasten | 153b9fe | 2013-07-15 11:23:36 -0700 | [diff] [blame] | 34 | |
Glenn Kasten | 153b9fe | 2013-07-15 11:23:36 -0700 | [diff] [blame] | 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 | |
rago | 94a1ee8 | 2017-07-21 15:11:02 -0700 | [diff] [blame] | 44 | // define FLOAT_EFFECT_CHAIN to request float effects (falls back to int16_t if unavailable) |
| 45 | #define FLOAT_EFFECT_CHAIN |
| 46 | |
Andy Hung | 116a498 | 2017-11-30 10:15:08 -0800 | [diff] [blame] | 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 |
Andy Hung | 9aad48c | 2017-11-29 10:29:19 -0800 | [diff] [blame^] | 50 | |
| 51 | // define MULTICHANNEL_EFFECT_CHAIN to allow multichannel effects (FLOAT_EFFECT_CHAIN defined) |
| 52 | #define MULTICHANNEL_EFFECT_CHAIN |
Andy Hung | 116a498 | 2017-11-30 10:15:08 -0800 | [diff] [blame] | 53 | #endif |
| 54 | |
Glenn Kasten | 153b9fe | 2013-07-15 11:23:36 -0700 | [diff] [blame] | 55 | #endif // ANDROID_AUDIOFLINGER_CONFIGURATION_H |