cannam@85: /* cannam@85: ** Copyright (C) 1999-2011 Erik de Castro Lopo cannam@85: ** cannam@85: ** This program is free software; you can redistribute it and/or modify cannam@85: ** it under the terms of the GNU General Public License as published by cannam@85: ** the Free Software Foundation; either version 2 of the License, or cannam@85: ** (at your option) any later version. cannam@85: ** cannam@85: ** This program is distributed in the hope that it will be useful, cannam@85: ** but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: ** GNU General Public License for more details. cannam@85: ** cannam@85: ** You should have received a copy of the GNU General Public License cannam@85: ** along with this program; if not, write to the Free Software cannam@85: ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. cannam@85: */ cannam@85: cannam@85: typedef void AUDIO_OUT ; cannam@85: cannam@85: typedef int (*get_audio_callback_t) (void *callback_data, float *samples, int frames) ; cannam@85: cannam@85: /* A general audio ooutput function (Linux/OSS, Win32, MacOSX, Solaris) cannam@85: ** which retrieves data using the callback function in the above struct. cannam@85: ** cannam@85: ** audio_open - opens the device and returns an anonymous pointer to its cannam@85: ** own private data. cannam@85: */ cannam@85: cannam@85: cannam@85: cannam@85: AUDIO_OUT *audio_open (int channels, int samplerate) ; cannam@85: cannam@85: void audio_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *callback_data) ; cannam@85: cannam@85: void audio_close (AUDIO_OUT *audio_data) ; cannam@85: