AudioConfig.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #ifndef _AUDIOCONFIG_H_
  2. #define _AUDIOCONFIG_H_
  3. // <<< Use Configuration Wizard in Context Menu >>>
  4. // <e>Audio Configuration for RX
  5. #ifndef AUDIO_DRV_RX_ENABLED
  6. #define AUDIO_DRV_RX_ENABLED 1
  7. #endif
  8. // <o>Sampling Frequency <8000=> 8000 kHz <16000=> 16000 kHz
  9. // <44100=> 44100 kHz <48000=> 48000 kHz
  10. #ifndef AUDIO_DRV_SAMPLINGFREQUENCY_RX
  11. #define AUDIO_DRV_SAMPLINGFREQUENCY_RX 16000
  12. #endif
  13. // <o>Number of samples <256=> 256 <512=> 512 <1024=> 1024 <2048=> 2048
  14. // <i> Must be consistent with the settings of the Audio source
  15. #ifndef AUDIO_DRV_NBSAMPLES_RX
  16. #define AUDIO_DRV_NBSAMPLES_RX 2048
  17. #endif
  18. // <o>Number of channels <1=> Mono <2=> Stereo
  19. #ifndef AUDIO_DRV_NBCHANNELS_RX
  20. #define AUDIO_DRV_NBCHANNELS_RX 1U
  21. #endif
  22. // <o>Channel encoding <2=> 16 Bits
  23. #ifndef AUDIO_DRV_CHANNEL_ENCODING_RX
  24. #define AUDIO_DRV_CHANNEL_ENCODING_RX 2U
  25. #endif
  26. // </e>
  27. // <e>Audio Configuration for TX
  28. #ifndef AUDIO_DRV_TX_ENABLED
  29. #define AUDIO_DRV_TX_ENABLED 1
  30. #endif
  31. // <o>Sampling Frequency <8000=> 8000 kHz <16000=> 16000 kHz
  32. // <44100=> 44100 kHz <48000=> 48000 kHz
  33. #ifndef AUDIO_DRV_SAMPLINGFREQUENCY_TX
  34. #define AUDIO_DRV_SAMPLINGFREQUENCY_TX 16000
  35. #endif
  36. // <o>Number of samples <256=> 256 <512=> 512 <1024=> 1024 <2048=> 2048
  37. // <i> Must be consistent with the settings of the Audio source
  38. #ifndef AUDIO_DRV_NBSAMPLES_TX
  39. #define AUDIO_DRV_NBSAMPLES_TX 2048
  40. #endif
  41. // <o>Number of channels <1=> Mono <2=> Stereo
  42. #ifndef AUDIO_DRV_NBCHANNELS_TX
  43. #define AUDIO_DRV_NBCHANNELS_TX 1U
  44. #endif
  45. // <o>Channel encoding <2=> 16 Bits
  46. #ifndef AUDIO_DRV_CHANNEL_ENCODING_TX
  47. #define AUDIO_DRV_CHANNEL_ENCODING_TX 2U
  48. #endif
  49. // </e>
  50. // <q> SDF_VHT_TX_RX_ORDERING: Force TX RX ordering
  51. #define SDF_VHT_TX_RX_ORDERING 0
  52. // <<< end of configuration section >>>
  53. #define SDF_AUDIO_CONFIG
  54. #endif