W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2018

Re: [webrtc-pc] RTCRtpContributingSource.audioLevel has different type and range than similar fields in webrtc-stats

From: Dominique Hazael-Massieux via GitHub <sysbot+gh@w3.org>
Date: Mon, 15 Jan 2018 10:23:36 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-357641372-1516011816-sysbot+gh@w3.org>
the reason for making it a `byte` is documented in the spec:
> Both RFCs define the level as an integral value from 0 to 127 representing the audio level in negative decibels relative to the loudest signal that the system could possibly encode. Thus, 0 represents the loudest signal the system could possibly encode, and 127 represents silence.

(I have no opinion on whether this is a good or bad reason - @fluffy @alvestrand and @aboba [seem to have been involved in the design discussion back then](https://lists.w3.org/Archives/Public/public-webrtc/2015Jul/0109.html)

GitHub Notification of comment by dontcallmedom
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1734#issuecomment-357641372 using your GitHub account
Received on Monday, 15 January 2018 10:23:38 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:43 UTC