Sounds to play during action performed
Hi Folks,
I have a uni assignment to create a One Armed Bandit Fruit Machine.
It's been a struggle but so far I have got everything to work, apart from getting sounds to play(i.e. when the player wins the jackpot and when the reels spin).
Can anyone enlighten me to the process of adding sound to play when an action is performed.
I've looked online but have been slightly overwhelmed by what I found.
Any help would be much appreciated.
Chris
Re: Sounds to play during action performed
The easiest way to make a program make a sound is
Code :
Toolkit.getDefaultToolkit().beep();
If you're not happy with that, search the net for examples of playing MIDI in Java. For example
Loading and Playing Midi Audio : SoundDevelopment ClassJava
db
Re: Sounds to play during action performed
Got it all sorted.
Thanks for your reply! :o)