Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
WAV header. More...
#include <wav_header.h>
Classes | |
struct | WavHeaderData |
WAV header data. More... | |
Public Member Functions | |
WavHeader (uint16_t num_channels, uint32_t sample_rate, uint16_t bits_per_sample) | |
Initialize. More... | |
uint16_t | num_channels () const |
Get number of channels. More... | |
uint32_t | sample_rate () const |
Get sample rate. More... | |
uint16_t | bits_per_sample () const |
Get number of bits per sample. More... | |
void | reset_sample_counter (uint32_t num_samples) |
Resets samples counter. More... | |
const WavHeaderData & | update_and_get_header (uint32_t num_samples) |
Updates samples num and returns header data. More... | |
WAV header.
Definition at line 25 of file wav_header.h.
roc::sndio::WavHeader::WavHeader | ( | uint16_t | num_channels, |
uint32_t | sample_rate, | ||
uint16_t | bits_per_sample | ||
) |
Initialize.
uint16_t roc::sndio::WavHeader::bits_per_sample | ( | ) | const |
Get number of bits per sample.
uint16_t roc::sndio::WavHeader::num_channels | ( | ) | const |
Get number of channels.
void roc::sndio::WavHeader::reset_sample_counter | ( | uint32_t | num_samples | ) |
Resets samples counter.
uint32_t roc::sndio::WavHeader::sample_rate | ( | ) | const |
Get sample rate.
const WavHeaderData& roc::sndio::WavHeader::update_and_get_header | ( | uint32_t | num_samples | ) |
Updates samples num and returns header data.