1
0
Fork 0
forked from len0rd/rockbox
foxbox/lib/rbcodec/codecs
Adam Sampson 1f8ea9fe27 Opus: update resume offset correctly while playing.
The codec wasn't calling ci->set_offset() while decoding; as a result,
the saved offset in ci.id3->offset was only updated at the start of the
file and when seeking.

To reproduce the problem in the simulator or on a real device:
- Start playing an Opus file.
- Let it play until 15s, then turn the player off.
- Turn back on and resume playback. This'll resume correctly from 15s
  (using time-based resume, I think, as the offset was 0?).
- Let it play until 30s, then turn the player off again.
- Turn back on and resume playback. This'll resume from 15s, based on
  the initial position from last time, when it should resume from 30s.

I believe this will also fix FS#12799 ("Resuming opus file from bookmark
is not working correctly").

Change-Id: Iba67368e0029c968ef802693767e0722719bc38b
2016-09-07 19:44:37 +02:00
..
demac Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
lib More standard conforming codec_realloc() 2014-12-27 17:33:24 +01:00
liba52 Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
libalac Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
libasap asap codec: remove invalid memset 2012-05-06 23:38:15 -04:00
libasf Fix FS#13009. 2014-11-28 22:30:05 +01:00
libatrac Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
libcook Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
libfaad Limit more variables to file scope 2015-01-11 21:40:51 +01:00
libffmpegFLAC Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libgme Limit more variables to file scope 2015-01-11 21:40:51 +01:00
libm4a remove extraneous parens 2012-05-06 23:41:37 -04:00
libmad libmad: Use 32bit unsigned for requantize table. 2014-04-15 23:49:07 +02:00
libmusepack Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libopus libopus: use iram for more constants 2014-07-13 14:19:54 +02:00
libpcm Add support for 16 bit 'half float' format PCM. 2012-11-22 05:18:00 +01:00
librm Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
libspc SPC Codec ARMv5: I didn't have fast gauss quite right. 2013-05-26 00:33:30 -04:00
libspeex Limit more variables to file scope 2015-01-11 21:40:51 +01:00
libtremor Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
libtta Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
libwavpack Limit more variables to file scope 2015-01-11 21:40:51 +01:00
libwma Fix race conditions in parallel build. 2016-05-28 17:41:32 +02:00
libwmapro Fix race conditions in parallel build. 2016-05-28 17:41:32 +02:00
libwmavoice Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
a52.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
a52_rm.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
aac.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
adx.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
aiff.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
aiff_enc.c Add missing #include statements. 2013-10-20 16:52:46 +02:00
alac.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
ape.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
asap.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
atrac3_oma.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
atrac3_rm.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
au.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
ay.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
codec_crt0.c Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
codecs.h Fix warnings from 6ed0087 2014-08-16 06:00:36 -04:00
codecs.make Change CODECFLAGS to a "simply-expanded" var to give the individual 2013-08-23 18:34:30 +02:00
cook.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
flac.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
gbs.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
hes.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
kss.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
mod.c Limit more variables to file scope 2015-01-11 21:40:51 +01:00
mp3_enc.c mp3_enc.c: fix MP3 recording at 32 kHz sample rate 2015-07-17 01:03:38 +02:00
mpa.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
mpc.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
nsf.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
opus.c Opus: update resume offset correctly while playing. 2016-09-07 19:44:37 +02:00
raac.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
sgc.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
shorten.c Purge the usage of DSP_SWITCH_FREQUENCY. 2013-05-05 00:48:40 -04:00
sid.c Limit more variables to file scope 2015-01-11 21:40:51 +01:00
smaf.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
SOURCES Initial opus codec support 2012-09-20 20:47:44 +02:00
spc.c Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
speex.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
tta.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
vgm.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
vorbis.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
vox.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
wav.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
wav64.c Limit more variables to file scope 2015-01-11 21:40:51 +01:00
wav_enc.c Add missing #include statements. 2013-10-20 16:52:46 +02:00
wavpack.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
wavpack_enc.c Multithread compressing encoders on multicore targets. 2013-07-09 06:28:33 -04:00
wma.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
wmapro.c Fix warning in WMA Pro and remove a c++ comment. 2014-11-28 23:04:50 +01:00
wmavoice.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00