00001 /* 00002 * $Id: audio_oss.h,v 1.7 2009/05/30 00:45:51 kprox Exp $ 00003 * 00004 * Copyright (C) 2002-2006: 00005 * Ken Prox <kprox@users.sourceforge.net> 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 00020 */ 00021 #ifndef AUDIO_OSS_H 00022 #define AUDIO_OSS_H 00023 00024 #ifdef HAVE_CONFIG_H 00025 #include "config.h" 00026 #endif 00027 00028 #include <stdint.h> 00029 #include "audio.h" 00030 00031 #ifdef HAVE_SYS_SOUNDCARD_H 00032 int32_t audio_open_oss(p_audio_pub device); 00033 int32_t audio_init_oss(p_audio_pub device); 00034 int32_t audio_close_oss(p_audio_pub device); 00035 void audio_record_oss(p_audio_pub device, te_audio_segments buffer_segment); 00036 void audio_play_oss(p_audio_pub device, te_audio_segments buffer_segment); 00037 #else /* HAVE_SYS_SOUNDCARD_H */ 00038 #define audio_open_oss NULL 00039 #define audio_init_oss NULL 00040 #define audio_close_oss NULL 00041 #define audio_record_oss NULL 00042 #define audio_play_oss NULL 00043 #endif /* HAVE_SYS_SOUNDCARD_H */ 00044 00045 #endif /* AUDIO_OSS_H */