Companion

object Companion

The companion object of AudioResource.

Functions

Link copied to clipboard
@JvmStatic
fun load(bundle: AssetBundle, path: String): AudioResource

Loads an audio resource from the specified AssetBundle.

@JvmStatic
fun load(name: String, uri: Uri, context: Context): AudioResource

Loads an audio resource from the specified URL.

@JvmStatic
fun load(name: String, path: String, loadType: LoadType = LoadType.FROM_ASSETS): AudioResource

Loads an audio resource using the specified loading method.

@JvmStatic
fun load(name: String, uri: Uri, context: Context, config: AudioResourceConfig): AudioResource

Loads an audio resource from the specified URI with the provided configuration.

@JvmStatic
fun load(name: String, path: String, loadType: LoadType = LoadType.FROM_ASSETS, config: AudioResourceConfig): AudioResource

Loads an audio resource using the specified loading method, with additional configuration.