REVISION
Definition in file CODEC_autoscanHdl.c.
#include "../SYSTEM/sys_hardware.h"
#include "codec.h"
#include "codec_assert.h"
#include "../AUDIO/audio.h"
#include "../TUNER/tuner.h"
#include "../FMXMIT/xmit_inc.h"
#include "../AUTOSCAN/autoscan.h"
Include dependency graph for CODEC_autoscanHdl.c:

Go to the source code of this file.
Functions | |
| void | CODEC_autoscanPcmPut (int *pcmBuf, int len) |
| Function serves as the autoscan PCM data put handle. | |
| void | CODEC_autoscanPcmGet (int *pcmBuf, int len) |
| Function serves as the autoscan PCM data get handle. | |
|
||||||||||||
|
Function serves as the autoscan PCM data get handle.
Definition at line 87 of file CODEC_autoscanHdl.c. 00088 {
00089 leftChannel = pcmBuf;
00090 rightChannel = pcmBuf + len/2;
00091 }
|
|
||||||||||||
|
Function serves as the autoscan PCM data put handle.
Definition at line 48 of file CODEC_autoscanHdl.c. References st_AUTOSCAN::pLeftInput, and st_AUTOSCAN::pRightInput. 00049 {
00050 unsigned int i;
00051 int * pSrcLeft;
00052 int * pSrcRight;
00053 int * pDstLeft;
00054 int * pDstRight;
00055 int dataLen = len/2;
00056
00057 pSrcLeft = leftChannel;
00058 pSrcRight = rightChannel;
00059 pDstLeft = pcmBuf;
00060 pDstRight = pcmBuf + dataLen;
00061
00062 AutoscanGlobals.pLeftInput = pDstLeft;
00063 AutoscanGlobals.pRightInput = pDstRight;
00064
00065 for (i = 0; i < dataLen; i++)
00066 {
00067 FIRDeemphasisLeftTaps[0] = *pSrcLeft++;
00068 FIRDeemphasisRightTaps[0] = *pSrcRight++;
00069
00070 // apply demphasis filter
00071 *pDstLeft++ = TUNER_deemphasisFIR(&FIRDeemphasisLeft);
00072 *pDstRight++ = TUNER_deemphasisFIR(&FIRDeemphasisRight);
00073 }
00074
00075 AUTOSCAN_genMetrics(&AutoscanGlobals);
00076 }
|
1.3.9.1