Updates or adds a participant's audio decibel data in the array.
This method checks if a participant's name exists in the audio decibels array.
If it does, it updates the participant's averageLoudness; otherwise, it adds a new entry.
After modification, it calls updateAudioDecibels to apply the changes to the array.
Param: options
The options for updating participant audio decibels.
Updates or adds a participant's audio decibel data in the array.
This method checks if a participant's name exists in the audio decibels array. If it does, it updates the participant's
averageLoudness
; otherwise, it adds a new entry. After modification, it callsupdateAudioDecibels
to apply the changes to the array.Param: options
The options for updating participant audio decibels.
Param: options.name
The name of the participant.
Param: options.averageLoudness
The current average loudness of the participant.
Param: options.audioDecibels
The array of current audio decibel entries.
Param: options.updateAudioDecibels
The function to update the audio decibels array.
Returns
Example