package com.example.pcm2wave;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
public class WaveHeader {
private char fileID[] = { 'R', 'I', 'F', 'F' };
private int fileLength;
private char wavTag[] = { 'W', 'A', 'V', 'E' };
private char fmtHdrID[] = { 'f', 'm', 't', ' ' };
private int fmtHdrLeth = 16;
private short formatTag = 1;
public short channels = 1;
public short sampleRate = 16000;
public short bitsPerSample = 16;
private short blockAlign = (short)(channels * bitsPerSample / 8);
private int avgBytesPerSec = blockAlign * sampleRate;
private char dataHdrID[] = { 'd', 'a', 't', 'a' };
private int dataHdrLeth;