SoundSettingsLayout

fun SoundSettingsLayout(viewModel: SoundSettingsViewModel, theme: NavigationSettingsTheme = NavigationSettingsTheme.defaults(), visibilityConfig: SectionVisibilityConfig = SectionVisibilityConfig.default(), onNavigateToVoices: () -> Unit)

Sound Settings screen content (Screen 2 in the navigation settings flow).

Renders the master sound mode selector, the voices entry row, camera warning toggles, the speed-exceeding warning with its threshold slider, and the list of "other event" sound toggles. Sections can be hidden via visibilityConfig.

Unlike most settings layouts, which take a NavigationSettingsRepository directly, this layout takes a SoundSettingsViewModel because Sound Settings need atomic multi-key writes (when changing SoundMode) and derived state aggregated across many repository keys. Use DefaultSoundSettingsViewModel for the standard implementation.

Parameters

viewModel

State holder for sound settings.

theme

Theme for colors and typography.

visibilityConfig

Controls which sound sections are shown.

onNavigateToVoices

Invoked when the user taps the "Voices" row.