| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 22-Oct-2025 | - | 42 | 39 | ||
| entry/ | 22-Oct-2025 | - | 688 | 621 | ||
| hvigor/ | 22-Oct-2025 | - | 37 | 36 | ||
| screenshots/ | 22-Oct-2025 | - | ||||
| .gitignore | D | 22-Oct-2025 | 133 | 12 | 12 | |
| README.md | D | 22-Oct-2025 | 1.7 KiB | 69 | 49 | |
| build-profile.json5 | D | 22-Oct-2025 | 1.3 KiB | 57 | 57 | |
| hvigorfile.ts | D | 22-Oct-2025 | 842 | 21 | 5 | |
| oh-package.json5 | D | 22-Oct-2025 | 808 | 25 | 24 | |
| ohosTest.md | D | 22-Oct-2025 | 443 | 7 | 5 |
README.md
1# SoundPoolArkTS 2 3## 介绍 4 5本示例为媒体->Media Kit(媒体服务)->[使用SoundPool播放短音频(ArkTS)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/media/media/using-soundpool-for-playback.md)的配套示例工程。 6 7本示例展示了如何使用SoundPool进行低时延播放。 8 9## 效果预览 10 11| 预览 | 12| -------------------------------------------- | 13<img src="./screenshots/SoundPoolArkTS.png" width="300" /> 14 15 16## 使用说明 171. 安装编译生成的hap包,并打开应用; 182. 点击播放RawFile按钮,进行低时延播放; 19 20## 工程目录 21 22``` 23SoundPoolArkTS 24entry/src/main/ets/ 25└── pages 26 └── Index.ets (播放界面) 27entry/src/main/resources/ 28├── base 29│ ├── element 30│ │ ├── color.json 31│ │ ├── float.json 32│ │ └── string.json 33│ └── media 34│ 35└── rawfile 36 └── test.ogg (音频资源) 37entry/src/ohosTest/ets/ 38└── test 39 ├── Ability.test.ets (UI测试代码) 40 └── List.test.ets (测试套件列表) 41``` 42 43## 相关权限 44 45不涉及 46 47## 依赖 48 49不涉及 50 51## 约束和限制 52 531. 本示例支持标准系统上运行,支持设备:RK3568; 54 552. 本示例支持API20版本SDK,版本号:6.0.0.34; 56 573. 本示例已支持使DevEco Studio 5.0.3 Release (构建版本:5.0.9.300,构建 2025年3月13日)编译运行 58 59## 下载 60 61如需单独下载本工程,执行如下命令: 62 63``` 64git init 65git config core.sparsecheckout true 66echo code/DocsSample/Media/SoundPool/SoundPoolArkTS/ > .git/info/sparse-checkout 67git remote add origin https://gitee.com/openharmony/applications_app_samples.git 68git pull origin master 69```