@tarojs/taro 3.6.23 → 3.6.24-nightly.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "3.6.23",
3
+ "version": "3.6.24-nightly.0",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -21,15 +21,15 @@
21
21
  "author": "O2Team",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@tarojs/api": "3.6.23"
24
+ "@tarojs/api": "3.6.24-nightly.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@tarojs/helper": "3.6.23",
28
- "@tarojs/runtime": "3.6.23"
27
+ "@tarojs/helper": "3.6.24-nightly.0",
28
+ "@tarojs/runtime": "3.6.24-nightly.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@tarojs/runtime": "~3.6.23",
32
- "@tarojs/helper": "~3.6.23"
31
+ "@tarojs/helper": "~3.6.24-nightly.0",
32
+ "@tarojs/runtime": "~3.6.24-nightly.0"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@types/react": {
@@ -800,6 +800,15 @@ declare module '../../index' {
800
800
  setPosition(...args: any[]): void
801
801
  }
802
802
 
803
+ namespace createInnerAudioContext {
804
+ interface Option {
805
+ /** 是否使用 WebAudio 作为底层音频驱动,默认关闭。对于短音频、播放频繁的音频建议开启此选项,开启后将获得更优的性能表现。由于开启此选项后也会带来一定的内存增长,因此对于长音频建议关闭此选项。
806
+ * @supported weapp
807
+ */
808
+ useWebAudioImplement: boolean
809
+ }
810
+ }
811
+
803
812
  interface TaroStatic {
804
813
  /** 结束播放语音。
805
814
  * **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口**
@@ -979,7 +988,7 @@ declare module '../../index' {
979
988
  * ```
980
989
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createInnerAudioContext.html
981
990
  */
982
- createInnerAudioContext(): InnerAudioContext
991
+ createInnerAudioContext(option?: createInnerAudioContext.Option): InnerAudioContext
983
992
 
984
993
  /** 创建 audio 上下文 AudioContext 对象。
985
994
  * **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口**