summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 50fbb37012..32b77ad287 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -979,14 +979,8 @@ void* plugin_get_buffer(size_t *buffer_size)
979 */ 979 */
980void* plugin_get_audio_buffer(size_t *buffer_size) 980void* plugin_get_audio_buffer(size_t *buffer_size)
981{ 981{
982#if CONFIG_CODEC == SWCODEC
983 return audio_get_buffer(true, buffer_size);
984#else
985 audio_stop(); 982 audio_stop();
986 talk_buffer_steal(); /* we use the mp3 buffer, need to tell */ 983 return audio_get_buffer(true, buffer_size);
987 *buffer_size = audiobufend - audiobuf;
988 return audiobuf;
989#endif
990} 984}
991 985
992/* The plugin wants to stay resident after leaving its main function, e.g. 986/* The plugin wants to stay resident after leaving its main function, e.g.