Remove the -t option. It is not the problem either
if ((wave.GetFormat().nChannels!=1) || (wave.GetFormat().nSamplesPerSec!=16000)
|| (wave.GetFormat().wBitsPerSample!=16) ||(wave.GetFormat().wFormatTag!=1)
|| (wave.m_buffer.GetNumSamples()!=6*16000))
{
MessageBox("Unsupported File Format!");
return;
}
In the above code, I can understand what is the blue part. But i dont get what is the one in Red. I think that is where the problem occurs. Can you explain what is it respective to the wav file format?