Class for generating canonical WAVE header to an array of PCM samples.
More...
|
static byte[] | AddWaveHeader (byte[] pcm, int bytesPerSample, int channels, int sampleRate) |
| Generates WAVE header for the provided PCM sample data. The length of the returned array is data length + 44. The length of the PCM data is limited by the limits of the WAVE header. More...
|
|
Class for generating canonical WAVE header to an array of PCM samples.
<author>Veli-Mikko Puupponen</author>
static byte [] Halyri.AudioVideoManagers.WaveFileHeader.AddWaveHeader |
( |
byte[] |
pcm, |
|
|
int |
bytesPerSample, |
|
|
int |
channels, |
|
|
int |
sampleRate |
|
) |
| |
|
static |
Generates WAVE header for the provided PCM sample data. The length of the returned array is data length + 44. The length of the PCM data is limited by the limits of the WAVE header.
- Parameters
-
pcm | Array of complete PCM samples with no compression |
bytesPerSample | Number of bytes (bits/8) per sample |
channels | Channels in the PCM data, 1 for mono 2 for stereo |
sampleRate | Sampling rate of the data |
- Returns
string Halyri.AudioVideoManagers.WaveFileHeader.chunk1ID = "fmt " |
|
staticprivate |
int Halyri.AudioVideoManagers.WaveFileHeader.chunk1SizeOffset = 8 |
|
staticprivate |
string Halyri.AudioVideoManagers.WaveFileHeader.chunkID = "RIFF" |
|
staticprivate |
string Halyri.AudioVideoManagers.WaveFileHeader.format = "WAVE" |
|
staticprivate |
int Halyri.AudioVideoManagers.WaveFileHeader.headersLength = 44 |
|
staticprivate |
Encoding Halyri.AudioVideoManagers.WaveFileHeader.strEncoding = System.Text.Encoding.UTF8 |
|
staticprivate |
string Halyri.AudioVideoManagers.WaveFileHeader.subchunk2ID = "data" |
|
staticprivate |
The documentation for this class was generated from the following file: