Fixed some things in sound classes
This commit is contained in:
parent
a757d93f59
commit
1bb6e9e427
3 changed files with 25 additions and 17 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue