当前位置:网站首页>Acmstreamopen return value problem
Acmstreamopen return value problem
2022-06-25 04:10:00 【Small waves-】
explain :
It was more than ten years ago that I first encountered this function , Recently, I turned to the back , It feels very interesting , Why didn't you use it very much , It seems that not many people use it now , I called , I don't know whether the calling environment has changed after many years or what , How to return 512. So I began to search for the answer .
Understand this function , Still want to know windows In the library msacm, This thing comes from Windows Multimedia, Already more than 20 Years of old technology . Usually called ACM(Audio Compression Manager, Audio Compression Manager ), They are responsible for managing all audio codecs in the system . As long as the number decoder is registered in the system, it can be used acm decode , Applications can be ACM or VCM The provided programming interface calls the off the shelf codec in these systems to realize the compression and decompression of audio or video data .
Use acm Can be played and registered in the system , Convert any format of sound file driven , For example, my machine has mp3 Format driver and have conversion driver , I can play it . From the official website ,acm There are enough correlation functions , The function is also powerful enough , Why not ?
Problems encountered :
acmStreamOpen return 512
Take out the old routine and run , Enumerating devices is no problem , Also found GSM And so on , And then I recorded a PCM(8000,1,8) The audio of , I want to change to GSM, Go to the acmStreamOpen It's stuck , I can't go on , return 512.
What the hell is it ? If you look at the process carefully, you can't see the problem , The return value is not explained . Search online , That's all. N The old problem years ago , And most of them have no follow-up .
No documents , There are no examples , Use fewer people , It seems that it can only be stuck , It doesn't mean anything to me , Just give up . Can it be said that after 20 It can still be preserved for many years windows There is a problem with the technology in the library , No .
But it doesn't seem to be without a clue , Before the program or run , So the function call order is adjusted , Find out acmStreamOpen Back to 8, There are some invisible pits . Return value 8 There are still explanations MMSYSERR_NOTSUPPORTED function isn't supported. Someone has met this thing , It is said that the format is wrong , After adjustment, you can pass .
Write the encoded audio into wav file , Play it , I found that the first few seconds were silent , It seems that transcoding is not so normal , Let's talk about it when we have time .

summary :
MSACM This thing is very unfriendly to people who come into contact for the first time ,MSDN There are only function descriptions on the but not how to use them , And the return value of the encapsulated codec function is not clear , It makes people crazy , A large number of codec libraries on the Internet are more direct ?
This thing looks powerful , It may not be good to use .
Reference resources :
acmDriverOpen function (msacm.h) - Win32 apps | Microsoft Docs
About :
qq:9611153 WeChat lgs9611153
边栏推荐
- PHP代码审计1—PHP.ini的那些事
- Comprehensive assignment of thesis writing instruction of Dongcai
- 1. first knowledge of chromatic harmonica
- MySQL插入过程报错1062,但是我没有该字段。
- Development of trading system (II) -- market data
- SEO的5大关键指标:排名+流量+会话+停留时长+跳出率
- Color NFT series representing diversity launched on the sandbox market platform
- 1280_ C language to find the average value of two unsigned integer
- How to use ide to automatically sign and debug Hongmeng application
- AI quantitative transaction (I) -- Introduction to quantitative transaction
猜你喜欢

SEO的5大关键指标:排名+流量+会话+停留时长+跳出率
![[team learning] SQL programming language notes - task04](/img/3e/c75f5b4610c6b6700567fe75cd2339.png)
[team learning] SQL programming language notes - task04

Trading system development (IV) - trading counter system

opencv是开源的吗?

《Missing Parts》NFT 作品集第 5 系列上线 The Sandbox 市场平台

代錶多樣性的彩色 NFT 系列上線 The Sandbox 市場平臺

警惕超范围采集隐私-移动APP违规十宗罪

2.吹响半音阶口琴

Vigilance against over range collection of privacy - ten mobile app violations
佐喃社区
随机推荐
Interview with Mo Tianlun | ivorysql wangzhibin - ivorysql, an Oracle compatible open source database based on PostgreSQL
Development of trading system (x) -- fix agreement
[team learning] SQL programming language notes - task04
(超详细onenet TCP协议接入)arduino+esp8266-01s接入物联网平台,上传实时采集数据/TCP透传(以及lua脚本如何获取和编写
Is opencv open source?
opencv怎么安装?opencv下载安装教程
地方/园区产业规划之 “ 如何进行产业定位 ”
Simple integration of client go gin 11 delete
Jilin University 22 spring March "career design" assignment assessment-00072
(ultra detailed onenet TCP protocol access) arduino+esp8266-01s accesses the Internet of things platform, uploads real-time collected data /tcp transparent transmission (and how to obtain and write Lu
1.初识半音阶口琴
Hello CTP (II) -- Introduction to CTP
【Harmony OS】【ARK UI】ETS 上下文基本操作
Intel 13代酷睿首次露出真面目:68MB缓存提升明显
PHP代码审计2—这些函数必知必会
Jilin University 22 spring March "official document writing" assignment assessment-00034
MySQL modifies and deletes tables in batches according to the table prefix
Work assessment of Biopharmaceutics of Jilin University in March of the 22nd spring -00005
How to draw an industry investment map
Where is the red area of OpenCV?