summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-11 13:00:45 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-11 13:00:45 +0000
commita9debda64ec400c5d2196a07ed6d8350156afefa (patch)
treea5347284fffb4b4b4dae47d3a4be8687904e68bc
parent3b76544fa9441976b612d0933cc5149c96290eb0 (diff)
downloadrockbox-a9debda64ec400c5d2196a07ed6d8350156afefa.zip
rockbox-a9debda64ec400c5d2196a07ed6d8350156afefa.tar.gz
rockbox-a9debda64ec400c5d2196a07ed6d8350156afefa.tar.bz2
rockbox-a9debda64ec400c5d2196a07ed6d8350156afefa.tar.xz
Fix some comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9606 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 0f4a882..27c7cd7 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -140,7 +140,6 @@ static const char codec_thread_name[] = "codec";
/* Voice codec thread. */
static struct event_queue voice_codec_queue;
-/* Not enough IRAM for this. */
static long voice_codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)] IBSS_ATTR;
static const char voice_codec_thread_name[] = "voice codec";
@@ -309,7 +308,6 @@ bool codec_pcmbuf_insert_split_callback(const void *ch1, const void *ch2,
while (length > 0) {
long est_output_size = dsp_output_size(length);
- /* This will prevent old audio from playing when skipping tracks. */
if (current_codec == CODEC_IDX_VOICE) {
while ((dest = pcmbuf_request_voice_buffer(est_output_size,
&output_size, audio_codec_loaded)) == NULL)
@@ -317,6 +315,7 @@ bool codec_pcmbuf_insert_split_callback(const void *ch1, const void *ch2,
}
else
{
+ /* Prevent audio from a previous position from hitting the buffer */
if (ci.reload_codec || ci.stop_codec)
return true;
@@ -653,10 +652,11 @@ static void buffer_wind_backward(size_t rewind)
/* Check and handle buffer wrapping */
if (rewind > buf_ridx)
buf_ridx += filebuflen;
+ /* Rewind the buffer to the beginning of the target track (or its codec) */
buf_ridx -= rewind;
filebufused += rewind;
- /* Rewind the track to its beginning */
+ /* Rewind the old track to its beginning */
prev_ti->available = prev_ti->filesize - prev_ti->filerem;
/* Reset to the beginning of the new track */
cur_ti->available = cur_ti->filesize;