当前位置:网站首页>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
边栏推荐
猜你喜欢

k8s之KubeSphere部署有状态数据库中间件服务 mysql、redis、mongo

【C语言】函数哪些事儿,你真的get到了吗?(1)
![[C language] Explicit array solution (1)](/img/d2/26e3e64bb07578a6348747c00abb64.png)
[C language] Explicit array solution (1)

乐心湖‘s Blog——MySQL入门到精通 —— 囊括 MySQL 入门 以及 SQL 语句优化 —— 索引原理 —— 性能分析 —— 存储引擎特点以及选择 —— 面试题

你接受不了60%的暴跌,就没有资格获得6000%的涨幅 2021-05-27

【C语言】夏日一题 —— 如何判断素数?

删除链表的节点

Differences and concepts between software testing and hardware testing

保姆级教程:写出自己的移动应用和小程序(篇三)

【C语言】剖析函数递归(1)
随机推荐
世界上最大的开源基金会 Apache 是如何运作的?
Differences and concepts between software testing and hardware testing
打破文件锁限制,以存储力量助力企业增长新动力
二分查找 && 树
【学习笔记】数位dp
GTK:Gdk-CRITICAL **: IA__gdk_draw_pixbuf: assertion ‘GDK_IS_DRAWABLE (drawable)‘ failed
Image retrieval method based on deep learning!
2022-08-02日报:2022年7月最热的10篇AI论文
【C语言】手撕循环结构 —— while语句
k8s之KubeSphere部署有状态数据库中间件服务 mysql、redis、mongo
mysql的case when如何用
【C语言】虐打循环练习题(2)
监管再次重拳出击,后市如何?2021-05-22
【C语言】明解数组(1)
Why does a four-byte float represent a wider range than an eight-byte long
C语言提高篇(三)
RKMPP库快速上手--(一)RKMPP功能及使用详解
腾讯安全游戏行业研讨会:生态共建,护航游戏产业健康发展
多个驻外使领馆发提醒 事关赴华出行、人身财产安全
网络安全第一次作业