当前位置:网站首页>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
边栏推荐
- Redis all
- FFmpeg 的AVCodecContext结构体详解
- 拯救流浪猫 | 「喵先锋」系列数字版权盲盒明日开抢
- Large and comprehensive pom file example
- 数值的整数次方
- 矩阵中的路径
- Mysql 基本操作指南之mysql查询语句
- HALCON: 对象(object)从声明(declaration)到结束(finalization)
- Awesome!Alibaba interview reference guide (Songshan version) open source sharing, programmer interview must brush
- SQL函数 $TSQL_NEWID
猜你喜欢
随机推荐
【C语言】细品分支结构——switch语句
js array recursively use
供应磷脂-聚乙二醇-羧基,DSPE-PEG-COOH,DSPE-PEG-Acid,MW:5000
Flutter 实现光影变换的立体旋转效果
监管再次重拳出击,后市如何?2021-05-22
CSDN(成长一夏竞赛)- 最大数
【C语言】夏日一题 —— 如何判断素数?
els 长条碰撞变形判断
【Tensorflow】AttributeError: ‘_TfDeviceCaptureOp‘ object has no attribute ‘_set_device_from_string‘
Detailed explanation of ORACLE expdp/impdp
RKMPP库快速上手--(一)RKMPP功能及使用详解
Mysql index details (with pictures and texts)
泡利不相容原理适用的空间范围(系统)是多大?
定了!就在7月30日!
标量替换、栈上分配、同步消除
关于市场后市的发展预测? 2021-05-23
C# 编译错误:Compiler Error CS1044
【C语言】剖析函数递归(2)
"Second Uncle" is popular, do you know the basic elements of "exploding" short videos from the media?
RHCE第一天作业