当前位置:网站首页>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
边栏推荐
- openmmlab-环境配置
- Hello CTP (IV) - CTP transaction API
- 严重的PHP缺陷可导致QNAP NAS 设备遭RCE攻击
- acmStreamOpen返回值问题
- numpy np tips: numpy数组的squeeze等处理
- [harmony OS] [arkui] ETS development graphics and animation drawing
- 【LeetCode】22. 括号生成
- 墨天轮访谈 | IvorySQL王志斌—IvorySQL,一个基于PostgreSQL的兼容Oracle的开源数据库
- WMS仓储管理系统的使用价值,你知道多少
- Development of trading system (VI) -- HFT high frequency trading
猜你喜欢

Development of trading system (V) -- Introduction to Sinovel counter

Crawl Sina Weibo fans

Where is the red area of OpenCV?

cesium 图形标注圆形、正方形、多边形、椭圆等

opencv 红色区域在哪里?

9 necessary soft skills for program ape career development
![[harmony OS] [ark UI] basic ETS context operations](/img/fb/a1b8463ba160e6c5aa23d671a0c245.png)
[harmony OS] [ark UI] basic ETS context operations

地方/园区产业规划之 “ 如何进行产业定位 ”

numpy np tips:使用opencv对数组插值放缩到固定形状 cv2.resize(res, dsize=(64, 64), interpolation=cv2.INTER_CUBIC)

Development of trading system (VII) -- Analysis of trading delay
随机推荐
opencv怎么安装?opencv下载安装教程
Development of trading system (XIII) -- Analysis of quickfix source code
"Grammar sugar" -- my new programming knowledge
Development of trading system (VII) -- Analysis of trading delay
Color NFT series representing diversity launched on the sandbox market platform
1.初识半音阶口琴
The problem that only the home page can be accessed under openSUSE Apache laravel
9 necessary soft skills for program ape career development
Siddhartha: the book of life can be regurgitated frequently
openmmlab-环境配置
[harmony OS] [ark UI] basic ETS context operations
1、项目第二阶段——用户注册和登陆
ZABBIX installation pit avoidance Guide
PHP code audit 1 - php Ini
Jilin University 22 spring March "career design" assignment assessment-00072
Cesium drag 3D model
OpenSUSE environment PHP connection Oracle
Work assessment of pharmacotherapeutics of Jilin University in March of the 22nd spring -00064
Understand (DI) dependency injection in PHP
Windows 2003 64 bit system PHP running error: 1% is not a valid Win32 Application