projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecdee23
)
优化音频测试信息打印
2851/1
2851/head
2852/target/1
author
penglei
<1624952103@qq.com>
Wed, 3 Dec 2025 11:29:35 +0000
(19:29 +0800)
committer
penglei
<1624952103@qq.com>
Wed, 3 Dec 2025 11:29:35 +0000
(19:29 +0800)
code/sdk/zhihui/utilscpp/audio_test.cpp
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/utilscpp/audio_test.cpp
b/code/sdk/zhihui/utilscpp/audio_test.cpp
index
322e22b
..
4f33bde
100644
(file)
--- a/
code/sdk/zhihui/utilscpp/audio_test.cpp
+++ b/
code/sdk/zhihui/utilscpp/audio_test.cpp
@@
-149,7
+149,7
@@
static void AudioTestDataCallback(const uint8_t* data, uint32_t size, void* user
pcm_volume_result_t result;
if (pcm_calculate_volume(temp_buffer, samples_to_use, &result) == 0) {
-
PRINT("
[AudioTest] Volume - RMS: %.2f%% (%.2f dB), Peak: %.2f%% (%.2f dB), Level: %s\r\n",
+
printf("fac:
[AudioTest] Volume - RMS: %.2f%% (%.2f dB), Peak: %.2f%% (%.2f dB), Level: %s\r\n",
result.rms * 100.0, result.rms_db,
result.peak * 100.0, result.peak_db,
pcm_get_volume_level(result.rms_db));