minigame-std
Version:
Mini Game Standard Development Library.
19 lines (11 loc) • 992 B
Markdown
[**minigame-std**](../../../README.md)
***
[minigame-std](../../../README.md) / [audio](../README.md) / PlayOptions
# Interface: PlayOptions
Defined in: [src/std/audio/audio\_defines.ts:4](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/audio/audio_defines.ts#L4)
播放音频的选项。
## Properties
| Property | Type | Default value | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="autodisconnect"></a> `autoDisconnect?` | `boolean` | `true` | 播放完后是否自动调用 `source.disconnect`。 | [src/std/audio/audio\_defines.ts:15](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/audio/audio_defines.ts#L15) |
| <a id="loop"></a> `loop?` | `boolean` | `false` | 是否循环播放。 | [src/std/audio/audio\_defines.ts:9](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/audio/audio_defines.ts#L9) |