Initializes the WAV reader, opens the WAV file and reads the WAV header.
wav.begin(path, n_samples, n_buffers, loop)
string
- path - the path to the WAV file.int
- n_samples - the number of samples per sample buffer. See SampleBuffer for more details.int
- n_buffers - the number of sample buffers in the queue. See SampleBuffer for more details.bool
- *loop - if true, the WAV reader will loop back to the start of the file, when the end file is reached.