|
HARDT - The Ham Radio DSP Toolkit
|
#include <hwav.h>

Public Member Functions | |
| H_SAMPLE_FORMAT | GetFormat () |
| int | GetChannels () |
| H_SAMPLE_RATE | GetRate () |
| size_t | GetSize () |
| const char * | GetFilename () |
| HWav (const char *filename) | |
Protected Member Functions | |
| HWav (HWav const &wav) | |
| HWav (const char *filename, H_SAMPLE_FORMAT format, int channels, H_SAMPLE_RATE rate) | |
Protected Attributes | |
| WavHeader | _header |
This class contains the basic description of a wav file, a generic header and functions to map between an array of bytes and specific property names.
Please be aware that the current wav implementation only supports 1 and 2 channels with 16 bit data.
You should never have to use this class directly!
|
inlineprotected |
Construct a new wav object from another wav object
|
protected |
Construct a new wav object with the given format, channels and samplerate
| HWav::HWav | ( | const char * | filename | ) |
Construct a new wav object from a local file
| int HWav::GetChannels | ( | ) |
Return the number of channels used by this object
| const char * HWav::GetFilename | ( | ) |
Get the name of the file from where the sample where read, or should be written
| H_SAMPLE_FORMAT HWav::GetFormat | ( | ) |
Return the sample format used by this object
| H_SAMPLE_RATE HWav::GetRate | ( | ) |
Return the samplerate used by this object
| size_t HWav::GetSize | ( | ) |
Get the size of the sample data contained by this object
|
protected |
Mapping of datafields in the wav header. Please see the wav specification for detailed description of the fields.. It can be found here: http://soundfile.sapp.org/doc/WaveFormat Contains the header data of the wav object
1.8.17