00001 /* 00002 * Copyright (C) 2007 Jolien Creighton 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with with program; see the file COPYING. If not, write to the 00016 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00017 * MA 02111-1307 USA 00018 */ 00019 00020 /* vim: set noet ts=4 sw=4: */ 00021 /** \file 00022 * \ingroup std 00023 * \author Creighton, J. D. E. 00024 * \date $Date: 2007/09/21 19:24:56 $ 00025 * \brief Routines for exporting time series data as sound files. 00026 * 00027 * Supported formats are AU and WAVE. AIFF is not supported at this time. 00028 * 00029 * This code is based on code written by Paul Bourke. See: 00030 * http://local.wasp.uwa.edu.au/~pbourke/dataformats/au/ 00031 * http://local.wasp.uwa.edu.au/~pbourke/dataformats/wave/ 00032 * 00033 */ 00034 00035 #ifndef AUDIO_H 00036 #define AUDIO_H 00037 00038 #include <lal/LALDatatypes.h> 00039 00040 NRCSID( AUDIOH, "$Id: Audio.h,v 1.3 2007/09/21 19:24:56 jolien Exp $" ); 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #pragma } 00045 #endif 00046 00047 /** Records a time series as a .wav audio file */ 00048 int XLALAudioWAVRecordREAL4TimeSeries( FILE *fp, REAL4TimeSeries *series ); 00049 00050 /** Records a time series as a .wav audio file */ 00051 int XLALAudioWAVRecordREAL8TimeSeries( FILE *fp, REAL8TimeSeries *series ); 00052 00053 /** Records a time series as a .au audio file */ 00054 int XLALAudioAURecordREAL4TimeSeries( FILE *fp, REAL4TimeSeries *series ); 00055 00056 /** Records a time series as a .au audio file */ 00057 int XLALAudioAURecordREAL8TimeSeries( FILE *fp, REAL8TimeSeries *series ); 00058 00059 #ifdef __cplusplus 00060 #pragma { 00061 } 00062 #endif 00063 00064 #endif /* AUDIO_H */
1.5.2