 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
    1 #ifndef STK_FILEWRITE_H 
    2 #define STK_FILEWRITE_H 
   35   typedef unsigned long FILE_TYPE;
 
   59   void open( std::string fileName, 
unsigned int nChannels = 1,
 
   79   bool setRawFile( std::string fileName );
 
   82   bool setWavFile( std::string fileName );
 
   85   void closeWavFile( 
void );
 
   88   bool setSndFile( std::string fileName );
 
   91   void closeSndFile( 
void );
 
   94   bool setAifFile( std::string fileName );
 
   97   void closeAifFile( 
void );
 
  100   bool setMatFile( std::string fileName );
 
  103   void closeMatFile( 
void );
 
  108   unsigned int channels_;
 
  109   unsigned long frameCounter_;
 
 
static const FILE_TYPE FILE_RAW
Definition: FileWrite.h:37
FileWrite(std::string fileName, unsigned int nChannels=1, FILE_TYPE type=FILE_WAV, Stk::StkFormat format=STK_SINT16)
Overloaded constructor used to specify a file name, type, and data format with this object.
FileWrite(void)
Default constructor.
static const FILE_TYPE FILE_MAT
Definition: FileWrite.h:41
bool isOpen(void)
Returns true if a file is currently open.
An STK class to handle vectorized audio data.
Definition: Stk.h:276
void close(void)
If a file is open, write out samples in the queue and then close it.
static const StkFormat STK_SINT16
Definition: Stk.h:138
void open(std::string fileName, unsigned int nChannels=1, FileWrite::FILE_TYPE type=FILE_WAV, Stk::StkFormat format=STK_SINT16)
Create a file of the specified type and name and output samples to it in the given data format.
static const FILE_TYPE FILE_WAV
Definition: FileWrite.h:38
void write(StkFrames &buffer)
Write sample frames from the StkFrames object to the file.
static const FILE_TYPE FILE_SND
Definition: FileWrite.h:39
STK audio file output class.
Definition: FileWrite.h:32
The STK namespace.
Definition: ADSR.h:6
virtual ~FileWrite()
Class destructor.
static const FILE_TYPE FILE_AIF
Definition: FileWrite.h:40
STK base class.
Definition: Stk.h:133