Feeling

              三人行,必有我師焉

             ::  :: 新隨筆 :: 聯系 ::  :: 管理 ::
            185 隨筆 :: 0 文章 :: 392 評論 :: 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 三人行,必有我師焉 閱讀(2388) 評論(5)  編輯  收藏

          評論

          # 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  回復  更多評論
            

          # re: Vista居然把Mixer拿掉了:-([未登錄] 2009-10-23 10:50 GoKu
          這個應該與驅動有關,你換個硬件廠商的原廠驅動  回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          GitHub |  開源中國社區 |  maven倉庫 |  文件格式轉換 
          主站蜘蛛池模板: 剑河县| 镇巴县| 开封县| 青阳县| 闸北区| 鞍山市| 平武县| 凤凰县| 林口县| 南京市| 凤冈县| 巴中市| 七台河市| 邻水| 阳江市| 土默特左旗| 含山县| 湟源县| 祁阳县| 环江| 遂宁市| 乾安县| 岢岚县| 德阳市| 余姚市| 泸州市| 汾西县| 鸡西市| 云梦县| 贵定县| 奇台县| 左权县| 濉溪县| 阜阳市| 江源县| 报价| 隆德县| 丹寨县| 宜阳县| 方正县| 皮山县|