frame rate vs sample rate

wendy0402 picture wendy0402 · Oct 25, 2013 · Viewed 16.4k times · Source

What is the difference between sample rate and frame rate? I tried to check a song and found sample rate and frame rate using java.They have same value, It makes me confuse.

doesn't frame consist of many sample?

thank you

Answer

msam picture msam · Oct 25, 2013

read the documentation

Sample rate = number of samples / second

Frame = 1 sample from each channel (PCM)

Frame Size = Sample size * Channels

Frame Rate = frames / second.

For PCM the sample rate and the frame rate are the same since a frame consists of a a sample from each channel