File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ static void audio_render_task(void *pvParameter)
8181
8282#ifdef CONFIG_ENABLE_AUDIO_PROMPT
8383 if (!(uxBits & AUDIO_PLAYER_IDLE_BIT )) {
84- goto return_item ;
84+ vRingbufferReturnItem (audio_buff , (void * )data );
85+ continue ;
8586 }
8687#endif
8788
@@ -93,14 +94,16 @@ static void audio_render_task(void *pvParameter)
9394#ifndef CONFIG_AUDIO_INPUT_NONE
9495 uxBits = xEventGroupGetBits (user_event_group );
9596 if (uxBits & AUDIO_INPUT_RUN_BIT ) {
96- goto return_item ;
97+ vRingbufferReturnItem (audio_buff , (void * )data );
98+ continue ;
9799 }
98100#endif
99101
100102#ifdef CONFIG_ENABLE_VFX
101103 uxBits = xEventGroupGetBits (user_event_group );
102104 if (!(uxBits & VFX_FFT_NULL_BIT )) {
103- goto return_item ;
105+ vRingbufferReturnItem (audio_buff , (void * )data );
106+ continue ;
104107 }
105108
106109 // Copy data to FFT input buffer
@@ -133,9 +136,6 @@ static void audio_render_task(void *pvParameter)
133136 xEventGroupClearBits (user_event_group , VFX_FFT_NULL_BIT );
134137#endif
135138
136- #if defined(CONFIG_ENABLE_AUDIO_PROMPT ) || !defined(CONFIG_AUDIO_INPUT_NONE ) || defined(CONFIG_ENABLE_VFX )
137- return_item :
138- #endif
139139 vRingbufferReturnItem (audio_buff , (void * )data );
140140 }
141141}
You can’t perform that action at this time.
0 commit comments