[PATCH] ossplay: add "-t maxsecs"

OSS related discussion in general (i.e. not limited to Linux/Solaris/BSD)

Moderators: hannu, dev, cesium

leres
New Member
Posts: 3
Joined: Sat Jun 12, 2010 6:02 pm

[PATCH] ossplay: add "-t maxsecs"

Postby leres » Wed Dec 22, 2010 7:03 pm

It's already possible to start playing secs into the file; It's handy to also be able to limit the length of playback. Patches attached.
Attachments
patch-cmd-ossplay-ossplay.man.txt
patch to ossplay.man
(892 Bytes) Downloaded 1490 times
patch-cmd-ossplay-ossplay.c
patch to ossplay.c
(2.37 KiB) Downloaded 1656 times

cesium
Developer
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: [PATCH] ossplay: add "-t maxsecs"

Postby cesium » Wed Dec 22, 2010 10:47 pm

Thanks!

Patches are usually sent to the oss-devel list, but I'll forward a version of this.

As for the patch:
1. I don't think #ifdef is really needed, it's just a small addition.
2. While we're at it, datalimit might as well be a double and accept rational numbers.
3. I tried a slightly different method of implementing this, can you test it?
(it includes some unrelated changes, since datalimit had to be changed all over, fortunately, all the relevant changes ended at the start of the diff).
Attachments
ossplay-add-t.diff.txt
ossplay patch
(10.12 KiB) Downloaded 1639 times


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest