提交 ea224d17 编写于 作者: W wangzx0705

modify the doc format error

Signed-off-by: Nwangzx0705 <wangzx0705@thundersoft.com>
上级 d643550f
...@@ -831,7 +831,7 @@ async function createTonePlayerBefore(){ ...@@ -831,7 +831,7 @@ async function createTonePlayerBefore(){
| AUDIO_SCENE_PHONE_CALL | 2 | 电话模式。<br/>此接口为系统接口。 | | AUDIO_SCENE_PHONE_CALL | 2 | 电话模式。<br/>此接口为系统接口。 |
| AUDIO_SCENE_VOICE_CHAT | 3 | 语音聊天模式。 | | AUDIO_SCENE_VOICE_CHAT | 3 | 语音聊天模式。 |
## VolumeAdjustType<sup>8+</sup><a name="volumeadjusttype"></a> ## VolumeAdjustType<sup>10+</sup><a name="volumeadjusttype"></a>
枚举,音频场景。 枚举,音频场景。
...@@ -5494,7 +5494,7 @@ getMinStreamVolume(callback: AsyncCallback&lt;number&gt;): void ...@@ -5494,7 +5494,7 @@ getMinStreamVolume(callback: AsyncCallback&lt;number&gt;): void
**示例:** **示例:**
```js ```js
audioRenderer.getMinStreamVolume((err, minVolume)=>{ audioRenderer.getMinStreamVolume((err, minVolume) => {
if(err){ if(err){
console.error(`Get min stream volume Fail: ${err}`); console.error(`Get min stream volume Fail: ${err}`);
} }
...@@ -5518,7 +5518,7 @@ getMinStreamVolume(): Promise&lt;number&gt; ...@@ -5518,7 +5518,7 @@ getMinStreamVolume(): Promise&lt;number&gt;
**示例:** **示例:**
```js ```js
audioRenderer.getMinStreamVolume().then(minVolume=>{ audioRenderer.getMinStreamVolume().then(minVolume => {
console.info(`Get min stream volume Success! ${minVolume}`); console.info(`Get min stream volume Success! ${minVolume}`);
}).catch((err) => { }).catch((err) => {
console.error(`Get min stream volume Fail: ${err}`); console.error(`Get min stream volume Fail: ${err}`);
...@@ -5542,7 +5542,7 @@ getMaxStreamVolume(callback: AsyncCallback&lt;number&gt;): void ...@@ -5542,7 +5542,7 @@ getMaxStreamVolume(callback: AsyncCallback&lt;number&gt;): void
**示例:** **示例:**
```js ```js
audioRenderer.getMaxStreamVolume((err, maxVolume)=>{ audioRenderer.getMaxStreamVolume((err, maxVolume) => {
if(err){ if(err){
console.error(`Get max stream volume Fail: ${err}`); console.error(`Get max stream volume Fail: ${err}`);
} }
...@@ -5566,7 +5566,7 @@ getMaxStreamVolume(): Promise&lt;number&gt; ...@@ -5566,7 +5566,7 @@ getMaxStreamVolume(): Promise&lt;number&gt;
**示例:** **示例:**
```js ```js
audioRenderer.getMaxStreamVolume().then(maxVolume=>{ audioRenderer.getMaxStreamVolume().then(maxVolume => {
console.info(`Get max stream volume Success! ${maxVolume}`); console.info(`Get max stream volume Success! ${maxVolume}`);
}).catch((err) => { }).catch((err) => {
console.error(`Get max stream volume Fail: ${err}`); console.error(`Get max stream volume Fail: ${err}`);
...@@ -5590,7 +5590,7 @@ getUnderflowCount(callback: AsyncCallback&lt;number&gt;): void ...@@ -5590,7 +5590,7 @@ getUnderflowCount(callback: AsyncCallback&lt;number&gt;): void
**示例:** **示例:**
```js ```js
audioRenderer.getUnderflowCount((err, underflowCount)=>{ audioRenderer.getUnderflowCount((err, underflowCount) => {
if(err){ if(err){
console.error(`Get underflow count Fail: ${err}`); console.error(`Get underflow count Fail: ${err}`);
} }
...@@ -5614,7 +5614,7 @@ getUnderflowCount(): Promise&lt;number&gt; ...@@ -5614,7 +5614,7 @@ getUnderflowCount(): Promise&lt;number&gt;
**示例:** **示例:**
```js ```js
audioRenderer.getUnderflowCount().then(underflowCount=>{ audioRenderer.getUnderflowCount().then(underflowCount => {
console.info(`Get underflow count Success! ${underflowCount}`); console.info(`Get underflow count Success! ${underflowCount}`);
}).catch((err) => { }).catch((err) => {
console.error(`Get underflow count Fail: ${err}`); console.error(`Get underflow count Fail: ${err}`);
...@@ -5638,7 +5638,7 @@ getCurrentOutputDevices(callback: AsyncCallback&lt;AudioDeviceDescriptors&gt;): ...@@ -5638,7 +5638,7 @@ getCurrentOutputDevices(callback: AsyncCallback&lt;AudioDeviceDescriptors&gt;):
**示例:** **示例:**
```js ```js
audioRenderer.getCurrentOutputDevices((err, deviceInfo)=>{ audioRenderer.getCurrentOutputDevices((err, deviceInfo) => {
if(err){ if(err){
console.error(`Get underflow count Fail: ${err}`); console.error(`Get underflow count Fail: ${err}`);
} }
...@@ -5669,7 +5669,7 @@ getCurrentOutputDevices(): Promise&lt;AudioDeviceDescriptors&gt; ...@@ -5669,7 +5669,7 @@ getCurrentOutputDevices(): Promise&lt;AudioDeviceDescriptors&gt;
**示例:** **示例:**
```js ```js
audioRenderer.getCurrentOutputDevices().then(deviceInfo=>{ audioRenderer.getCurrentOutputDevices().then(deviceInfo => {
console.info(`DeviceInfo id: ${deviceInfo.id}`); console.info(`DeviceInfo id: ${deviceInfo.id}`);
console.info(`DeviceInfo type: ${descriptor.deviceType}`); console.info(`DeviceInfo type: ${descriptor.deviceType}`);
console.info(`DeviceInfo role: ${descriptor.deviceRole}`); console.info(`DeviceInfo role: ${descriptor.deviceRole}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册