diff options
author | Dave Chapman <dave@dchapman.com> | 2005-06-11 19:14:40 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-06-11 19:14:40 +0000 |
commit | 8f0a0fed4e40c1fb831744ca1cc34f20a93d85b4 (patch) | |
tree | 5aec170ab4891367dca02be16f002b7bb41c457d /apps/plugins | |
parent | 94b917e9ee1e287a2713fad52754250d591e0e57 (diff) |
Estimate (poorly) the duration of an Ogg track, and display elapsed time in WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6681 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/codecvorbis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/codecvorbis.c b/apps/plugins/codecvorbis.c index 6c512f7ce4..a1f39f0242 100644 --- a/apps/plugins/codecvorbis.c +++ b/apps/plugins/codecvorbis.c @@ -147,7 +147,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parm) rb->yield(); while (!ci->audiobuffer_insert(pcmbuf, n)) rb->yield(); - + + ci->set_elapsed(ov_time_tell(&vf)); + #if BYTE_ORDER == BIG_ENDIAN for (i=0;i<n;i+=2) { x=pcmbuf[i]; pcmbuf[i]=pcmbuf[i+1]; pcmbuf[i+1]=x; |