Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Playing sound and waiting to finish

$
0
0

Hi,

I want to play audio files and wait for them to finish before the code continues execution. This was previously doable by using the My.Computer.Audio.Play() and then giving it theAudioPlayMode.WaitToComplete flag.

My problem is that from what I can see, with the MediaPlayer class, there is nothing similar.

Has anyone got a possible solution to do what I need to do?

Many thanks for your help.
- John.



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>