当前位置:网站首页>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
边栏推荐
- Development of trading system (XIII) -- Analysis of quickfix source code
- Siddhartha: the book of life can be regurgitated frequently
- Text keyword extraction: ansj
- 95% 程序员都在这里摸鱼……
- JS tool function, self encapsulating a throttling function
- 驻波比计算方法
- Work assessment of Biopharmaceutics of Jilin University in March of the 22nd spring -00005
- 【Harmony OS】【ARK UI】ETS 上下文基本操作
- cesium 图形标注圆形、正方形、多边形、椭圆等
- Development of trading system (III) - risk control system
猜你喜欢
Crawl Sina Weibo fans
长沙“求才”:“下力气”与“出实招”并进,“快发展”和“慢生活”兼得
Development of trading system (VIII) -- Construction of low delay network
Cesium loading display thermal diagram
9 necessary soft skills for program ape career development
【Harmony OS】【ARK UI】ETS 上下文基本操作
Cesium 加载显示热力图
练习:仿真模拟福彩双色球——中500w巨奖到底有多难?跑跑代码就晓得了。
La gamme NFT Color, qui représente la diversité, est en ligne sur la plate - forme du marché Sandbox
BGP biplane architecture
随机推荐
Flutter FittedBox组件
Russian Airi Research Institute, etc. | SEMA: prediction of antigen B cell conformation characterization using deep transfer learning
Although the Internet in the traditional sense has long ceased to exist, this does not mean that the Internet has long disappeared
Jilin University 22 spring March new development English comprehensive course (I) assignment assessment-00080
【Harmony OS】【ARK UI】ETS 上下文基本操作
Work assessment of pharmaceutical polymer materials of Jilin University in March of the 22nd spring -00025
【LeetCode】143. Rearrange linked list
Hello CTP (II) -- Introduction to CTP
2022-06-21-flink-49 (I. SQL manual)
Hello CTP (I) - basic knowledge of futures
Deveco studio 3.0 editor configuration tips
Standing wave ratio calculation method
Do you really need automated testing?
List rendering in wechat applet
Development of trading system (x) -- fix agreement
[harmony OS] [arkui] ETS development graphics and animation drawing
95% 程序员都在这里摸鱼……
长沙“求才”:“下力气”与“出实招”并进,“快发展”和“慢生活”兼得
JS tool function, self encapsulating a throttling function
On the self-cultivation of an excellent red team member