Skip to content

Commit d0a1d12

Browse files
committed
audio: fix build error
1 parent 46c0adb commit d0a1d12

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main/src/user/audio_player.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ void audio_player_play_file(uint8_t idx)
154154

155155
void audio_player_set_mode(uint8_t idx)
156156
{
157-
#ifdef CONFIG_ENABLE_AUDIO_PROMPT
158157
aplay_mode = idx;
159158
ESP_LOGI(TAG, "mode: %u", aplay_mode);
160159

160+
#ifdef CONFIG_ENABLE_AUDIO_PROMPT
161161
if (aplay_mode) {
162162
xEventGroupClearBits(user_event_group, AUDIO_PLAYER_EXIT_BIT);
163163
audio_player_init();

main/src/user/audio_render.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ static void audio_render_task(void *pvParameter)
133133
xEventGroupClearBits(user_event_group, VFX_FFT_NULL_BIT);
134134
#endif
135135

136+
#if defined(CONFIG_ENABLE_AUDIO_PROMPT) || !defined(CONFIG_AUDIO_INPUT_NONE) || defined(CONFIG_ENABLE_VFX)
136137
return_item:
138+
#endif
137139
vRingbufferReturnItem(audio_buff, (void *)data);
138140
}
139141
}

0 commit comments

Comments
 (0)