Configuration.h 1.9 KB

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