diff options
author | Franklin Wei <frankhwei536@gmail.com> | 2014-08-22 17:52:39 -0400 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2014-08-22 23:53:50 +0200 |
commit | 7e46440e4d949fae8049c07968d6766b3634e2c6 (patch) | |
tree | 3cbd034615fc364b63e2aff907f24f645943a8b7 /apps/plugins/chip8.c | |
parent | 8f9bd987e16641477d6b4e15a54dde66a9923f8a (diff) |
Yellow go bye-bye
Change-Id: I12ce8b7781b4b1ce1c47b2973057586177f90157
Reviewed-on: http://gerrit.rockbox.org/923
Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
Diffstat (limited to 'apps/plugins/chip8.c')
-rw-r--r-- | apps/plugins/chip8.c | 5 |
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, 20,100, 18, 96, 41, 96, 78,102, 7,201,122, 76,119, 20,137, 37,177, 15,132,224, 20, 17,191, 67,147,187,116,211, 41,169, 63,172,182,186,217,155,111,140,104,254, 111,181,184,144, 17,148, 21,101,166,227,100, 86, 85, 85, 85}; - +#if (CONFIG_CODEC != SWCODEC) /* callback to request more mp3 data */ static void callback(const void** start, size_t* size) { *start = beep; /* give it the same frame again */ *size = sizeof(beep); } +#endif /* CONFIG_CODEC == HWCODEC */ #endif /* PLATFORM_NATIVE */ /****************************************************************************/ @@ -1541,7 +1542,7 @@ static bool chip8_run(const char* file) rb->lcd_drawrect(CHIP8_X-1,CHIP8_Y-1,CHIP8_LCDWIDTH+2,CHIP8_HEIGHT+2); #endif rb->lcd_update(); -#if (CONFIG_CODEC == HWCODEC) +#if (CONFIG_CODEC != SWCODEC) /* init sound */ is_playing = rb->mp3_is_playing(); /* would we disturb playback? */ if (!is_playing) /* no? then we can make sound */ |