Chris@41: /* Chris@41: ** Copyright (c) 1999-2016, Erik de Castro Lopo Chris@41: ** All rights reserved. Chris@41: ** Chris@41: ** This code is released under 2-clause BSD license. Please see the Chris@41: ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING Chris@41: */ Chris@41: Chris@41: typedef struct AUDIO_OUT_s AUDIO_OUT ; Chris@41: Chris@41: typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ; Chris@41: Chris@41: /* A general audio output function (Linux/ALSA, Linux/OSS, Win32, MacOSX, Chris@41: ** Solaris) which retrieves data using the callback function in the above Chris@41: ** struct. Chris@41: ** Chris@41: ** audio_open - opens the device and returns an anonymous pointer to its Chris@41: ** own private data. Chris@41: */ Chris@41: Chris@41: AUDIO_OUT *audio_open (int channels, int samplerate) ; Chris@41: Chris@41: void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ; Chris@41: Chris@41: void audio_close (AUDIO_OUT *audio_data) ;