• 大小: 296KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-15
  • 语言: Java
  • 标签: 声波通信  

资源简介

跨平台声声波信代码,支持Android/IOS/Linux

资源截图

代码片段和文件信息

//
//  DCRejectionFilter.cpp
//
//
//  Created by linyehui on 2014-04-10.
//  Copyright (c) 2014年 linyehui. All rights reserved.
//

#include “DCRejectionFilter.h“

const float DCRejectionFilter::kDefaultPoleDist = 0.975f;

//////////////////////////////////////////////////////////

DCRejectionFilter::DCRejectionFilter(float poleDist)
{
Reset();
}

void DCRejectionFilter::Reset()
{
mY1 = mX1 = 0;
}

void DCRejectionFilter::InplaceFilter(float* ioData unsigned long numframes)
{
for (unsigned long i=0; i < numframes; i++)
{
        float xCurr = ioData[i];
ioData[i] = ioData[i] - mX1 + (kDefaultPoleDist * mY1);
        mX1 = xCurr;
        mY1 = ioData[i];
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-06 14:46  sonicWave\
     目录           0  2015-07-06 14:45  sonicWave\android\
     目录           0  2015-07-06 14:45  sonicWave\android\sample\
     文件         466  2014-10-27 15:42  sonicWave\android\sample\.classpath
     文件        3748  2014-10-27 15:42  sonicWave\android\sample\.cproject
     文件        2892  2014-10-27 15:42  sonicWave\android\sample\.project
     文件         919  2014-10-27 15:42  sonicWave\android\sample\AndroidManifest.xml
     文件       51614  2014-10-27 15:42  sonicWave\android\sample\ic_launcher-web.png
     目录           0  2015-07-06 14:45  sonicWave\android\sample\jni\
     文件        2409  2014-10-27 15:42  sonicWave\android\sample\jni\Android.mk
     文件          22  2014-10-27 15:42  sonicWave\android\sample\jni\Application.mk
     文件         677  2014-10-27 15:42  sonicWave\android\sample\jni\DCRejectionFilter.cpp
     文件         523  2014-10-27 15:42  sonicWave\android\sample\jni\DCRejectionFilter.h
     文件        3530  2014-10-27 15:42  sonicWave\android\sample\jni\SonicGenerator.cpp
     文件        2947  2014-10-27 15:42  sonicWave\android\sample\jni\SonicListener.cpp
     文件         736  2014-10-27 15:42  sonicWave\android\sample\jni\com_duowan_sonic_SonicGenerator.h
     文件        1128  2014-10-27 15:42  sonicWave\android\sample\jni\com_duowan_sonic_SonicListener.h
     文件         781  2014-10-27 15:42  sonicWave\android\sample\proguard-project.txt
     文件         563  2014-10-27 15:42  sonicWave\android\sample\project.properties
     目录           0  2015-07-06 14:45  sonicWave\android\sample\res\
     目录           0  2015-07-06 14:45  sonicWave\android\sample\res\drawable-hdpi\
     文件        7686  2014-10-27 15:42  sonicWave\android\sample\res\drawable-hdpi\ic_launcher.png
     目录           0  2015-07-06 14:45  sonicWave\android\sample\res\drawable-mdpi\
     文件        3801  2014-10-27 15:42  sonicWave\android\sample\res\drawable-mdpi\ic_launcher.png
     目录           0  2015-07-06 14:45  sonicWave\android\sample\res\drawable-xhdpi\
     文件       12532  2014-10-27 15:42  sonicWave\android\sample\res\drawable-xhdpi\ic_launcher.png
     目录           0  2015-07-06 14:45  sonicWave\android\sample\res\drawable-xxhdpi\
     文件       24726  2014-10-27 15:42  sonicWave\android\sample\res\drawable-xxhdpi\ic_launcher.png
     目录           0  2015-07-06 14:45  sonicWave\android\sample\res\layout\
     文件        1245  2014-10-27 15:42  sonicWave\android\sample\res\layout\activity_main.xml
     目录           0  2015-07-06 14:45  sonicWave\android\sample\res\menu\
............此处省略138个文件信息

评论

共有 条评论