当前位置:网站首页>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
边栏推荐
- Cesium loading display thermal diagram
- 数字时代的“文艺复兴”?起底数字藏品,让人欢喜让人愁
- Exercise: how difficult is it to simulate the blessing lottery two-color ball - China 500W grand prize? Just run the code.
- Hello CTP (III) - CTP quotation API
- 驻波比计算方法
- The problem that only the home page can be accessed under openSUSE Apache laravel
- Interview with Mo Tianlun | ivorysql wangzhibin - ivorysql, an Oracle compatible open source database based on PostgreSQL
- [rust contribution] implement Message Oriented Middleware (6) -client from zero
- Work assessment of Biopharmaceutics of Jilin University in March of the 22nd spring -00005
- Cesium drag 3D model
猜你喜欢

BGP biplane architecture
![[harmony OS] [arkui] ETS development graphics and animation drawing](/img/9d/0ac2b3d8bcdcd610767df930e2fa4e.png)
[harmony OS] [arkui] ETS development graphics and animation drawing

opencv怎么安装?opencv下载安装教程

冷热酸甜、想成就成?冷酸灵母公司登康口腔欲在深交所主板上市

Flutter FittedBox组件

DAP data scheduling function improvement description

Crawler grabs the idea of reading on wechat

练习:仿真模拟福彩双色球——中500w巨奖到底有多难?跑跑代码就晓得了。

【Harmony OS】【ARK UI】ETS 上下文基本操作

小心被偷脸!天天用的人脸识别风险原来这么多?
随机推荐
Uniapp makes mobile app programs, using uni Choosevideo record video, video playback is fuzzy, and the resolution is low
代錶多樣性的彩色 NFT 系列上線 The Sandbox 市場平臺
Serious PHP defects can lead to rce attacks on QNAP NAS devices
升级cmake
Hello CTP (IV) - CTP transaction API
【LeetCode】148. 排序链表
Development of trading system (XII) - Official quickfix document
学习码 滚动码 固定码 有什么区别重码数,编码容量滚动码的原理
Time management understood after working at home | community essay solicitation
numpy np tips:使用opencv对数组插值放缩到固定形状 cv2.resize(res, dsize=(64, 64), interpolation=cv2.INTER_CUBIC)
opencv是开源的吗?
Development of trading system (II) -- market data
“语法糖”——我的编程新知
How to draw an industry investment map
1280_C语言求两个无符号整形的平均值
OpenSUSE installation pit log
【Proteus仿真】Arduino UNO按键控制数码管闪烁增/减显示
Work assessment of Biopharmaceutics of Jilin University in March of the 22nd spring -00005
Where is the red area of OpenCV?
Hello CTP (I) - basic knowledge of futures