diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-09-04 08:38:00 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-09-04 08:38:00 +0000 |
commit | 9146406061a0a32b02a2c62c7d71f6ec606487cc (patch) | |
tree | 493d5a9ef1cc83399b990d2e3602a0527c80e1cf /apps | |
parent | a46503d5a97aa0901853cb907532efdc3a509ecf (diff) | |
download | rockbox-9146406061a0a32b02a2c62c7d71f6ec606487cc.tar.gz rockbox-9146406061a0a32b02a2c62c7d71f6ec606487cc.zip |
Fixed possible problem with move to next folder option enabled. Placed
voice codec stack on iram and reduced both codec stack sizes by 0x500.
Now voice codec should be much faster.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7468 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c index 6ad5e53a20..6fd63d5a0f 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -111,13 +111,13 @@ static const char audio_thread_name[] = "audio"; | |||
111 | 111 | ||
112 | /* Codec thread. */ | 112 | /* Codec thread. */ |
113 | static struct event_queue codec_queue; | 113 | static struct event_queue codec_queue; |
114 | static long codec_stack[(DEFAULT_STACK_SIZE + 0x2500)/sizeof(long)] IDATA_ATTR; | 114 | static long codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)] IDATA_ATTR; |
115 | static const char codec_thread_name[] = "codec"; | 115 | static const char codec_thread_name[] = "codec"; |
116 | 116 | ||
117 | /* Voice codec thread. */ | 117 | /* Voice codec thread. */ |
118 | static struct event_queue voice_codec_queue; | 118 | static struct event_queue voice_codec_queue; |
119 | /* Not enough IRAM for this. */ | 119 | /* Not enough IRAM for this. */ |
120 | static long voice_codec_stack[(DEFAULT_STACK_SIZE + 0x2500)/sizeof(long)]; | 120 | static long voice_codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)] IDATA_ATTR; |
121 | static const char voice_codec_thread_name[] = "voice codec"; | 121 | static const char voice_codec_thread_name[] = "voice codec"; |
122 | 122 | ||
123 | static struct mutex mutex_bufferfill; | 123 | static struct mutex mutex_bufferfill; |
@@ -1635,7 +1635,8 @@ void audio_thread(void) | |||
1635 | the requested track. This is needed because when skipping | 1635 | the requested track. This is needed because when skipping |
1636 | tracks fast, AUDIO_PLAY commands will get queued with the | 1636 | tracks fast, AUDIO_PLAY commands will get queued with the |
1637 | the same track and playback will stutter. */ | 1637 | the same track and playback will stutter. */ |
1638 | if (last_index == playlist_get_display_index() && playing) { | 1638 | if (last_index == playlist_get_display_index() && playing |
1639 | && pcm_is_playing()) { | ||
1639 | logf("already playing req. track"); | 1640 | logf("already playing req. track"); |
1640 | break ; | 1641 | break ; |
1641 | } | 1642 | } |