sound changes, press sounds, remove pitch
This commit is contained in:
parent
c5219ce100
commit
c602585e6a
76 changed files with 231 additions and 251 deletions
|
@ -2,32 +2,23 @@ package game.audio;
|
|||
|
||||
import game.init.SoundEvent;
|
||||
|
||||
public class PositionedSound extends Sound
|
||||
{
|
||||
// public PositionedSound(SoundEvent event, float pitch)
|
||||
// {
|
||||
// this(event, 0.25F, pitch, false, false, 0.0F, 0.0F, 0.0F);
|
||||
// }
|
||||
public class PositionedSound extends Sound {
|
||||
public PositionedSound(SoundEvent event, Volume type) {
|
||||
this(event, 1.0F, false, 0.0F, 0.0F, 0.0F);
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public PositionedSound(SoundEvent event)
|
||||
{
|
||||
this(event, 1.0F, false, 0.0F, 0.0F, 0.0F);
|
||||
}
|
||||
public PositionedSound(SoundEvent event, float volume, float xPosition, float yPosition, float zPosition) {
|
||||
this(event, volume, true, xPosition, yPosition, zPosition);
|
||||
}
|
||||
|
||||
public PositionedSound(SoundEvent event, float volume, float xPosition, float yPosition, float zPosition)
|
||||
{
|
||||
this(event, volume, true, xPosition, yPosition, zPosition);
|
||||
}
|
||||
|
||||
private PositionedSound(SoundEvent event, float volume, boolean attenuationType, float xPosition, float yPosition, float zPosition)
|
||||
{
|
||||
super(event);
|
||||
this.volume = volume;
|
||||
// this.pitch = pitch;
|
||||
this.xPosF = xPosition;
|
||||
this.yPosF = yPosition;
|
||||
this.zPosF = zPosition;
|
||||
this.repeat = false;
|
||||
this.attenuationType = attenuationType;
|
||||
}
|
||||
private PositionedSound(SoundEvent event, float volume, boolean attenuationType, float xPosition, float yPosition, float zPosition) {
|
||||
super(event);
|
||||
this.volume = volume;
|
||||
this.xPosF = xPosition;
|
||||
this.yPosF = yPosition;
|
||||
this.zPosF = zPosition;
|
||||
this.repeat = false;
|
||||
this.attenuationType = attenuationType;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue