Skip to content

//readium-navigator/org.readium.r2.navigator.media3.audio/AudioEngineProvider

AudioEngineProvider

[androidJvm]\ interface AudioEngineProvider<S : Configurable.Settings, P : Configurable.Preferences<P>, E : PreferencesEditor<P>, F : AudioEngine.Error>

Functions

Name Summary
computeSettings [androidJvm]
abstract fun computeSettings(metadata: Metadata, preferences: P): S
Creates settings for metadata and preferences.
createEmptyPreferences [androidJvm]
abstract fun createEmptyPreferences(): P
Creates an empty set of preferences of this TTS engine provider.
createEngine [androidJvm]
abstract suspend fun createEngine(publication: Publication): AudioEngine<S, P, F>
createPreferenceEditor [androidJvm]
abstract fun createPreferenceEditor(publication: Publication, initialPreferences: P): E
Creates a preferences editor for publication and initialPreferences.

Inheritors

Name
ExoPlayerEngineProvider