diff options
Diffstat (limited to 'zh-cn/devices/audio/attributes.html')
-rw-r--r-- | zh-cn/devices/audio/attributes.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zh-cn/devices/audio/attributes.html b/zh-cn/devices/audio/attributes.html index 78db1704..b20033e6 100644 --- a/zh-cn/devices/audio/attributes.html +++ b/zh-cn/devices/audio/attributes.html @@ -115,7 +115,7 @@ AudioAttributes { <h2 id="contexts">上下文</h2> <p> -Android 中的每段声音都由相应的应用和声音生成的原因来识别;Android 设备会使用这些信息来确定如何呈现声音。在 Android 8.x 及更低版本中,应用可以使用旧版流类型(如 <code>AudioSystem.STREAM_MUSIC</code>)或 <code>AudioAttributes</code> 报告声音生成的原因。在 Android 9 中,<code>AudioAttributes.usage</code> 值在 HAL 级别被提取为上下文<em></em>。 +Android 中的每段声音都由相应的应用和声音生成的原因来识别;Android 设备会使用这些信息来确定如何呈现声音。在 Android 8.x 及更低版本中,应用可以使用旧版流类型(如 <code>AudioSystem.STREAM_MUSIC</code>)或 <code>AudioAttributes</code> 报告声音生成的原因。在 Android 9 中,<code>AudioAttributes.usage</code> 值在 HAL 级别被提取为上下文。<em></em> </p> <table> @@ -199,7 +199,7 @@ Android 中的每段声音都由相应的应用和声音生成的原因来识别 <h2 id="example">示例</h2> <p> -在以下示例中,<code>AudioAttributes.Builder</code> 定义了将由一个新的 <code>AudioTrack</code> 实例使用的 <code>AudioAttributes</code>:</p> +在以下示例中,<code>AudioAttributes.Builder</code> 定义了将由一个新的 <code>AudioAttributes</code> 实例使用的 <code>AudioTrack</code>:</p> <pre class="prettyprint"> AudioTrack myTrack = new AudioTrack( |