当前位置:网站首页>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
边栏推荐
- Kunpeng devkit & boostkit
- 软件测试和硬件测试的区别及概念
- Based on the flask mall administrator functions
- 拯救流浪猫 | 「喵先锋」系列数字版权盲盒明日开抢
- GTK:Gdk-CRITICAL **: IA__gdk_draw_pixbuf: assertion ‘GDK_IS_DRAWABLE (drawable)’ failed
- CVE-2020-27986 (Sonarqube sensitive information leak) vulnerability fix
- tinymce-plugins
- 【C语言】剖析函数递归(2)
- [C language] Analysis of function recursion (1)
- 多个驻外使领馆发提醒 事关赴华出行、人身财产安全
猜你喜欢
随机推荐
此次519暴跌的几点感触 2021-05-21
FFmpeg 的AVCodecContext结构体详解
HALCON: 内存管理(Memory Management)
关于市场后市的发展预测? 2021-05-23
SQL函数 USER
SQL函数 UCASE
栈 && 队列
C# using 使用方法
RKMPP 在FFmpeg上实现硬编解码
rpm包的卸载与安装[通俗易懂]
【ONE·Data || Getting Started with Sorting】
C# 编译错误:Compiler Error CS1044
网络安全第六次作业
Large and comprehensive pom file example
目标检测场景SSD-Mobilenetv1-FPN
A number of embassies and consulates abroad have issued reminders about travel to China, personal and property safety
面试官:可以谈谈乐观锁和悲观锁吗
玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
【C语言】手把手带你写游戏 —— 猜数字
Mysql 基本操作指南之mysql查询语句