Correct audio volume output decibels using HTML5 / javascript, turn off pre-processing

[亡魂溺海] 提交于 2019-12-06 02:36:29

We have answered this issue through significant further research. After detailed testing, the following has become clear: 1) On all systems tested the sound amplitude output has been nearly perfectly 1:1 linearly related to input when headphones are used, regardless of other settings. This was true over multiple browsers, multiple devices, iOS, Android, OSX, multiple powered and unpowered ear-bud and over-the-ear headphones. 2) In many systems/settings/volume levels the sound amplitude output is not 1:1 linearly related to input when the external speaker is used. Instead, the sound is often linear with a slope of less than 1, often significantly less (e.g. 1/2). In addition to this slope, many systems also saturate at higher volume levels. This appears to be because compensation mechanisms are being used with external speakers.

Therefore, the correct answer is: Audio output amplitude generated with HTML5/javascript audio is nearly 1:1 linear vs. input so long as headphones are used. It is not nearly 1:1 linear vs. input when external speakers are used on many devices in common use.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!