Creating an audio signal in C # WPF

Is there a way to make a beep in C # WPF?

I was looking for a WPF beep, but all I could find was beeping in the usual form of Windows.

+4
source share
3 answers

You can make a sound using:

SystemSounds.Beep.Play();
+17
source
// Plays the sound associated with the Beep system event.
SystemSounds.Beep.Play();

This works in WPF ( http://msdn.microsoft.com/en-us/library/system.media.systemsounds.beep(v = vs 0.110) .aspx )

+6
source

You can play any thing:

SoundPlayer snd = new SoundPlayer(filePath);
snd.Play();
+1
source

Source: https://habr.com/ru/post/1545599/


All Articles