merge dev-0705 into master

新增缺少的文件

Created-by: sunruiyang
Commit-by: sunruiyang;ruiyangsun
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)
https://gitcode.com/openharmony-sig/third_party_sonic/issues/6


### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:


See merge request: openharmony-sig/third_party_sonic!6
This commit is contained in:
openharmony_ci
2025-07-07 15:55:43 +08:00
5 changed files with 50 additions and 47 deletions
+5
View File
@@ -60,6 +60,7 @@ Note:If the text contains special characters, please escape them according to th
<policylist>
<policy name="projectPolicy" desc="Sonic audio source code">
<policyitem type="compatibility" name="Apache-2.0" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="Apache-2.0协议,不影响兼容性"/>
<policyitem type="filetype" name="!binary" path=".*" rule="must" group="defaultGroup" filefilter="binaryFileTypePolicyFilter" desc=""/>
</policy>
</policylist>
<filefilterlist>
@@ -75,6 +76,10 @@ Note:If the text contains special characters, please escape them according to th
<filteritem type="filename" name="wave.h" desc="sonic wave header file"/>
<filteritem type="filename" name="wave.c" desc="sonic wave source file"/>
</filefilter>
<filefilter name="binaryFileTypePolicyFilter" desc="">
<filteritem type="filename" name="architecture_diagram_en.png" desc="architecture diagram"/>
<filteritem type="filename" name="architecture_diagram_zh.png" desc="architecture diagram"/>
</filefilter>
</filefilterlist>
</oatconfig>
</configuration>
+21 -23
View File
@@ -5,31 +5,29 @@
Sonic is an algorithm for audio speed change, enabling basic audio processing such as changing speed without altering pitch, changing pitch without altering speed, and simultaneously changing speed and pitch. It is particularly optimized for speed changes of more than 2x. Sonic includes implementations in both C and Java, with main.c and main.java serving as simple usage examples for each.
## Directory Structure
![image](./architecture_diagram_en.png)
In the OpenHarmony system, sonic inheritance is implemented within the audio service. Through the service, applications can call relevant interfaces to achieve audio speed change playback, The related interfaces are setSpeed and getSpeed. For detailed instructions, please refer to the link: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-audio-kit/js-apis-audio.md
```
third_party_sonic/
├── debian/
├── doc/
├── samples/
├── BUILD.gn
├── bundle.json
├── COPYING
├── LICENSE
├── Main.java
├── main.c
├── Main.java
├── Makefile
├── mkorig
├── OAT.xml
├── README
├── README_en.md
── README_ch.md
├── README.OpenSource
├── sonic.1
├── sonic.c
├── sonic.h
├── Sonic.java
├── wave.c
└── wave.h
├── debian/ # Debian system source code
├── samples/ # Audio samples
├── Main.java # Java usage example
├── main.c # C usage example
├── sonic.c # C audio speed change source code
├── sonic.h # C audio speed change source code
├── Sonic.java # Java audio speed change source code
├── wave.c # C audio speed change source code
├── wave.h # C audio speed change source code
├── BUILD.gn # build script
├── bundle.json # build script
├── Makefile # Compilation script
├── README_zh.md # Installation and usage instructions
├── README_en.md # Installation and usage instructions
├── COPYING # License declaration
── LICENSE # License declaration
```
## OpenHarmony Adaptation for Sonic
+24 -24
View File
@@ -4,33 +4,33 @@
Sonic是一个用于音频变速的算法,可以实现音频变速不变调、变调不变速、同时变速变调等基本音频处理,尤其对2倍以上的变速进行了优化。Sonic包含了C和Java两种实现,main.c和main.java分别为两者的简单使用示例。
## 架构说明
![image](./architecture_diagram_zh.png)
在OpenHarmony系统中,sonic继承在音频服务中,通过音频服务提供接口,应用可以调用相关接口实现音频变速播放。
相关接口为setSpeed与getSpeed, 详细说明参考链接: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-audio-kit/js-apis-audio.md
## 目录结构
```
third_party_sonic/
├── debian/
├── doc/
├── samples/
├── BUILD.gn
├── bundle.json
├── COPYING
├── LICENSE
├── Main.java
├── main.c
├── Main.java
├── Makefile
├── mkorig
├── OAT.xml
├── README
├── README_en.md
── README_ch.md
├── README.OpenSource
├── sonic.1
├── sonic.c
├── sonic.h
├── Sonic.java
├── wave.c
└── wave.h
├── debian/ # Debian系统源码
├── samples/ # 音频样例
├── Main.java # Java使用示例
├── main.c # C使用用例
├── sonic.c # C音频变速源码
├── sonic.h # C音频变速源码
├── Sonic.java # JAVA音频变速源码
├── wave.c # C音频变速源码
├── wave.h # C音频变速源码
├── BUILD.gn # 构建脚本
├── bundle.json # 构建脚本
├── Makefile # 编译脚本
├── README_zh.md # 安装使用方法
├── README_en.md # 安装使用方法
├── COPYING # 声明许可证
── LICENSE # 声明许可证
```
## OpenHarmony对于sonic的适配
sonic引入openharmony的thirdparty目录下, 使用OpenHarmony中依赖部件的方式进行编译。
Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB