HomeDocs
Skip to main content

createAppAudioEffect

Introduction

Create a client instance that specifies the maximum number of audio effect resources that can be played simultaneously in a single mini-program. By default, the maximum number of simultaneously playable audio effect resources is 1.

Parameters

ParameterTypeRequiredDescription
sizeNumbertrueThe maximum number of resources that can be played simultaneously (<=5).

Example

Page({
onReady() {
dlt.createAppAudioEffect({
size: 2,
success: (res) => {
resolve(res);
},
fail: (err) => {
reject(err);
},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.