Skip to content

Commit e0ba9dc

Browse files
committed
Updated NoteBlockLib API usage
1 parent ba2b0cd commit e0ba9dc

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/main/java/net/raphimc/noteblocktool/audio/export/AudioExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public abstract class AudioExporter extends SongPlayer {
3636
private final float masterVolume;
3737
private final Consumer<Float> progressConsumer;
3838
protected GrowableArray samples;
39-
private final long noteCount;
39+
private final int noteCount;
4040
private int processedNotes;
4141

4242
public AudioExporter(final Song song, final AudioFormat format, final float masterVolume, final Consumer<Float> progressConsumer) {

src/main/java/net/raphimc/noteblocktool/audio/export/impl/BassAudioExporter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ protected void processSound(final String sound, final float pitch, final float v
4949
}
5050

5151
@Override
52-
protected void preTick() {
52+
protected boolean preTick() {
5353
this.soundSystem.preTick();
54+
return super.preTick();
5455
}
5556

5657
@Override

src/main/java/net/raphimc/noteblocktool/audio/export/impl/OpenALAudioExporter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ protected void processSound(final String sound, final float pitch, final float v
4949
}
5050

5151
@Override
52-
protected void preTick() {
52+
protected boolean preTick() {
5353
this.soundSystem.preTick();
54+
return super.preTick();
5455
}
5556

5657
@Override

src/main/java/net/raphimc/noteblocktool/elements/drag/DragTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public DragTable() {
4343
List<RowSorter.SortKey> sortKeys = new ArrayList<>();
4444
for (int i = 0; i < 6; i++) sortKeys.add(new RowSorter.SortKey(i, SortOrder.UNSORTED));
4545
sorter.setSortKeys(sortKeys);
46-
sorter.setComparator(4, Comparator.comparingLong(o -> (long) o));
46+
sorter.setComparator(4, Comparator.comparingInt(o -> (int) o));
4747
sorter.setComparator(5, Comparator.comparingDouble(o -> (float) o));
4848
this.setRowSorter(sorter);
4949
}

src/main/java/net/raphimc/noteblocktool/util/SoundSystemSongPlayer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ protected void playNotes(final List<Note> notes) {
7979
}
8080

8181
@Override
82-
protected void preTick() {
82+
protected boolean preTick() {
8383
this.soundSystem.preTick();
84+
return super.preTick();
8485
}
8586

8687
@Override

0 commit comments

Comments
 (0)