annotate src/libsamplerate-0.1.8/examples/audio_out.h @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 545efbb81310
children
rev   line source
cannam@85 1 /*
cannam@85 2 ** Copyright (C) 1999-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
cannam@85 3 **
cannam@85 4 ** This program is free software; you can redistribute it and/or modify
cannam@85 5 ** it under the terms of the GNU General Public License as published by
cannam@85 6 ** the Free Software Foundation; either version 2 of the License, or
cannam@85 7 ** (at your option) any later version.
cannam@85 8 **
cannam@85 9 ** This program is distributed in the hope that it will be useful,
cannam@85 10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@85 11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@85 12 ** GNU General Public License for more details.
cannam@85 13 **
cannam@85 14 ** You should have received a copy of the GNU General Public License
cannam@85 15 ** along with this program; if not, write to the Free Software
cannam@85 16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cannam@85 17 */
cannam@85 18
cannam@85 19 typedef void AUDIO_OUT ;
cannam@85 20
cannam@85 21 typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ;
cannam@85 22
cannam@85 23 /* A general audio ooutput function (Linux/OSS, Win32, MacOSX, Solaris)
cannam@85 24 ** which retrieves data using the callback function in the above struct.
cannam@85 25 **
cannam@85 26 ** audio_open - opens the device and returns an anonymous pointer to its
cannam@85 27 ** own private data.
cannam@85 28 */
cannam@85 29
cannam@85 30
cannam@85 31
cannam@85 32 AUDIO_OUT *audio_open (int channels, int samplerate) ;
cannam@85 33
cannam@85 34 void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ;
cannam@85 35
cannam@85 36 void audio_close (AUDIO_OUT *audio_data) ;
cannam@85 37