Does anyone have a sample on how to control timing of a audio clip in wpf c#
I'm using this code to control timing of a animated disappearing of a image.
DoubleAnimation AnimImage3Ut = new DoubleAnimation();
AnimImage3Ut.From = 1;
AnimImage3Ut.To = 0;
AnimImage3Ut.BeginTime = (TimeSpan.FromSeconds(12.0));
AnimImage3Ut.Duration = new Duration(TimeSpan.FromSeconds(1.0));
image3.BeginAnimation(Image.OpacityProperty, AnimImage3Ut);
I want to play a sound clip (i a mp3 file) that is somehow synchronized with this animation. Anyone know how this can be done simply?