mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-23 18:04:07 +00:00
Unnecessary computation of arc cosine is omitted and convergence is checked on partial results. Original frequency is easily retrieved when needed.
10 lines
231 B
C
10 lines
231 B
C
#ifndef __AVMD_PSI_H__
|
|
#define __AVMD_PSI_H__
|
|
|
|
|
|
#include "avmd_buffer.h"
|
|
|
|
#define PSI(b, i) (GET_SAMPLE((b), ((i) + 1))*GET_SAMPLE((b), ((i) + 1))-GET_SAMPLE((b), ((i) + 2))*GET_SAMPLE((b), ((i) + 0)))
|
|
|
|
#endif /* __AVMD_PSI_H__ */
|