开发者

How to play sound file in a Windows 8 Metro app using WinRT?

开发者 https://www.devze.com 2023-04-11 21:23 出处:网络
The WinRT API surface in Windows 8 seems to have the ability to load and save Playlists, and capture audio. What I\'m looking for is somewha开发者_如何学运维t simpler: does WinRT have the ability to p

The WinRT API surface in Windows 8 seems to have the ability to load and save Playlists, and capture audio. What I'm looking for is somewha开发者_如何学运维t simpler: does WinRT have the ability to play audio from a file? If not, what's the recommended API for native code (C++) to play audio from a file in a Windows 8 metro app?


If you're in a WWA, you want to use the HTML tag to play audio. In xaml, you want to use a MediaElement.

If you're using low level C++, you want to use the MediaFoundation APIs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号