16 Data(
const std::string &file_name);
33 enum class WaveFormat : uint16_t
35 WAVE_FORMAT_PCM = 0x0001,
36 WAVE_FORMAT_IEEE_FLOAT = 0x0003,
37 WAVE_FORMAT_ALAW = 0x0006,
38 WAVE_FORMAT_MULAW = 0x0007,
39 WAVE_FORMAT_EXTENSIBLE = 0xFFFE
42 float bytesToFloat(std::vector<uint8_t> &bytes);
Definition: AudioData.hpp:12
uint16_t num_channels
Definition: AudioData.hpp:21
uint32_t byte_rate
Definition: AudioData.hpp:23
std::vector< std::vector< float > > samples
Definition: AudioData.hpp:29
uint16_t bits_per_sample
Definition: AudioData.hpp:25
uint32_t sample_rate
Definition: AudioData.hpp:22
uint16_t audio_format
Definition: AudioData.hpp:20
~Data()
Definition: AudioData.cpp:118
uint16_t block_align
Definition: AudioData.hpp:24
uint32_t num_samples
Definition: AudioData.hpp:27
Definition: AudioData.cpp:7