Skip to content

Commit c6ff5db

Browse files
committed
Reduced sample cache size when exporting audio
1 parent bd8f34b commit c6ff5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class JavaxAudioExporter extends AudioExporter {
3838
public JavaxAudioExporter(final SongView<?> songView, final AudioFormat format, final Consumer<Float> progressConsumer) {
3939
super(songView, format, progressConsumer);
4040
this.sounds = SoundMap.loadInstrumentSamples(format);
41-
this.mutationCache = CacheBuilder.newBuilder().maximumSize(1000).build();
41+
this.mutationCache = CacheBuilder.newBuilder().maximumSize(250).build();
4242
this.merger = new AudioMerger(this.samplesPerTick * format.getChannels() * (songView.getLength() + 1));
4343
}
4444

0 commit comments

Comments
 (0)