loadGameAudioPool

fun loadGameAudioPool(theme: AppTheme, mainFolder: String = "audios/", setErrorFun: (ReversiException) -> Unit): AudioPool

Loads the game's audio pool from resources based on the specified theme. Automatically configures music tracks to loop infinitely and loads sound effects normally. Handles missing or failed audio loads gracefully with warnings.

Return

An AudioPool containing all successfully loaded audio tracks.

Parameters

theme

The AppTheme containing audio resource names to load.

mainFolder

The folder path containing audio resources (defaults to "audios/").

setErrorFun

Callback to report non-fatal errors (missing/failed audio loads).