⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sample.cpp

📁 在vc上做的802.16d ofdm phy的仿真
💻 CPP
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -