summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-03-19 22:15:52 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-03-19 22:15:52 +0000
commitfd5714bbefc0b4c80409fe35db0dfb60e0e5e01a (patch)
tree9a5064a6ad17833a66dd7ec5b80b6b0b4fae98af
parent7ceee9d04b9bed48b1e48ab1862f4f2da373f335 (diff)
downloadrockbox-fd5714bbefc0b4c80409fe35db0dfb60e0e5e01a.tar.gz
rockbox-fd5714bbefc0b4c80409fe35db0dfb60e0e5e01a.zip
minor bugfix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4412 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/metronome.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c
index 00cbe18e25..a6ca3d33c4 100644
--- a/apps/plugins/metronome.c
+++ b/apps/plugins/metronome.c
@@ -107,8 +107,8 @@ void calc_time_to_next_tock(void){
}
void callback(unsigned char** start, int* size){
- *start = sound; /* give it the same frame again */
- *size = NULL;
+ (void)start; /* unused parameter, avoid warning */
+ *size = NULL; /* end of data */
sound_active = false;
led(0);
}
@@ -182,7 +182,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter){
rb->bitswap(sound, sizeof(sound));
- if (rb->mp3_is_playing)
+ if (rb->mp3_is_playing())
rb->mp3_play_stop(); // stop audio ISR
calc_time_to_next_tock();