Opened 10 years ago

Closed 14 months ago

Last modified 7 months ago

#7706 closed enhancement (worksforme)

Make loading of soundfonts faster

Reported by: SF/simsaw Owned by: bonki
Priority: normal Component: Audio
Keywords: Cc:
Game:

Description

ScummVM takes a very long time loading large sf2 files into the cache. After that, the game using this soundfont behaves as normal. The problem is just that loading into the cache when starting a game takes so long. It's even not possible to cancel the loading process.

I've found OPL-3 FM 128M.sf2 on http://www3.telus.net/anapan8/oldscardemu.htm under "Complete GM Soundfonts" which could be taken to test and look onto the matter.

Ticket imported from: #2810062. Ticket imported from: feature-requests/522.

Change History (4)

comment:1 Changed 10 years ago by eriktorbjorn

The only two MIDI drivers which care about the SoundFont setting at all are CoreAudio and FluidSynth. I'm not sure which of them you are referring to.

In both cases, it seems to me that ScummVM merely tells the underlying API that "this is where the SoundFont file is; do with it as you like". Therefore, I don't think there's anything ScummVM can do about loading times, though the FluidSynth and/or CoreAudio developers might be able to.

comment:2 Changed 17 months ago by bonki

Can we close this?

comment:3 Changed 14 months ago by bonki

Owner: set to bonki
Resolution: worksforme
Status: newclosed

I tested with two different soundfonts (62MB and 128MB, respectively) and can't notice any sort of lag whatsoever.

Even if there were, as eriktorbjorn mentioned before, we probably couldn't do much about it.

comment:4 Changed 7 months ago by digitall

Component: Audio
Note: See TracTickets for help on using tickets.