Maciej Zenczykowski
2001-Dec-15 13:21 UTC
[vorbis-dev] [PATCH] [FEATURE] Ogg123 range playback
A small patch (attached) to the ogg123 source (dec 15 nightly build from CVS) that implements ranged playback a la: ogg123 -r 12:10-13:00 file.ogg to playback 12m:10s-13m:00s fragment from the file.ogg soundfile. Usage: ogg123 -r hours:minutes:seconds.fraction-hours:minutes:seconds.fraction anything can be pretty much omitted (within reason) [although it does not support hh:mm:ss.hh- ] anything missing will be treated as 0, lack of punctuation results in values being treated as seconds since beginning of file. changing the '-' to '+' will result in the second value being a length instead of an offset. Till now have had nothing to do with (the source code of) ogg (just badly needed this feature when recording music fragments from tape which I 'ripped' and ogg'ed). Not on the list so CC me if you please... Tell me what you think, Maciej Zenczykowski <maze@druid.if.uj.edu.pl> <HR NOSHADE> <UL> <LI>TEXT/PLAIN attachment: ogg123.h.diff </UL> -------------- next part -------------- A non-text attachment was scrubbed... Name: ogg123.h.diff Type: application/octet-stream Size: 805 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20011215/ded4bb63/ogg123.h-0001.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: ogg123.c.diff Type: application/octet-stream Size: 5564 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20011215/ded4bb63/ogg123.c-0001.obj