当前位置:网站首页>Audio processing: floating point data stream to PCM file
Audio processing: floating point data stream to PCM file
2022-08-02 14:00:00 【smartisong】
In some data processing, it is necessary to convert the received data (floating point) into PCM file, that is, binary file, and thenThen convert it into an audio file, listen to it or save it.
- PCM* (Pulse Code Modulation) is also known as Pulse Code Modulation.PCM audio data is uncompressed audio sample data raw stream, which is standard digital audio data converted from analog signals through sampling, quantization, and encoding.
In some existing programs, audio files are basically output directly, and there is no intermediate PCM file output, but it is still needed in some scenarios.
For PCM binary files, another important parameter is the precision, the common ones are 8bit, 16bit, 24bit, 32bit.The sampled data of 8bit PCM is unsigned data, while the sampled data of 16bit PCM is signed data.
For this purpose, the above functions are realized by using C code, the code is as follows:
// float to PCM void floatDataToPCMfile(){// to do}
Create a blog post first, then fill in the hole later........
If you need it, you can comment and private message
边栏推荐
猜你喜欢
【C语言】手把手带你写游戏 —— 猜数字
Redis all
文件加密软件有哪些?保障你的文件安全
[C language] Analysis of function recursion (2)
Get out of the machine learning world forever!
不精确微分/不完全微分(Inexact differential/Imperfect differential)
k8s之KubeSphere部署有状态数据库中间件服务 mysql、redis、mongo
如何解决mysql服务无法启动1069
【C语言】函数哪些事儿,你真的get到了吗?(1)
微信小程序-最近动态滚动实现
随机推荐
你接受不了60%的暴跌,就没有资格获得6000%的涨幅 2021-05-27
Mysql index details (with pictures and texts)
[C language] Analysis of function recursion (2)
不精确微分/不完全微分(Inexact differential/Imperfect differential)
Redis all
定了!就在7月30日!
矩阵中的路径
[C language] Analysis of function recursion (1)
GTK:Gdk-CRITICAL **: IA__gdk_draw_pixbuf: assertion ‘GDK_IS_DRAWABLE (drawable)’ failed
Get out of the machine learning world forever!
RHCE第一天作业
【C语言】夏日一题 —— 如何判断素数?
Fabric.js 动态设置字号大小
els 长条碰撞变形判断
世界上最大的开源基金会 Apache 是如何运作的?
腾讯安全发布Tencent Cloud EdgeOne,为企业出海打造安全加速一体化服务
Based on the flask mall administrator functions
删除链表的节点
标量替换、栈上分配、同步消除
微信小程序如何实现支付功能?看官方文档头疼(使用云函数的方式操作)「建议收藏」