On Saturday 19 April 2008 21:33:56 Hannu Savolainen wrote:
> Yair K. wrote:
> > Hi,
> >
> >   This patch adds a seek ('-S') option to ossplay. ossplay -S1 starts
> > playback 1 second after sound starts. As an option this isn't too useful
> > - the main reason I did this is that if someone does a GUI frontend, then
> > being able to seek back and forth is expected. There are some assorted
> > changes as well (a wrapper for strdup(), software conversion for AFMT_U16
> > formats, etc.).
>
> Could you change -S to work on milliseconds (or maybe 1/10th of seconds)
> and send a new patch. Granularity of a second is probably too much.
>

The argument is converted to a double, so "-S0.346" can be used for seeking to 
346ms from start of file. I think in this case, measuring in seconds is 
acceptable since this is a more natural unit. However, the man page text 
should say this is possible explicitly - the attached patch fixes this.

Yours,
        Yair K.

Attachment: ossplay-seek.diff.gz
Description: GNU Zip compressed data

_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to