开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜