![]() |
Halyri
0.9
|
Class for generating canonical WAVE header to an array of PCM samples. More...
Static Public Member Functions | |
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 |
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.
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 |