3 #ifndef SPECTMORPH_WAVE_DATA_HH 4 #define SPECTMORPH_WAVE_DATA_HH 15 std::vector<float> m_samples;
18 std::string m_error_blurb;
22 WavData (
const std::vector<float>& samples,
int n_channels,
float mix_freq);
24 bool load (
const std::string& filename);
25 bool load_mono (
const std::string& filename);
27 void load (
const std::vector<float>& samples,
int n_channels,
float mix_freq);
29 bool save (
const std::string& filename);
32 void prepend (
const std::vector<float>& samples);
34 float mix_freq()
const;
35 int n_channels()
const;
36 size_t n_values()
const;
37 const std::vector<float>& samples()
const;
38 const char *error_blurb()
const;
40 float operator[] (
size_t pos)
const;
Definition: smalignedarray.cc:7
Definition: smwavdata.hh:13