AOutputS.h (1090B)
1 /* 2 3 Copyright (C) 2006-2011 Nasca Octavian Paul 4 Author: Nasca Octavian Paul 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of version 2 of the GNU General Public License 8 as published by the Free Software Foundation. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License (version 2) for more details. 14 15 You should have received a copy of the GNU General Public License (version 2) 16 along with this program; if not, write to the Free Software Foundation, 17 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 20 #ifndef AOUTPUT_H 21 #define AOUTPUT_H 22 #include <string> 23 #include <audiofile.h> 24 25 class AOutputS{ 26 public: 27 AOutputS(); 28 ~AOutputS(); 29 30 bool newfile(std::string filename,int samplerate,bool use32bit=false); 31 void close(); 32 33 void write(int nsmps, int *smps); 34 35 struct { 36 int nsamples; 37 } info; 38 private: 39 AFfilehandle handle; 40 }; 41 #endif