跳至主要內容

Interface: play_config

muzzik小于 1 分钟

index / audio_ / play_config

Interface: play_config

audio_.play_config

play 配置

Table of contents

Properties

Properties

volume_n

volume_n: number

音量

Defined in

assets/@framework/audio/mk_audio_base.ts:348open in new window


loop_b

loop_b: boolean

循环

Defined in

assets/@framework/audio/mk_audio_base.ts:350open in new window


use_play_b

use_play_b: boolean

使用 play 接口,默认使用 playOneShot

Remarks

common 使用

  • play 接口存在最大并发数限制 cc.AudioSource.maxAudioChannel

  • playOneShot 接口不能暂停

Defined in

assets/@framework/audio/mk_audio_base.ts:360open in new window

📣 觉得很赞?分享给你的朋友吧!