/* -*- tab-width: 8; c-basic-offset: 4 -*- */ /* * Wine Driver for NAS Network Audio System * http://radscan.com/nas.html * * Copyright 1994 Martin Ayotte * 1999 Eric Pouech (async playing in waveOut/waveIn) * 2000 Eric Pouech (loops in waveOut) * 2002 Chris Morgan (aRts version of this file) * 2002 Nicolas Escuder (NAS version of this file) * * Copyright 2002 Nicolas Escuder * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ /* NOTE: * with nas we cannot stop the audio that is already in * the servers buffer. * * FIXME: * pause in waveOut does not work correctly in loop mode * */ #include "config.h" #include #include #include #include #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_SYS_TIME_H # include #endif #include #include #define FRAG_SIZE 1024 #define FRAG_COUNT 10 /* avoid type conflicts */ #define INT8 X_INT8 #define INT16 X_INT16 #define INT32 X_INT32 #define BOOL X_BOOL #define BYTE X_BYTE #ifdef HAVE_AUDIO_AUDIOLIB_H #include