how to find the length or Time of the WAV file will be played using VC++
-
I want to find the length or Time of the wav file played, please can any one help me out with the code to find the Time for which wav file will be played..
-
I want to find the length or Time of the wav file played, please can any one help me out with the code to find the Time for which wav file will be played..
-
I want to find the length or Time of the wav file played, please can any one help me out with the code to find the Time for which wav file will be played..
Wav file is divide to chunks This is the chank format: ---------------------------------- 'RIFF' 4 bytes size 4 bytes (ulong) 'WAVE' 4 bytes 'fmt ' 4 bytes size 4 bytes (ulong) 14 bytes 2 bytes (PCM) 'data' 4 bytes size 4 bytes (ulong) N bytes ---------------------------------- the format of field is as follows: wFormatTag, ushort nChannels, ushort nSamplesPerSec, ulong nAvgBytesPerSec, ulong nBlockAlign, ushort Using this data and the previous snder reply you can calculater the duration of the wav file DavidR