Feeling

              三人行,必有我?guī)熝?/p>

             ::  :: 新隨筆 :: 聯(lián)系 ::  :: 管理 ::
            185 隨筆 :: 0 文章 :: 392 評(píng)論 :: 0 Trackbacks

          沉寂了一段時(shí)間,現(xiàn)在繼續(xù)SWT Win32 Extension的開(kāi)發(fā),說(shuō)實(shí)話,最近的進(jìn)展挺失敗的。Black Glossy效果我發(fā)現(xiàn)在某些機(jī)器上的顯示效果非常的卡,我自己的機(jī)器卻沒(méi)有任何問(wèn)題。另外就是我最近在XP下實(shí)現(xiàn)了Window Mixer API,用來(lái)管理系統(tǒng)聲音。Win98,2000,XP都沒(méi)有問(wèn)題,結(jié)果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.

          沒(méi)脾氣了,只能專門為Vista實(shí)現(xiàn)一套簡(jiǎn)單的API了。

          評(píng)論

          # re: Vista居然把Mixer拿掉了:-( 2008-10-23 19:42 BeanSoft
          支持! 注意身體!  回復(fù)  更多評(píng)論
            

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

          微軟的人都這么幽默嗎?  回復(fù)  更多評(píng)論
            

          # re: Vista居然把Mixer拿掉了:-( 2008-10-24 09:11 王建璞
          can these be translated to chinese?  回復(fù)  更多評(píng)論
            

          # re: Vista居然把Mixer拿掉了:-( 2008-10-24 09:12 王建璞
          My E is so poor to understand it deeply  回復(fù)  更多評(píng)論
            

          # re: Vista居然把Mixer拿掉了:-([未登錄](méi) 2009-10-23 10:50 GoKu
          這個(gè)應(yīng)該與驅(qū)動(dòng)有關(guān),你換個(gè)硬件廠商的原廠驅(qū)動(dòng)  回復(fù)  更多評(píng)論
            


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          GitHub |  開(kāi)源中國(guó)社區(qū) |  maven倉(cāng)庫(kù) |  文件格式轉(zhuǎn)換 
          主站蜘蛛池模板: 建宁县| 苍溪县| 南城县| 惠水县| 武胜县| 盈江县| 涿鹿县| 石门县| 南郑县| 武宣县| 易门县| 盐边县| 吉木萨尔县| 临湘市| 灌南县| 莲花县| 上高县| 蛟河市| 哈尔滨市| 神池县| 灵寿县| 前郭尔| 望谟县| 沙雅县| 石渠县| 清新县| 黎城县| 武宣县| 彩票| 台北县| 封开县| 社旗县| 宣武区| 梨树县| 舞钢市| 板桥市| 武宁县| 金湖县| 涟水县| 仙居县| 监利县|