adding media element in windows phone 7?

前端 未结 2 1703
再見小時候
再見小時候 2020-12-04 04:08

I want to play an audio of an image whenever click on it .If we click on another image that sound will play in that way we want write the logic.

2条回答
  •  无人及你
    2020-12-04 04:33

    i dont recommend mediaElement for more than one audio item ..it has weird effects ...use something like:

    Stream stream = TitleContainer.OpenStream(@"Audio/buzzer.wav");

            SoundEffect effect = SoundEffect.FromStream(stream);
            FrameworkDispatcher.Update();
            effect.Play();
    

    using the xna framework ....

提交回复
热议问题