简体   繁体   中英

How can I use the GetDefaultAudioEndpoint() of IMMDeviceEnumerator interface in Delphi?

Please see this post: DSPack - How to get the default device for sound output?

which I had also posted here: http://www.progdigy.com/forums/viewtopic.php?t=4993

As per this post: http://social.msdn.microsoft.com/forums/en-US/windowsgeneraldevelopmentissues/thread/108fc80c-5d09-4c09-a806-58339dfb7197/

it is possible to get it using GetDefaultAudioEndpoint() method of IMMDeviceEnumerator interface.

Can anyone tell me how to do this? Will it work on both Windows 7 and Windows XP?

NOTE: I am interested in Delphi code to get the default device using the above functions please.

Will it work on both Windows 7 and Windows XP?

No, as the minimum supported client for IMMDeviceEnumerator::GetDefaultAudioEndpoint is Windows Vista.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM