Mercurial > hg > sv-dependency-builds
annotate src/libsamplerate-0.1.9/examples/audio_out.h @ 66:a9f5ce17330a
Add AppImage files
author | Chris Cannam |
---|---|
date | Tue, 26 Jun 2018 18:00:44 +0100 |
parents | 481f5f8c5634 |
children |
rev | line source |
---|---|
Chris@41 | 1 /* |
Chris@41 | 2 ** Copyright (c) 1999-2016, Erik de Castro Lopo <erikd@mega-nerd.com> |
Chris@41 | 3 ** All rights reserved. |
Chris@41 | 4 ** |
Chris@41 | 5 ** This code is released under 2-clause BSD license. Please see the |
Chris@41 | 6 ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING |
Chris@41 | 7 */ |
Chris@41 | 8 |
Chris@41 | 9 typedef struct AUDIO_OUT_s AUDIO_OUT ; |
Chris@41 | 10 |
Chris@41 | 11 typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ; |
Chris@41 | 12 |
Chris@41 | 13 /* A general audio output function (Linux/ALSA, Linux/OSS, Win32, MacOSX, |
Chris@41 | 14 ** Solaris) which retrieves data using the callback function in the above |
Chris@41 | 15 ** struct. |
Chris@41 | 16 ** |
Chris@41 | 17 ** audio_open - opens the device and returns an anonymous pointer to its |
Chris@41 | 18 ** own private data. |
Chris@41 | 19 */ |
Chris@41 | 20 |
Chris@41 | 21 AUDIO_OUT *audio_open (int channels, int samplerate) ; |
Chris@41 | 22 |
Chris@41 | 23 void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ; |
Chris@41 | 24 |
Chris@41 | 25 void audio_close (AUDIO_OUT *audio_data) ; |