<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><base href="x-msg://702/">
<style type="text/css">body { font-family:'DejaVu Sans'; font-size:13px}</style>
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On Tue, 12 Mar 2013 15:36:02 -0000, Russell Gower &lt;mythtv@thegowers.me.uk&gt; wrote:<br><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div>Hi,&nbsp;</div><div>&nbsp; Thanks for the reply,&nbsp; I'm currently running python 2.6 but thats not the issue here (not to say it won't be an issue when I resolve this one :-))</div><div>&nbsp;</div><div>it's the compiled silence.cpp file thats throwing up that error, I'm calling it directly form the command line and would expect it to show the usage information.</div><div><br></div></blockquote><div>I understand now - I see the same.<br></div><div><br></div><div>It's a good point. For some reason I parse the args after setting up libsndfile, which expects audio samples on stdin! Pretty silly but silence.cpp was never intended to be run by a user. I only left the usage stuff (which is formatted to go to the python) in to catch API discrepancies between silence.cpp &amp; silence.py.</div><div><br></div><div>It does work if you feed it an *.au file on stdin (i.e. silence &lt; test.au).</div><div><br></div><div>Otherwise you can move #410 (Arg::parse(argc, argv);) to the program start, if you're desperate to see it.<br></div><div><br></div><div>I'll fix it in v3.0.</div><div><br></div><div>Is there any particular reason you're trying to run silence.cpp on its own?</div><div><br></div><div><br></div><div><br></div></body></html>