• 此项目
    • 正在载入...
  • 登录

潘浩彬 / JZSDK_Linux · 文件

转到一个项目

GitLab

  • 转到仪表盘
  • 项目
  • 活动
  • 文件
  • 提交
  • 管道 0
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 0
  • 成员
  • 标记
  • 维基
  • 派生
  • 网络
  • 创建新的问题
  • JZSDK_Linux
  • Module
  • AudioDeal
  • NoiseReduction
  • NoiseReduction.c
  • 修改
    17640ac7
    ookk303 在
    2024-09-27 14:51:35 +0800
    提交 浏览文件
NoiseReduction.c 371 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>

#include "JZsdkLib.h"

T_JZsdkReturnCode PcmNoiseReduction(unsigned char *data, int len, int threshold) 
{
    for (int i = 0; i < len; i++)
    {
        if (abs(data) >= 0xFF) 
        {
            data[i] = 0;
        }
    }
    
     
    return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
}