diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-04-24 03:43:43 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-24 03:43:43 +0000 |
| commit | 9ca16a66bf6ed689f83eda58e54c57df31a0cabf (patch) | |
| tree | 6797de9c8aa871a8547997f5c567daadee7d9c35 /apps | |
| parent | 2da61ff3fbd01573a725684df50b3625bdf0aa45 (diff) | |
| download | rockbox-9ca16a66bf6ed689f83eda58e54c57df31a0cabf.zip rockbox-9ca16a66bf6ed689f83eda58e54c57df31a0cabf.tar.gz rockbox-9ca16a66bf6ed689f83eda58e54c57df31a0cabf.tar.bz2 rockbox-9ca16a66bf6ed689f83eda58e54c57df31a0cabf.tar.xz | |
Fix crossfade locational setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9785 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/pcmbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index 0c037ab..a422d6c 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c @@ -455,6 +455,7 @@ static void crossfade_process_buffer(size_t fade_in_delay, struct pcmbufdesc *fade_out_chunk = crossfade_chunk; /* Find the right chunk to start fading out */ + fade_out_delay += crossfade_sample * 2; while (fade_out_delay >= fade_out_chunk->size) { fade_out_delay -= fade_out_chunk->size; @@ -491,6 +492,7 @@ static void crossfade_process_buffer(size_t fade_in_delay, } /* Find the right chunk and sample to start fading in */ + fade_in_delay += crossfade_sample * 2; while (fade_in_delay >= crossfade_chunk->size) { fade_in_delay -= crossfade_chunk->size; |