Game freezing on loading wav/ogg file at runtime

You do this in the game thread, so at the time of working with a large amount of data in memory, there is a freeze.

You can look at the following plugin called Runtime Audio Importer: Runtime Audio Importer | Fab