Skip to content

Commit

Permalink
esp_audio_effects: fix sonic test have error
Browse files Browse the repository at this point in the history
  • Loading branch information
majingjing123 committed Oct 18, 2024
1 parent af0ab8b commit 2917a26
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 2,149 deletions.
7 changes: 7 additions & 0 deletions esp_audio_effects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@

- Initial version of `esp-audio-effects`
- Add audio effects module for `ALC`, `BIT_CVT`, `CH_CVT`, `RATE_CVT`, `EQ`, `FADE`, `DATA_WEAVER`, `MIXER`, `SONIC`

## v1.0.1

### Bug Fixes

- Fix `test_sonic` test code error
- Remove `sdkconfig.default` have some configuration strings that cannot be detected by the latest IDF
25 changes: 11 additions & 14 deletions esp_audio_effects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@ The following table listed the sample_rate, channels and bits_per_sample support

# Audio Effects Release and SoC Compatibility

The following table outlines the audio effects supported by Espressif SoCs.

- ![Supported](docs/_static/yes-icon.png "Supported") indicates support.
- ![Not Supported](docs/_static/no-icon.png "Not Supported") indicates lack of support.
The following table shows the support of ESP_AUDIO_CODEC for Espressif SoCs. The "✔" means supported, and the "✖" means not supported.

|Chip | v1.0.0 |
|:-----------:|:-------------------------------------:|
|ESP32 | ![alt text](docs/_static/yes-icon.png)|
|ESP32-S2 | ![alt text](docs/_static/yes-icon.png)|
|ESP32-S3 | ![alt text](docs/_static/yes-icon.png)|
|ESP32-C2 | ![alt text](docs/_static/yes-icon.png)|
|ESP32-C3 | ![alt text](docs/_static/yes-icon.png)|
|ESP32-C5 | ![alt text](docs/_static/yes-icon.png)|
|ESP32-C6 | ![alt text](docs/_static/yes-icon.png)|
|ESP32-P4 | ![alt text](docs/_static/yes-icon.png)|
|Chip | v1.0.1 |
|:-----------:|:----------------:|
|ESP32 | ✔ |
|ESP32-S2 | ✔ |
|ESP32-S3 | ✔ |
|ESP32-C2 | ✔ |
|ESP32-C3 | ✔ |
|ESP32-C5 | ✔ |
|ESP32-C6 | ✔ |
|ESP32-P4 | ✔ |
2 changes: 1 addition & 1 deletion esp_audio_effects/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ description: Espressif audio effects
issues: https://github.com/espressif/esp-adf/issues
repository: https://github.com/espressif/esp-adf-libs.git
url: https://github.com/espressif/esp-adf-libs/tree/master/esp_audio_effects
version: 1.0.0
version: 1.0.1
3 changes: 1 addition & 2 deletions esp_audio_effects/test_app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ cmake_minimum_required(VERSION 3.16)

set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/components"
"$ENV{IDF_PATH}/tools/unit-test-app/components"
"$ENV{ADF_PATH}/components/esp-adf-libs/esp_audio_effects"
"$ENV{ADF_PATH}/components/esp-adf-libs/media_lib_sal")
"$ENV{ADF_PATH}/components/esp-adf-libs/esp_audio_effects")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

Expand Down
6 changes: 3 additions & 3 deletions esp_audio_effects/test_app/main/test_sonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static int sonic_interleave_16_bit_test(int mode, char *mode_name)
out_samples.out_num * sizeof(short) * channel, outfile);
#endif /* CMP_MODE */
}
in = inbuf + in_samples.consume_num;
in = inbuf + in_samples.consume_num * channel;
remain_num -= in_samples.consume_num;
in_samples.num = remain_num;
in_samples.samples = in;
Expand Down Expand Up @@ -226,7 +226,7 @@ static int sonic_interleave_24_bit_test(int mode, char *mode_name)
fwrite(outbuf, 1, out_samples.out_num * (16 >> 3) * channel, outfile);
#endif /* CMP_MODE */
}
in = inbuf + in_samples.consume_num;
in = inbuf + in_samples.consume_num * channel * (config.bits_per_sample >> 3);
remain_num -= in_samples.consume_num;
in_samples.num = remain_num;
in_samples.samples = in;
Expand Down Expand Up @@ -336,7 +336,7 @@ static int sonic_interleave_32_bit_test(int mode, char *mode_name)
fwrite(outbuf, 1, out_samples.out_num * (16 >> 3) * channel, outfile);
#endif /* CMP_MODE */
}
in = inbuf + in_samples.consume_num;
in = inbuf + in_samples.consume_num * channel * (config.bits_per_sample >> 3);
remain_num -= in_samples.consume_num;
in_samples.num = remain_num;
in_samples.samples = in;
Expand Down
Loading

0 comments on commit 2917a26

Please sign in to comment.