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
Parameter | Type | Required | Description |
---|---|---|---|
size | Number | true | The 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);
},
});
},
});