harmony 鸿蒙SoundPool (Sound Pool) (System API)
SoundPool (Sound Pool) (System API)
The SoundPool module provides APIs for loading, unloading, playing, and stopping playing system sounds, setting the volume, and setting the number of loops.
Before using these APIs, you must call media.createSoundPool to create a SoundPool instance.
NOTE
- The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
- This topic describes only system APIs provided by the module. For details about its public APIs, see SoundPool (Sound Pool).
PlayParameters
Describes the playback parameters of the sound pool.
System capability: SystemCapability.Multimedia.Media.SoundPool
Name | Type | Mandatory | Description |
---|---|---|---|
parallelPlayFlag | boolean | No | Whether the sound can be played in parallel with other active audio streams. The value true means that the sound can be played in parallel with other active audio streams, without preempting the audio focus, and false means the opposite. The default value is false. This is a system API. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙OH_AVRecorder_Config
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦