application文件夹下audio文件夹合并提交
authorluozheng <1732036298@qq.com>
Thu, 24 Jul 2025 03:57:59 +0000 (11:57 +0800)
committerluozheng <1732036298@qq.com>
Thu, 24 Jul 2025 03:57:59 +0000 (11:57 +0800)
code/sdk/application/audio/sample_ai/sample_ai.c
code/sdk/application/audio/sample_encode/sample_encode.c

index a7551fb..7d2837c 100644 (file)
@@ -941,7 +941,7 @@ static td_s32 sample_ai_player_open(sample_ai_inst *inst)
         .in_arg = &in_arg,
         .snd = &h_snd,
         .snd_attr = &snd_attr,
-        .aef_profile = UAPI_SND_AEF_PROFILE_NONE,
+        .aef_profile = UAPI_SND_AEF_PROFILE_MUSIC,
     };
 
     /* set track input pcm format matching ai output pcm format */
index e15396b..57f5211 100644 (file)
@@ -1038,7 +1038,7 @@ static td_s32 sample_encode_play_open(sample_encode_inst *inst, const sample_enc
     td_s32 ret;
 
     /* 按照输入的采样率、声道、位宽,打开一个esplay播放器 */
-    ret = sample_esplay_open(&inst->aenc_arg, &inst->h_adp_play, UAPI_SND_AEF_PROFILE_NONE);
+    ret = sample_esplay_open(&inst->aenc_arg, &inst->h_adp_play, UAPI_SND_AEF_PROFILE_MUSIC);
     if (ret != EXT_SUCCESS) {
         sap_err_log_fun(sample_esplay_open, ret);
         return ret;