Skip to content

Commit

Permalink
Reduced sample cache size when exporting audio
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed May 11, 2024
1 parent bd8f34b commit c6ff5db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class JavaxAudioExporter extends AudioExporter {
public JavaxAudioExporter(final SongView<?> songView, final AudioFormat format, final Consumer<Float> progressConsumer) {
super(songView, format, progressConsumer);
this.sounds = SoundMap.loadInstrumentSamples(format);
this.mutationCache = CacheBuilder.newBuilder().maximumSize(1000).build();
this.mutationCache = CacheBuilder.newBuilder().maximumSize(250).build();
this.merger = new AudioMerger(this.samplesPerTick * format.getChannels() * (songView.getLength() + 1));
}

Expand Down

0 comments on commit c6ff5db

Please sign in to comment.