Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mmal_parameters_audio.h 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. Copyright (c) 2012, Broadcom Europe Ltd
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions are met:
  6. * Redistributions of source code must retain the above copyright
  7. notice, this list of conditions and the following disclaimer.
  8. * Redistributions in binary form must reproduce the above copyright
  9. notice, this list of conditions and the following disclaimer in the
  10. documentation and/or other materials provided with the distribution.
  11. * Neither the name of the copyright holder nor the
  12. names of its contributors may be used to endorse or promote products
  13. derived from this software without specific prior written permission.
  14. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  15. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  16. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  17. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
  18. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  19. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  20. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  21. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  22. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  23. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. #ifndef MMAL_PARAMETERS_AUDIO_H
  26. #define MMAL_PARAMETERS_AUDIO_H
  27. #include "mmal_parameters_common.h"
  28. /*************************************************
  29. * ALWAYS ADD NEW ENUMS AT THE END OF THIS LIST! *
  30. ************************************************/
  31. /** Audio-specific MMAL parameter IDs.
  32. * @ingroup MMAL_PARAMETER_IDS
  33. */
  34. enum
  35. {
  36. MMAL_PARAMETER_AUDIO_DESTINATION /**< Takes a MMAL_PARAMETER_STRING_T */
  37. = MMAL_PARAMETER_GROUP_AUDIO,
  38. MMAL_PARAMETER_AUDIO_LATENCY_TARGET, /**< Takes a MMAL_PARAMETER_AUDIO_LATENCY_TARGET_T */
  39. MMAL_PARAMETER_AUDIO_SOURCE,
  40. MMAL_PARAMETER_AUDIO_PASSTHROUGH, /**< Takes a MMAL_PARAMETER_BOOLEAN_T */
  41. };
  42. /** Audio latency target to maintain.
  43. * These settings are used to adjust the clock speed in order
  44. * to match the measured audio latency to a specified value. */
  45. typedef struct MMAL_PARAMETER_AUDIO_LATENCY_TARGET_T
  46. {
  47. MMAL_PARAMETER_HEADER_T hdr;
  48. MMAL_BOOL_T enable; /**< whether this mode is enabled */
  49. uint32_t filter; /**< number of latency samples to filter on, good value: 1 */
  50. uint32_t target; /**< target latency (microseconds) */
  51. uint32_t shift; /**< shift for storing latency values, good value: 7 */
  52. int32_t speed_factor; /**< multiplier for speed changes, in 24.8 format, good value: 256-512 */
  53. int32_t inter_factor; /**< divider for comparing latency versus gradiant, good value: 300 */
  54. int32_t adj_cap; /**< limit for speed change before nSpeedFactor is applied, good value: 100 */
  55. } MMAL_PARAMETER_AUDIO_LATENCY_TARGET_T;
  56. #endif /* MMAL_PARAMETERS_AUDIO_H */