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

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