Skip to content

Commit 28c3e36

Browse files
committed
Updated AudioMixer
1 parent a3d7d4b commit 28c3e36

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎build.gradle‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ repositories {
1919

2020
dependencies {
2121
includeInJar "net.raphimc:NoteBlockLib:3.4.0-20261009.201152-2"
22-
includeInJar "net.raphimc:audio-mixer:3.1.0-20260918.204918-5"
22+
includeInJar "net.raphimc:audio-mixer:3.1.0-20261015.223052-6"
2323
includeInJar "org.jcraft:jorbis:0.0.17"
2424
includeInJar "com.plasmoverse:concentus:1.0.0"
25-
includeInJar "javazoom:jlayer:1.0.1"
26-
includeInJar "de.sciss:jump3r:1.0.5"
25+
includeInJar "io.github.raphimc:jump3r:1.0.6"
2726
includeInJar "com.formdev:flatlaf:3.7.2"
2827
includeInJar "net.lenni0451.commons:swing:1.9.2"
2928
includeInJar "net.raphimc:thingl:0.2.0-20260728.221330-13:java17"

‎src/main/java/net/raphimc/noteblocktool/frames/ExportFrame.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ private void exportSong(final ListFrame.LoadedSong song, final File file, final
496496
case VBR -> OggOpusAudioOutputStream.Encoding.vbr((int) this.opusBitrate.getValue());
497497
};
498498
final Map<String, List<String>> tags = new LinkedHashMap<>();
499-
tags.put("RENDERER", List.of("NoteBlockTool"));
500499
if (songRenderer.getSong().getTitle() != null) {
501500
tags.put("TITLE", List.of(songRenderer.getSong().getTitle()));
502501
}
@@ -506,6 +505,7 @@ private void exportSong(final ListFrame.LoadedSong song, final File file, final
506505
if (songRenderer.getSong().getDescription() != null) {
507506
tags.put("DESCRIPTION", List.of(songRenderer.getSong().getDescription()));
508507
}
508+
tags.put("Renderer", List.of("NoteBlockTool"));
509509
yield OggOpusAudioOutputStream.createCompatible(new BufferedOutputStream(new FileOutputStream(file), 1024 * 1024), buffer.format(), encoding, OpusSignal.OPUS_SIGNAL_MUSIC, tags);
510510
}
511511
case MP3 -> {
@@ -517,7 +517,8 @@ private void exportSong(final ListFrame.LoadedSong song, final File file, final
517517
final Mp3AudioOutputStream.Id3Tags id3Tags = new Mp3AudioOutputStream.Id3Tags()
518518
.withTitle(songRenderer.getSong().getTitle())
519519
.withArtist(songRenderer.getSong().getAuthor())
520-
.withComment(songRenderer.getSong().getDescription());
520+
.withComment(songRenderer.getSong().getDescription())
521+
.withCustomField("Renderer", "NoteBlockTool");
521522
yield new Mp3AudioOutputStream(new SeekableBufferedOutputStream(new SeekableFileOutputStream(file), 1024 * 1024), buffer.format(), encoding, id3Tags);
522523
}
523524
default -> throw new UnsupportedOperationException("Unsupported output format: " + outputFormat);

0 commit comments

Comments
 (0)