Feeling

    三人行,必有我师焉

   ::  :: 新随笔 :: 联系 ::  :: 管理 ::
  52 随笔 :: 0 文章 :: 172 评论 :: 0 Trackbacks

沉寂了一段时间,现在继续SWT Win32 Extension的开发,说实话,最近的进展挺失败的。Black Glossy效果我发现在某些机器上的显示效果非常的卡,我自己的机器却没有任何问题。另外就是我最近在XP下实现了Window Mixer API,用来管理系统声音。Win98,2000,XP都没有问题,结果Vista让我郁闷了,Vista居然取消了Mixer,我哭呀。以下是微软员工给出的答案:

That's because the mixer APIs are virtualized on Windows Vista - you don't get to see the real audio hardware by default, only a virtualized version.  We did this because the vast majority of applications that used the mixer APIs were using them to control their own volume, which is quite rude (it says "I own the box, no other sounds on the system matter").

 You have two choices.  The first is to run your application in XP compatibility mode, in which case you'll be able to access the real audio hardware (please note: you'll see exactly what the hardware provides, which may lead to surprising results).

 The other choice is to use the new Vista audio engine APIs.  either the IAudioEndpointVolume API which allows you access to the master volume for each of the audio endpoints on the machine.  If you really need to access the actual audio controls the IDeviceTopology interface will allow you direct access to the various controls on the audio hardware.

没脾气了,只能专门为Vista实现一套简单的API了。
posted on 2008-10-23 18:25 三人行,必有我师焉 阅读(1507) 评论(4)  编辑  收藏

评论

# re: Vista居然把Mixer拿掉了:-( 2008-10-23 19:42 BeanSoft
支持! 注意身体!  回复  更多评论
  

# re: Vista居然把Mixer拿掉了:-( 2008-10-23 20:09 非鱼
which may lead to surprising results.

微软的人都这么幽默吗?  回复  更多评论
  

# re: Vista居然把Mixer拿掉了:-( 2008-10-24 09:11 王建璞
can these be translated to chinese?  回复  更多评论
  

# re: Vista居然把Mixer拿掉了:-( 2008-10-24 09:12 王建璞
My E is so poor to understand it deeply  回复  更多评论
  


标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
 
 

推荐图书:
走出软件作坊》、《悟透JavaScript》、《Head First 设计模式
相关链接:
网站导航: