How to play sound after the performed action?
Pages 1
You are not logged in. Please login or register.
AudioGames.net Forum → Developers room → C#: The simplest playing sound method?
How to play sound after the performed action?
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();
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.
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.
You don't need to do that because someone did that already. Check the bass website under the other apis section
I dont mean the Bass.NET wrapper, I mean a wrapper arround the Bass.NET wrapper
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.
AudioGames.net Forum → Developers room → C#: The simplest playing sound method?
Generated in 0.018 seconds (47% PHP - 53% DB) with 11 queries