Package-level declarations
Overview
Audio system management for game sound effects and background music.
Components
loadGameAudioPool— Loads and configures the application's audio pool based on theme
Responsibilities
Loading audio assets from resources
Configuring music tracks to loop
Managing sound effects
Handling missing audio files gracefully
Integrating with theme-based audio configurations
Functions
Link copied to clipboard
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.