2019-08-13 04:23:34 (edited by dash 2019-08-13 04:24:33)

How to play sound after the performed action?

You must know... Cats are soft!

2019-08-14 07:33:16

Simply load your sound, and play it after your desired action, example:

//load your sound as "player"
System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav");

//perform an action

//play sounds after the action
player.Play();
-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer

Thumbs up

2019-08-17 01:22:46

You can use bass and it's .net wraper, both downloadable from un4seen.com.
I know this is abit complicated, but you will be gratefull for the time and effort required for building helper classes when you'll get to more complicated things like effects and so on.

Thumbs up

2019-08-17 14:24:31

Lol, he looked for a simple method. BTW I had an idea to wrap a wrapper for bass but I don't think its a good idea, unless this is for one particular project and only selected functiionality is wrapped.

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha

2019-08-17 18:39:34

You don't need to do that because someone did that already. Check the bass website under the other apis section

Thumbs up

2019-08-17 20:55:56

I dont mean the Bass.NET wrapper, I mean a wrapper arround the Bass.NET wrapper

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha

2019-08-17 21:53:43

I have already done something like this. If my computer was not damaged beyond repair, I would give it to y ou.
It's almost like bgt, it even has pan and volume property for realtime configuration.

Thumbs up