1
0
Fork 0

fix bank loader (DMX), add new press sound

This commit is contained in:
Sen 2025-09-03 11:56:19 +02:00
parent ceda16246c
commit 9683b18337
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
5 changed files with 5 additions and 3 deletions

View file

@ -2878,7 +2878,7 @@ public class Client implements IThreadListener {
if(func != null) {
Bind.disableInput(key);
if(!(this.open instanceof GuiLoading)) {
this.soundManager.playSound(new PositionedSound(SoundEvent.CLICK, EventType.UI_INTERFACE));
this.soundManager.playSound(new PositionedSound(SoundEvent.PRESS, EventType.UI_INTERFACE));
func.runner.execute(key);
}
}

View file

@ -120,7 +120,7 @@ typedef struct {
int[] fb = new int[2];
int algo = op2x2 ? 0x08 : 0x00;
for(int ch = 0; ch < (op2x2 ? 2 : 1); ch++) {
int transpose = (int)dmx_read_uint16(data, offset + 14) + 12;
int transpose = (int)((short)dmx_read_uint16(data, offset + 14)) + 12;
for(int op = 0; op < 2; op++) {
boolean tremolo = (data[offset + op*7+0] & 0x80) != 0;
boolean vibrato = (data[offset + op*7+0] & 0x40) != 0;

View file

@ -267,6 +267,6 @@ public abstract class Element {
}
public void playSound() {
this.gm.getSoundManager().playSound(new PositionedSound(SoundEvent.CLICK, EventType.UI_INTERFACE));
this.gm.getSoundManager().playSound(new PositionedSound(SoundEvent.PRESS, EventType.UI_INTERFACE));
}
}

Binary file not shown.