RFR: 8350813: Rendering of bulky sound bank from MIDI sequence can cause OutOfMemoryError [v4]

Alexander Zuev kizune at openjdk.org
Sat Mar 15 01:56:01 UTC 2025


On Fri, 14 Mar 2025 00:13:22 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> But it's our own soundbank, so it doesn't seem like it would cause any delay when playing MIDI files using it.

Not really sure what you mean by this. We have a soundbank A constructed from MIDI file using the default soundbank with software synthesizer. It can be used to play another MIDI source. It can be used to substitute any instrument (or multitude of instruments) multiple times in the said MIDI source. Rendering it takes time. In order to use it we will have to render it. Means multiple parallel renders of the soundbank A to play MIDI source if we delay rendering until it is actually needed - that can cause delays in the place where delays are not anticipated.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23814#discussion_r1996500508


More information about the client-libs-dev mailing list