patch-include_pcm_h 1.3 KB

12345678910111213141516171819202122232425262728
  1. * added idea/patch from https://github.com/rofl0r/sabotage
  2. --- alsa-lib-1.0.29.orig/include/pcm.h 2015-02-26 13:34:52.000000000 +0100
  3. +++ alsa-lib-1.0.29/include/pcm.h 2016-11-20 18:14:09.708758715 +0100
  4. @@ -33,6 +33,8 @@
  5. extern "C" {
  6. #endif
  7. +#include <stdint.h>
  8. +
  9. /**
  10. * \defgroup PCM PCM Interface
  11. * See the \ref pcm page for more details.
  12. @@ -1063,10 +1065,10 @@ int snd_pcm_format_width(snd_pcm_format_
  13. int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */
  14. snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian);
  15. ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
  16. -u_int8_t snd_pcm_format_silence(snd_pcm_format_t format);
  17. -u_int16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
  18. -u_int32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
  19. -u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
  20. +uint8_t snd_pcm_format_silence(snd_pcm_format_t format);
  21. +uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
  22. +uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
  23. +uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
  24. int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples);
  25. snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);