0001-musl-pcm-h.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. Fix musl-related build errors in packages depending on alsa, in our case
  2. this fixes openal.
  3. Downloaded from
  4. http://git.alpinelinux.org/cgit/aports/tree/main/alsa-lib/alsa-lib_pcm_h.patch
  5. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  6. --- alsa-lib-1.0.25/include/pcm.h
  7. +++ alsa-lib-1.0.25.patched/include/pcm.h
  8. @@ -33,6 +33,7 @@
  9. extern "C" {
  10. #endif
  11. +#include <stdint.h>
  12. /**
  13. * \defgroup PCM PCM Interface
  14. * See the \ref pcm page for more details.
  15. @@ -941,10 +942,10 @@
  16. int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */
  17. snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian);
  18. ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
  19. -u_int8_t snd_pcm_format_silence(snd_pcm_format_t format);
  20. -u_int16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
  21. -u_int32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
  22. -u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
  23. +uint8_t snd_pcm_format_silence(snd_pcm_format_t format);
  24. +uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
  25. +uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
  26. +uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
  27. int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples);
  28. snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);