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 开发者_Python百科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.
精彩评论