Fixed some things in sound classes

This commit is contained in:
Ziver Koc 2007-03-15 23:29:55 +00:00
parent a757d93f59
commit 1bb6e9e427
3 changed files with 25 additions and 17 deletions

View file

@ -32,12 +32,16 @@ public class Sound extends Entity{
/**
* Play this sound as a sound effect
*
* @param pitch The pitch of the play back
* @param gain The gain of the play back
*/
public void play(float pitch, float gain) {
SoundLoader.getInstnace().playSound(buffer, pitch, gain, getLocation());
public void play() {
SoundLoader.getInstnace().playSound(buffer, getLocation(),false);
}
/**
* Loop this sound
*/
public void loop() {
SoundLoader.getInstnace().playSound(buffer, getLocation(),true);
}
public void update() {