summaryrefslogtreecommitdiff
path: root/apps/plugins/test_sampr.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_sampr.c')
-rw-r--r--apps/plugins/test_sampr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/test_sampr.c b/apps/plugins/test_sampr.c
index 77f9b8a779..1131a7a989 100644
--- a/apps/plugins/test_sampr.c
+++ b/apps/plugins/test_sampr.c
@@ -39,7 +39,7 @@ static unsigned long hw_sampr IDATA_ATTR = HW_SAMPR_DEFAULT;
39 39
40static int gen_thread_stack[DEFAULT_STACK_SIZE/sizeof(int)] IBSS_ATTR; 40static int gen_thread_stack[DEFAULT_STACK_SIZE/sizeof(int)] IBSS_ATTR;
41static bool gen_quit IBSS_ATTR; 41static bool gen_quit IBSS_ATTR;
42static struct thread_entry *gen_thread_p; 42static unsigned int gen_thread_id;
43 43
44#define OUTPUT_CHUNK_COUNT (1 << 1) 44#define OUTPUT_CHUNK_COUNT (1 << 1)
45#define OUTPUT_CHUNK_MASK (OUTPUT_CHUNK_COUNT-1) 45#define OUTPUT_CHUNK_MASK (OUTPUT_CHUNK_COUNT-1)
@@ -233,11 +233,11 @@ static void play_tone(bool volume_set)
233 output_clear(); 233 output_clear();
234 update_gen_step(); 234 update_gen_step();
235 235
236 gen_thread_p = rb->create_thread(gen_thread_func, gen_thread_stack, 236 gen_thread_id = rb->create_thread(gen_thread_func, gen_thread_stack,
237 sizeof(gen_thread_stack), 0, 237 sizeof(gen_thread_stack), 0,
238 "test_sampr generator" 238 "test_sampr generator"
239 IF_PRIO(, PRIORITY_PLAYBACK) 239 IF_PRIO(, PRIORITY_PLAYBACK)
240 IF_COP(, CPU)); 240 IF_COP(, CPU));
241 241
242 rb->pcm_play_data(get_more, NULL, 0); 242 rb->pcm_play_data(get_more, NULL, 0);
243 243
@@ -260,7 +260,7 @@ static void play_tone(bool volume_set)
260 260
261 gen_quit = true; 261 gen_quit = true;
262 262
263 rb->thread_wait(gen_thread_p); 263 rb->thread_wait(gen_thread_id);
264 264
265 rb->pcm_play_stop(); 265 rb->pcm_play_stop();
266 266