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

How to play sound after the performed action?

Mao!
--
TD programs website available under new address.
https://tdprograms.ovh/

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

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.

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.

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com

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

2019-08-17 20:55:56

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

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com

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.