Possible Duplicate:
Calculate Phase angle between two signals i.e. digital Phase meter

I want to calculate the phase difference between the two channels(signals) of a stereo audio file.(uncompressed data i.e. PCM samples).

I want to determine whether whether two signals are in phase or not i.e. kind of phase meter ? Not the exact phase difference.

Can you please suggest a algorithm to calculate the phase difference.


marked as duplicate by Jason R, Dilip Sarwate, Niki Estner, Phonon Mar 11 '12 at 6:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Mar 9 '12 at 19:08

This question came from our site for professional and enthusiast programmers.

Browse other questions tagged or ask your own question.