sample.cpp
来自「在vc上做的802.16d ofdm phy的仿真」· C++ 代码 · 共 18 行
CPP
18 行
#include "typedef.h"
#include "sample.h"
void sample (Int16 *pSampleIn, Uint16 sampleInLength,
Uint8 sampleRate, Int16 *pSampleOut)
{
Int16 i;
Uint16 tempSize;
tempSize = sampleInLength / sampleRate;
for (i = 0; i < tempSize; i++)
{
pSampleOut[2*i] = pSampleIn[2*sampleRate*i];
pSampleOut[2*i+1] = pSampleIn[2*sampleRate*i+1];
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?