在WP7中播放声音循环
问题描述:
我需要在触摸屏幕上播放声音,它应该保持播放状态,直到用户将他的手从屏幕上移开。这里是我的代码,在WP7中播放声音循环
private void OnMouseDown(object sender, Moenter code hereuseButtonEventArgs e)
{
clicked = true;
ColoringSound.Source = new Uri("Sounds/drawing.mp3", UriKind.Relative);
ColoringSound.Play();
}
private void OnMouseUp(object sender, MouseButtonEventArgs e)
{
clicked = false;
}
希望我的回答,[在这篇文章中可能会对您有所帮助。] [1]请检查一致。 [1]:http://stackoverflow.com/questions/9676183/how-to-play-mp3-file-in-loop-in-wp7 – Santhu 2012-03-13 06:30:56
感谢Santhu但我的应用程序是不是不添加文件像那样。这是版本的问题吗? – 2012-03-13 09:11:06