Ulrich Klauer wrote: > Jan Stary <h...@stare.cz>: > >> SoX is just writing to stdout and has no knowledge about >> its stdout being either redirected (to two.wav) or piped (to cat > >> three.wav) >> later, right? Can someone please shed some light on what difference is >> it to sox in this (regarding length probably)? >> $ sox file.mp3 -t wav - > two.wav >> $ sox file.mp3 -t wav - | cat > three.wav > > A pipe isn't seekable, but the redirection probably is (can't test right now, > but I learned earlier this year that redirected input is seekable, in > connection with the pipe rewind problem). > > So it would appear that the wrong number is written on the first pass, then > corrected (or not) after the remainder of the file has been written. > > Ulrich > > ------------------------------------------------------------------------------ > LogMeIn Central: Instant, anywhere, Remote PC access and management. > Stay in control, update software, and manage PCs from one command center > Diagnose problems and improve visibility into emerging IT issues > Automate, monitor and manage. Do more in less time with Central > http://p.sf.net/sfu/logmein12331_d2d > _______________________________________________ > SoX-devel mailing list > SoX-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-devel >
I can verify that redirections to files are seekable. I often use an extra pipe through "cat" when testing stdin/stdout functionality to make sure I am not relying on seeking when I don't mean to. David ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel