如何在 Windows Phone 7(.1) 中选择或播放系统声音?
我希望我的应用程序的用户能够从 Windows Phone 7 系统声音中选择一种声音,或者播放特定的声音(例如播放“新电子邮件”声音)。
如何枚举已安装的声音?或者有内置的声音选择器吗?我可以询问系统针对哪些事件播放哪些声音吗?
I want the user of my app to be able to select a sound from the windows phone 7 system sounds, or play a specific one (like playing the "new email"-sound).
How can I enumerate the installed sounds? Or is there a builtin sound-selector? Can I ask the system which sounds are played for what events?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法访问系统声音。这包括播放声音或查看哪些文件/声音与哪些事件相关联。
例外情况是保存新文件以用作铃声,现在(从 7.1 开始)可以使用 保存铃声任务。
Access to system sounds is not available. This include playing the sounds or seeing what files/sounds are associated with what events.
The exception is saving new files to use as ringtones which can now (as of 7.1) be done with the SaveRingtoneTask.