当前位置:网站首页>Audio stereo to mono (Audio Dual Channel to mono channel)
Audio stereo to mono (Audio Dual Channel to mono channel)
2022-06-13 05:59:00 【Live broadcast technology development exchange】
Some scenarios may require dual channel to single channel , Here is the dual channel S16 Interleaved format to single channel C++ Code , Simple implementation , Don't talk about getting dry goods directly ,Ctrl+CV Take it with you ~
#include <stdint.h>
#incudde <assert.h>
void StereoToMonoPCMS16(const int16_t* src, int16_t* dst, size_t frames)
{
assert(src);
assert(dst);
assert(frames > 0);
auto end = src + frames*2;
int32_t t;
while(src < end)
{
t = *src++;
t += *src++;
*dst++ = t >> 1;
}
}For more questions, please contact qq: 1130758427, github
边栏推荐
- Tongweb customs clearance guidelines
- Power of leetcode-4 - simple
- Leetcode- detect uppercase letters - simple
- 1 Introduction to drools rule engine (usage scenarios and advantages)
- After MySQL is installed, enter the "net start MySQL" command, and an error is reported that "net" is neither an internal or external command nor a runnable program
- Misunderstanding of tongweb due to ease of use
- MongoDB 多字段聚合Group by
- Integer tips
- 2 first experience of drools
- Exception after repeated application redeployment on tongweb: application instance has been stopped already or outofmemoryerror:metaspace
猜你喜欢

软件测试——接口常见问题汇总

Software testing - Summary of common interface problems

The SQL file of mysql8.0 was imported into version 5.5. There was a pit

Sqlplus connection failure

Mongodb Multi - field Aggregation group by

Etcd understanding of microservice architecture

How to view tongweb logs correctly?

Mongodb multi field aggregation group by

arrayList && linkedList

Vagrant virtual machine installation, disk expansion and LAN access tutorial
随机推荐
Leetcode- student attendance record i- simple
Byte buddy print execution time and method link tracking
Etcd understanding of microservice architecture
Exception after repeated application redeployment on tongweb: application instance has been stopped already or outofmemoryerror:metaspace
Leetcode- keyboard line - simple
Leetcode judge subsequence simple
Explanation of service registration and discovery API of Nacos series
MySQL fuzzy query and sorting by matching degree
@The detailed explanation of configurationproperties and the problem that all properties of the entity bean modified by this annotation are null after injection are solved
【自动化测试】Cypress手册
[spark]spark introductory practical series_ 8_ Spark_ Mllib (lower)__ Machine learning library sparkmllib practice
MongoDB 多字段聚合Group by
MySQL installation in Linux Environment
How MySQL optimizes the use of joint index ABC
Let's talk about how ArrayList is dynamically resized and what kind of mechanism is it?
Leetcode minimum absolute difference of binary search tree simple
SPI primary key generation strategy for shardingsphere JDBC
Leetcode guessing numbers game - simple
2021.9.29 learning log restful architecture
NVIDIA Jetson nano/xavier NX capacity expansion tutorial