summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-09 13:49:52 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-09 13:49:52 +0000
commitcc86b65d24d09452684011c4f162d252400fa35d (patch)
treea6551a1784c9260b9af3b88b623f1cec6b9bd1d0
parente4efe2fe3caeaed73c1d19b58e5ddc378d1a3e1c (diff)
downloadrockbox-cc86b65d24d09452684011c4f162d252400fa35d.tar.gz
rockbox-cc86b65d24d09452684011c4f162d252400fa35d.zip
I really want the rest initialized to prevent accidents like the last.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12696 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 8fdca01458..872bf6f3e9 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -322,18 +322,18 @@ static unsigned char *dram_buf[2] = { NULL, NULL };
static struct mutex mutex_codecthread NOCACHEBSS_ATTR;
/* Voice state */
-static volatile bool voice_thread_start; /* Triggers voice playback (A/V) */
-static volatile bool voice_is_playing NOCACHEBSS_ATTR; /* Is voice currently playing? (V) */
-static volatile bool voice_codec_loaded NOCACHEBSS_ATTR; /* Is voice codec loaded (V/A-) */
-static char *voicebuf;
-static size_t voice_remaining;
+static volatile bool voice_thread_start = false; /* Triggers voice playback (A/V) */
+static volatile bool voice_is_playing NOCACHEBSS_ATTR = false; /* Is voice currently playing? (V) */
+static volatile bool voice_codec_loaded NOCACHEBSS_ATTR = false; /* Is voice codec loaded (V/A-) */
+static char *voicebuf = NULL;
+static size_t voice_remaining = 0;
#ifdef IRAM_STEAL
/* Voice IRAM has been stolen for other use */
static bool voice_iram_stolen = false;
#endif
-static void (*voice_getmore)(unsigned char** start, int* size);
+static void (*voice_getmore)(unsigned char** start, int* size) = NULL;
struct voice_info {
void (*callback)(unsigned char **start, int *size);