annotate src/libsamplerate-0.1.9/examples/audio_out.h @ 159:f4b37539fcc7

Rebuild win32 Opus using mingw 5 rather than 7 to avoid runtime incompatibility
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 30 Jan 2019 10:30:56 +0000
parents 4a7071416412
children
rev   line source
cannam@126 1 /*
cannam@126 2 ** Copyright (c) 1999-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
cannam@126 3 ** All rights reserved.
cannam@126 4 **
cannam@126 5 ** This code is released under 2-clause BSD license. Please see the
cannam@126 6 ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
cannam@126 7 */
cannam@126 8
cannam@126 9 typedef struct AUDIO_OUT_s AUDIO_OUT ;
cannam@126 10
cannam@126 11 typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ;
cannam@126 12
cannam@126 13 /* A general audio output function (Linux/ALSA, Linux/OSS, Win32, MacOSX,
cannam@126 14 ** Solaris) which retrieves data using the callback function in the above
cannam@126 15 ** struct.
cannam@126 16 **
cannam@126 17 ** audio_open - opens the device and returns an anonymous pointer to its
cannam@126 18 ** own private data.
cannam@126 19 */
cannam@126 20
cannam@126 21 AUDIO_OUT *audio_open (int channels, int samplerate) ;
cannam@126 22
cannam@126 23 void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ;
cannam@126 24
cannam@126 25 void audio_close (AUDIO_OUT *audio_data) ;