如何检测如果另一个音频播放的背景是什么? (Windows Phone 7的)音频、背景、Phone、Windows

2023-09-02 02:01:49 作者:_少〆骗ゞǒ

我的一个应用程序最近失败的认证,因为:我的应用程序停止的背景音乐,而不要求用户当它要播放一些音乐

现在的问题是:我们如何可以检测是否有音乐播放的背景

问候

解决方案

 使用Microsoft.Xna.Framework.Media;
 

...

 如果(Microsoft.Xna.Framework.Media.MediaPlayer.State == MediaState.Playing)
    {
          ....
    }
 
在Adobe Audition CC2014中,怎么处理这个音频的那个背景声

One of my apps have recently failed certification because: "my app stops background music without asking user when it wants to play some music".

Now the question is: how can we detect if there is any music playing in the background?

Regards

解决方案

  using Microsoft.Xna.Framework.Media;

...

    if (Microsoft.Xna.Framework.Media.MediaPlayer.State == MediaState.Playing)
    {
          ....
    }