Mercurial > hg > sv-dependency-builds
comparison src/libsamplerate-0.1.9/examples/audio_out.h @ 126:4a7071416412
Current libsamplerate source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 13:24:45 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
125:cd6cdf86811e | 126:4a7071416412 |
---|---|
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 | |
9 typedef struct AUDIO_OUT_s AUDIO_OUT ; | |
10 | |
11 typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ; | |
12 | |
13 /* A general audio output function (Linux/ALSA, Linux/OSS, Win32, MacOSX, | |
14 ** Solaris) which retrieves data using the callback function in the above | |
15 ** struct. | |
16 ** | |
17 ** audio_open - opens the device and returns an anonymous pointer to its | |
18 ** own private data. | |
19 */ | |
20 | |
21 AUDIO_OUT *audio_open (int channels, int samplerate) ; | |
22 | |
23 void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ; | |
24 | |
25 void audio_close (AUDIO_OUT *audio_data) ; |