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