[UWP] ogg在模拟器中发出声音 [英] [UWP]ogg sounds in simulator
问题描述
W 母鸡我在模拟器中测试我的应用程序,.ogg格式的声音是听不见的(.mp3 = ok)。
我想知道它是否是一个配置错误模拟器,如果它们将在商店上发布后在所有媒体上听到。
谢谢。
When i test my app in the simulator, sounds in .ogg format are inaudible (.mp3 = ok).
I wanted to know if it is a misconfiguration of the simulator and if they will be audible on all media after publication on the store.
Thank you.
问候。
推荐答案
你好FhilFab,
Hi FhilFab,
不幸的是,UWP环境本身不支持.ogg编解码器和文件格式。如果您想使用此编解码器,则需要找到第三方解决方案并将其添加到您的应用中。
Unfortunately the UWP environment does not support the .ogg codec and file format natively. If you would like to use this codec you will need to find a 3rd party solution and add it to your app.
以下是指向支持的编解码器的链接UWP平台上的框。
Here is a link to the codecs that are supported out of the box on the UWP platform.
https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/supported-codecs
我希望这有帮助,
James
这篇关于[UWP] ogg在模拟器中发出声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!