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.

26 lines
839B

  1. /*
  2. ** Copyright (c) 1999-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
  3. ** All rights reserved.
  4. **
  5. ** This code is released under 2-clause BSD license. Please see the
  6. ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
  7. */
  8. typedef struct AUDIO_OUT_s AUDIO_OUT ;
  9. typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ;
  10. /* A general audio output function (Linux/ALSA, Linux/OSS, Win32, MacOSX,
  11. ** Solaris) which retrieves data using the callback function in the above
  12. ** struct.
  13. **
  14. ** audio_open - opens the device and returns an anonymous pointer to its
  15. ** own private data.
  16. */
  17. AUDIO_OUT *audio_open (int channels, int samplerate) ;
  18. void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ;
  19. void audio_close (AUDIO_OUT *audio_data) ;