We have collected the most relevant information on My.Computer.Audio.Play Resource. Open the URLs, which are collected below, and you will find all the info you are interested in.
Audio.Play Method (Microsoft.VisualBasic.Devices ...
https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.devices.audio.play
The My.Computer.Audio.Play method plays the specified sound in the background when PlayMode.Background is specified. VB Sub PlayBackgroundSoundFile () My.Computer.Audio.Play ("C:\Waterfall.wav", AudioPlayMode.WaitToComplete) End Sub This code example can only run within a Windows Forms application.
My.Computer.Audio.Play - strange behavior
https://social.msdn.microsoft.com/forums/en-US/1d3185e3-3605-4c98-b8ac-8e281bde84e1/mycomputeraudioplay-strange-behavior
My.Computer.Audio.Play(My.Resources.GridClick, AudioPlayMode.Background) This works, after a fashion, but fails every time after a few minutes when the sound has played several (quite a lot) of times with the following: vshost has stopped working. A problem caused the program to stop working correctly. Please close the program.
My.computer.audio.play stopped working in my vb.net program.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/ade9d1a1-a475-4eff-b10c-2517072840f7/mycomputeraudioplay-stopped-working-in-my-vbnet-program
BTW, none of the code with the My.Computer.Audio.Play stuff is in the MainFrm, it is actually in a module called "modOptions". In that module is the routine "Sub Tock", in which the only line is "my.computer.audio.play (TockFile$)". TockFile$ is set to point to a WAV file in a subfolder of the program folder.
docs/playing-sounds.md at main · dotnet/docs - GitHub
https://github.com/dotnet/docs/blob/main/docs/visual-basic/developing-apps/programming/computer-resources/playing-sounds.md
The My.Computer.Audio.Play method allows the application to play only one background sound at a time; when the application plays a new background sound, it stops playing the previous background sound. You can also play a sound and wait for it to complete. In the following example, the My.Computer.Audio.Play method plays a sound.
Now you know My.Computer.Audio.Play Resource
Now that you know My.Computer.Audio.Play Resource, we suggest that you familiarize yourself with information on similar questions.