我有一个用例,可以通过编程方式更改流的音量,但是在较新的android音量上,将音量提高到某个限制(根据我的观察,该音量为60%,这对应于大多数手机上的第9步,会出现警告对话框:
Listening at high volume for a long time may damage your hearing. Tap OK to allow the volume
to be increased above safe levels
Cancel OK
我在android开发人员门户中找不到与此相关的任何文档,我只能找到一些随机文章,引用诸如one这样的欧洲法规:
According to regulations set by the European Committee for Electrotechnical Standarisation (CENELEC), all electronic devices capable of media playback sold after February 2013 must have a default output volume level of a maximum 85 dB. Users can choose to override the warning to increase the volume to a maximum of 100 dB, but in doing so the warning must re-appear after 20 hours of music playback.
所以我需要可靠地弄清楚那个数字是多少,所以我永远不会导致显示此对话框的音量更改,但是我也不想仅将第9步用作最大音量,然后找出与其他手机不同的价格。 android API是否在任何地方公开最大安全流量?如果不是,那么他们是否至少记录了与其他电话对应的步骤号?
谢谢!
config_safe_media_volume_index