在 Windows Phone 7 模拟器上上传/模拟一组歌曲

发布于 2024-10-08 19:08:21 字数 303 浏览 0 评论 0原文

我正在编写一款 Windows Phone 7 游戏,该游戏涉及从歌曲中提取频谱并基于此构建游戏关卡。到目前为止,我遇到的唯一问题是我无法使用 Zune 媒体库中的任何歌曲,因为模拟器上没有任何歌曲。我还没有设备。我下载了模拟器的解锁版本,其中有更多应用程序,包括 zune,但当我打开 Zune 时,它​​似乎是空的。

我可以以某种方式上传或模拟(在运行时将歌曲添加到媒体库)歌曲集,以便我可以使用模拟器测试游戏吗?

PS 我认为有一个工具可以让您将设备同步到 PC 上的 Zune 客户端,但我不确定它是否可以与模拟器一起使用。

请帮忙。

I am writing a windows phone 7 game that deals with extracting the spectrum out of a song and building the game level based on that. The only problem I have so far, though is that I cannot use any song out of the Zune media library, because there aren't any on the emulator. I do not have a device yet. I downloaded an unlocked build of the emulator, which has more apps, including zune, but when I open Zune, it seems to be empty.

Can I somehow upload or simulate (add songs to the medialibrary at runtime) a song collection so that I can test the game with the emulator?

P.S. I think that there's a tool that let's you sync your device to the Zune client on the PC, but I'm not sure whether it will work with the emulator.

Please, help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迟月 2024-10-15 19:08:21

不,您无法在 PC 和模拟器之间同步。

不过,我默认在模拟器中看到 3 首歌曲。
您可以通过 MediaLibrary.Songs 访问它们 集合。只需添加对 Microsoft.Xna.Framework 的引用(是的,即使您有一个基于 Silverlight 的项目。),就可以开始了。

using (var myMediaLibrary = new Microsoft.Xna.Framework.Media.MediaLibrary())
{
    foreach (var song in myMediaLibrary.Songs)
    {
        songList.Items.Add(new TextBlock {Text = song.Name});
    }
}

您必须拥有该工具的 RTM 版本,因为 Beta 或 CTP 版本中没有这些工具。

No you can't sync between your PC and the emulator.

I, however see 3 songs available in the emulator by default though.
You can access them via the MediaLibrary.Songs collection. Simply add a reference to Microsoft.Xna.Framework (Yes, even if you've got a Silverlight based project.) and you're good to go.

using (var myMediaLibrary = new Microsoft.Xna.Framework.Media.MediaLibrary())
{
    foreach (var song in myMediaLibrary.Songs)
    {
        songList.Items.Add(new TextBlock {Text = song.Name});
    }
}

You must have the RTM version of the tools though as they weren't there in the Beta or CTP versions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文