updateParticipantAudioDecibels

Updates the audio decibels for a participant.

This function either updates an existing entry or adds a new entry for the participant's audio decibels in the audioDecibels list.

Parameters

options

An instance of UpdateParticipantAudioDecibelsOptions containing all necessary parameters

Example:

val audioDecibelsList = mutableListOf(
AudioDecibels("Alice", 50.0),
AudioDecibels("Bob", 45.0)
)

val options = UpdateParticipantAudioDecibelsOptions(
name = "Alice",
averageLoudness = 60.0,
audioDecibels = audioDecibelsList,
updateAudioDecibels = { updatedList ->
}
)

updateParticipantAudioDecibels(options)
// Alice's averageLoudness is now 60.0