Jan Stary <h...@stare.cz> wrote: > On Sep 04 07:03:31, normalper...@yhbt.net wrote: > > Can you reproduce the issue by using a temporary file instead of a pipe? > > I strongly suspect this is OpenBSD-specific and only to pipes. > > SoX refuses to make the temporary file: > > $ sox -n one.sox synth 4.145 sin 440 gain -6 > $ sox -n two.sox synth 5.325 sin 540 gain -6 > $ sox one.sox part.sox trim 0 -`soxi -D two.sox` > sox FAIL trim: Position 2 is before start of audio. > > which probably is the right thing. But with the pipe, > it tries to go on, and crashes. Which might be a hint > that it really is a pipe problem (namely, trying to rewind a pipe) > and not a trim problem, right?
Right, it's a rewind pipe problem. Btw, does specifying -t/-c/-b/-r for the pipe avoid the problem by avoiding the need to automatically detect filetype? My sleepy brain completely forgot the temporary file was impossible due to the bad trim :x ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel