1 /* 2 * lingot, a musical instrument tuner. 3 * 4 * Copyright (C) 2004-2018 Iban Cereijo. 5 * Copyright (C) 2004-2008 Jairo Chapela. 6 7 * 8 * This file is part of lingot. 9 * 10 * lingot is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * lingot is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with lingot; if not, write to the Free Software 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 */ 24 25 #ifdef OSS 26 27 #ifndef __LINGOT_AUDIO_OSS_H__ 28 #define __LINGOT_AUDIO_OSS_H__ 29 30 #include "lingot-audio.h" 31 32 void lingot_audio_oss_new(LingotAudioHandler*, const char* device, int sample_rate); 33 // In case of failure, audio_system is set to -1. 34 35 void lingot_audio_oss_destroy(LingotAudioHandler*); 36 37 int lingot_audio_oss_read(LingotAudioHandler*); 38 39 int lingot_audio_oss_get_audio_system_properties(LingotAudioSystemProperties*); 40 // Return status : 0 for OK, else -1. 41 42 #endif 43 #endif 44