forked from len0rd/rockbox
Commit work started in FS#12153 to put timing/position information in PCM
buffer chunks. * Samples and position indication is closely associated with audio data instead of compensating by a latency constant. Alleviates problems with using the elapsed as a track indicator where it could be off by several steps. * Timing is accurate throughout track even if resampling for pitch shift, whereas before it updated during transition latency at the normal 1:1 rate. * Simpler PCM buffer with a constant chunk size, no linked lists. In converting crossfade, a minor change was made to not change the WPS until the fade-in of the incoming track, whereas before it would change upon the start of the fade-out of the outgoing track possibly having the WPS change with far too much lead time. Codec changes are to set elapsed times *before* writing next PCM frame because time and position data last set are saved in the next committed PCM chunk. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30366 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
463b3ed8b2
commit
7ad2cad173
32 changed files with 969 additions and 830 deletions
|
|
@ -84,7 +84,6 @@ restart_track:
|
|||
% wfx.packet_size;
|
||||
ci->seek_buffer(resume_offset - packet_offset);
|
||||
elapsedtime = asf_get_timestamp(&i);
|
||||
ci->set_elapsed(elapsedtime);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -93,6 +92,8 @@ restart_track:
|
|||
elapsedtime = 0;
|
||||
}
|
||||
|
||||
ci->set_elapsed(elapsedtime);
|
||||
|
||||
resume_offset = 0;
|
||||
ci->configure(DSP_SWITCH_FREQUENCY, wfx.rate);
|
||||
ci->configure(DSP_SET_STEREO_MODE, wfx.channels == 1 ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue