Okay, so I've been ripping my hair out trying to solve this for the last week.
I need to play a sound when you hover over 2 separate images/labels. In the event that you shoot your cursor over both images/labels very quickly, the sound needs to play twice and be able to overlap one another, it can't wait for the first sound to stop before playing the second sound. Also both images/labels need to pull from the same .WAV audio file stored in my AppData, which means it needs to play the same .WAV file however many times is necessary and overlap as many times as necessary based on how fast you move your cursor over the images/labels.
I have tried all of the following.
DirectX.AudioVideoPlayback functions with the file path in a DIM. DirectX.DirectSound functions. (Can't remember all the ways I've tried). Media.SoundPlayer functions with the path stored in a "player.SoundLocation = "PATH" just before you call the act to play the file. My.Computer.Audio.Play("PATH").
I've tried mciSendString, I've tried to encase the play code in a thread (Threading.Thread(AddressOf NewSub)) multiple times... I've played with background sounds...
PLEASE! If anyone can help, I will find a way to repay you.
Thank you!!
By using BASS.Net (.net wrapper for Bass) you can play hundreds of sound at the same time by simply using this code : First you init bass
Then you declare an integer name it stream, this is the one you will be using to control the stream.
Now you need to load the file to the stream
If you want to loop the stream you can use this
To Control the stream use these: To play
Bass.BASS_ChannelPlay(stream, False)
Note the Second parameter (Boolean) is used to make the stream either play from begging or resumes To PauseBass.BASS_ChannelPause(stream)
To StopBass.BASS_ChannelStop(stream)
If you want further assistance just ask me I have a huge experience using Bass.net ^^
If my answer did help you don't forget to mark it as an answer so It helps the whole community ;)