mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-24 10:31:13 +00:00
It provides better detection than mod_vmd but is a little more CPU intensive than mod_vmd. Perhaps someone would like to CUDAfy this code?
10 lines
195 B
C
10 lines
195 B
C
#ifndef __PSI_H__
|
|
#define __PSI_H__
|
|
#include "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
|
|
|
|
|