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