Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/293.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 尝试在音频播放代理中播放音频时出错。System.SystemException:HRESULT=0xC00D001A_C#_Audio_Windows Phone 8_Windows Phone - Fatal编程技术网

C# 尝试在音频播放代理中播放音频时出错。System.SystemException:HRESULT=0xC00D001A

C# 尝试在音频播放代理中播放音频时出错。System.SystemException:HRESULT=0xC00D001A,c#,audio,windows-phone-8,windows-phone,C#,Audio,Windows Phone 8,Windows Phone,我想在后台播放音频 所以我在我的主要项目中做了这个 BackgroundAudioPlayer.Instance.Track = audioTrack; BackgroundAudioPlayer.Instance.Play(); 和内部音频背景代理: protected override void OnUserAction(BackgroundAudioPlayer player, AudioTrack track, UserAction action, object param) {

我想在后台播放音频

所以我在我的主要项目中做了这个

BackgroundAudioPlayer.Instance.Track = audioTrack;
BackgroundAudioPlayer.Instance.Play();
和内部音频背景代理:

protected override void OnUserAction(BackgroundAudioPlayer player, AudioTrack track, UserAction action, object param)
{
    switch (action)
    {
        case UserAction.Play:
            player.Play();
            break;
        case UserAction.Stop:
            player.Stop();
            break;
        case UserAction.Pause:
            player.Pause();
            break;
        case UserAction.FastForward:
            player.FastForward();
            break;
        case UserAction.Rewind:
            player.Rewind();
            break;
        default:
            break;
    }
    NotifyComplete();
}
但我有一个错误:

System.SystemException:HRESULT=0xC00D001A


我还有另一个问题:在我关闭应用程序后,这会继续播放吗?

错误代码应该说明一切:

  • 0xC00D001A
  • “系统找不到指定的文件。”