summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/chip8.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 36b0802cc6..aebae6580c 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1315,13 +1315,14 @@ static unsigned char beep[]={255,
1315 20,100, 18, 96, 41, 96, 78,102, 7,201,122, 76,119, 20,137, 37,177, 15,132,224, 1315 20,100, 18, 96, 41, 96, 78,102, 7,201,122, 76,119, 20,137, 37,177, 15,132,224,
1316 20, 17,191, 67,147,187,116,211, 41,169, 63,172,182,186,217,155,111,140,104,254, 1316 20, 17,191, 67,147,187,116,211, 41,169, 63,172,182,186,217,155,111,140,104,254,
1317111,181,184,144, 17,148, 21,101,166,227,100, 86, 85, 85, 85}; 1317111,181,184,144, 17,148, 21,101,166,227,100, 86, 85, 85, 85};
1318 1318#if (CONFIG_CODEC != SWCODEC)
1319/* callback to request more mp3 data */ 1319/* callback to request more mp3 data */
1320static void callback(const void** start, size_t* size) 1320static void callback(const void** start, size_t* size)
1321{ 1321{
1322 *start = beep; /* give it the same frame again */ 1322 *start = beep; /* give it the same frame again */
1323 *size = sizeof(beep); 1323 *size = sizeof(beep);
1324} 1324}
1325#endif /* CONFIG_CODEC == HWCODEC */
1325#endif /* PLATFORM_NATIVE */ 1326#endif /* PLATFORM_NATIVE */
1326 1327
1327/****************************************************************************/ 1328/****************************************************************************/
@@ -1541,7 +1542,7 @@ static bool chip8_run(const char* file)
1541 rb->lcd_drawrect(CHIP8_X-1,CHIP8_Y-1,CHIP8_LCDWIDTH+2,CHIP8_HEIGHT+2); 1542 rb->lcd_drawrect(CHIP8_X-1,CHIP8_Y-1,CHIP8_LCDWIDTH+2,CHIP8_HEIGHT+2);
1542#endif 1543#endif
1543 rb->lcd_update(); 1544 rb->lcd_update();
1544#if (CONFIG_CODEC == HWCODEC) 1545#if (CONFIG_CODEC != SWCODEC)
1545 /* init sound */ 1546 /* init sound */
1546 is_playing = rb->mp3_is_playing(); /* would we disturb playback? */ 1547 is_playing = rb->mp3_is_playing(); /* would we disturb playback? */
1547 if (!is_playing) /* no? then we can make sound */ 1548 if (!is_playing) /* no? then we can make sound */