Windows phone 8 我的游戏中没有音效

Windows phone 8 我的游戏中没有音效,windows-phone-8,xna,Windows Phone 8,Xna,我正在为windows phone开发一个游戏。游戏的目标版本为7.1和7.1,wp8设备将支持游戏和应用程序 这是我的密码: public SoundEffect l1; public SoundEffectInstance level1sound; l1 = contentManager.Load<SoundEffect>("sound/level1"); level1sound = l1.CreateInstance(); level1sound.IsLooped = true

我正在为windows phone开发一个游戏。游戏的目标版本为7.1和7.1,wp8设备将支持游戏和应用程序

这是我的密码:

public SoundEffect l1;
public SoundEffectInstance level1sound;
l1 = contentManager.Load<SoundEffect>("sound/level1");
level1sound = l1.CreateInstance();
level1sound.IsLooped = true;
level1sound.Play();
公共音响效果l1;
公共声音效果实例级别1声音;
l1=contentManager.Load(“声音/级别1”);
level1sound=l1.CreateInstance();
level1sound.IsLooped=true;
level1sound.Play();
游戏声音在7.1模拟器中运行良好,但当我部署在wp8设备上时,一切都不起作用


如何解决此问题?

如果您开发Silverlight游戏,则必须在每个帧中调用方法来分派XNA Framework消息队列中的消息

声音文件属性应设置为soundeffect类型

我正在开发Silverlight+XNA游戏和FrameworkDispatcher。Update()对此不起作用。