Wednesday, May 07, 2008

Knowledge Base about PCM and Waveaudio

Knowledge Base about PCM and Waveaudio:
------------------------------------------
Wave file is having 45 bytes of audio Header info. and rest of the things are audio data;
In case of PCM samples,
Each and every audio sample is having 20 ms of data; 20 ms of data will be represented in 320 bytes;
So Every PCM sample is having 320 bytes of data;



Find out if the PCM audio source is giving 8000 bytes of data, then Howmany milliseconds of data PCM audio source is giving;

PCM Audio Source(PC camera's Mic) is giving 8000 bytes of data at a time;8000 bytes of data means,

8000/320 ( for a single audio frame) = 25 audio frames at a time;

Each audio frame represents 20 ms of audio data;

25 frames* 20 ms = 500 ms;

The Audio soucre is giving 500 ms of data at a time;

No comments: