alac_wrapper.h 823 B

12345678910111213141516171819202122232425262728293031
  1. /*****************************************************************************
  2. * alac_wrapper.h: ALAC coder wrapper
  3. *
  4. * (c) Philippe G. 2019, philippe_44@outlook.com
  5. *
  6. * This software is released under the MIT License.
  7. * https://opensource.org/licenses/MIT
  8. *
  9. */
  10. #ifndef __ALAC_WRAPPER_H_
  11. #define __ALAC_WRAPPER_H_
  12. struct alac_codec_s;
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. struct alac_codec_s *alac_create_decoder(int magic_cookie_size, unsigned char *magic_cookie,
  17. unsigned char *sample_size, unsigned *sample_rate,
  18. unsigned char *channels, unsigned int *block_size);
  19. void alac_delete_decoder(struct alac_codec_s *codec);
  20. bool alac_to_pcm(struct alac_codec_s *codec, unsigned char* input,
  21. unsigned char *output, char channels, unsigned *out_frames);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif