23#ifndef AUDIO_COMMON__WAVE_FILE_HPP
24#define AUDIO_COMMON__WAVE_FILE_HPP
34 explicit WaveFile(
const std::string &filepath);
39 bool read(std::vector<float> &buffer,
size_t size);
float int16ToFloat(int16_t sample)
Definition wave_file.hpp:52
int get_num_channels() const
Definition wave_file.hpp:41
bool read(std::vector< float > &buffer, size_t size)
Definition wave_file.cpp:63
WaveFile(const std::string &filepath)
Definition wave_file.cpp:30
int sample_rate_
Definition wave_file.hpp:47
int get_sample_rate() const
Definition wave_file.hpp:40
int bits_per_sample_
Definition wave_file.hpp:49
bool open()
Definition wave_file.cpp:35
int channels_
Definition wave_file.hpp:48
int get_bits_per_sample() const
Definition wave_file.hpp:42
void rewind()
Definition wave_file.cpp:58
~WaveFile()
Definition wave_file.cpp:33
std::string filepath_
Definition wave_file.hpp:45
std::ifstream file_
Definition wave_file.hpp:46
Definition audio_capturer_node.hpp:32