diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-11-18 17:12:19 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-11-18 17:12:19 +0000 |
| commit | 99617d71bad0e5870a38e37c8654e46868e2a5ba (patch) | |
| tree | e0ecc3b73e8e167c7f5bf00a6c88b83c1119aea3 /apps/plugin.c | |
| parent | 75432619e8be2f22f86ed0869d46bf7245c7c14d (diff) | |
| download | rockbox-99617d71bad0e5870a38e37c8654e46868e2a5ba.zip rockbox-99617d71bad0e5870a38e37c8654e46868e2a5ba.tar.gz rockbox-99617d71bad0e5870a38e37c8654e46868e2a5ba.tar.bz2 rockbox-99617d71bad0e5870a38e37c8654e46868e2a5ba.tar.xz | |
Make speex the new voice format for SWCODEC targets (non-Archos). Remove codec swapping and build speex voice decoding directly into the core binary.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15668 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index a80e9dd..145d30b 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -457,7 +457,7 @@ static const struct plugin_api rockbox_api = { plugin_get_audio_buffer, plugin_tsr, plugin_get_current_filename, -#ifdef IRAM_STEAL +#ifdef PLUGIN_USE_IRAM plugin_iram_init, #endif #if defined(DEBUG) || defined(SIMULATOR) @@ -732,12 +732,13 @@ void* plugin_get_audio_buffer(size_t *buffer_size) #endif } -#ifdef IRAM_STEAL +#ifdef PLUGIN_USE_IRAM /* Initializes plugin IRAM */ void plugin_iram_init(char *iramstart, char *iramcopy, size_t iram_size, char *iedata, size_t iedata_size) { - audio_iram_steal(); + /* We need to stop audio playback in order to use codec IRAM */ + audio_hard_stop(); memcpy(iramstart, iramcopy, iram_size); memset(iedata, 0, iedata_size); memset(iramcopy, 0, iram_size); @@ -746,7 +747,7 @@ void plugin_iram_init(char *iramstart, char *iramcopy, size_t iram_size, flush_icache(); #endif } -#endif /* IRAM_STEAL */ +#endif /* PLUGIN_USE_IRAM */ /* The plugin wants to stay resident after leaving its main function, e.g. runs from timer or own thread. The callback is registered to later |