SpectMorph
Public Types | Public Member Functions | List of all members
SpectMorph::WavData Class Reference

Public Types

enum  OutFormat { WAV, FLAC }
 

Public Member Functions

 WavData (const std::vector< float > &samples, int n_channels, float mix_freq, int bit_depth)
 
bool load (const std::vector< unsigned char > &in)
 
bool load (const std::string &filename)
 
bool load_mono (const std::string &filename)
 
void load (const std::vector< float > &samples, int n_channels, float mix_freq, int bit_depth)
 
bool save (const std::string &filename, OutFormat out_format=OutFormat::WAV)
 
bool save (std::vector< unsigned char > &out, OutFormat out_format=OutFormat::WAV)
 
void clear ()
 
void prepend (const std::vector< float > &samples)
 
float mix_freq () const
 
int n_channels () const
 
size_t n_values () const
 
int bit_depth () const
 
const std::vector< float > & samples () const
 
const char * error_blurb () const
 
float operator[] (size_t pos) const
 

The documentation for this class was generated from the following files: