81 void GetVagData(std::vector<unsigned char> &vagData,
int iLoopStart,
int iLoopEnd);
117 return mBitsPerSample;
int GetSampleRate() const
Report the sample rate.
Definition AudioIO.h:107
bool ReadWavData(std::vector< unsigned char > &data)
Read the file's samples and record its format.
AudioIO(const String &filename)
Read the format of a WAV file.
bool operator!() const
Report whether the last read failed.
Definition AudioIO.h:89
~AudioIO()
Release the reader.
int GetBitsPerSample() const
Report the size of one sample.
Definition AudioIO.h:116
void GetVagData(std::vector< unsigned char > &vagData, int iLoopStart, int iLoopEnd)
Encode the file as VAG data, looping between two samples when the points are valid.
int GetNumChannels() const
Report the number of channels.
Definition AudioIO.h:98
String & GetFilename()
Report the path of the file.
Definition AudioIO.h:125
void FindZeroCrossings(std::vector< int > &crossings)
List the start of every 28-sample block at which the waveform crosses zero.
void GetStreamData(std::vector< unsigned char > &data)
Convert a 48 kHz 16-bit stereo file to the layout of a streamed sample.
int GetVagSize() const
Report the size of the VAG data of the file, before any loop adjustment.
Definition AudioIO.h:134
Growable text buffer that is also a PrnStream.
Definition string.h:19