On Fri, Jun 05, 2020 at 01:02:18PM +0200, Peter J. Philipp wrote:
> On Fri, Jun 05, 2020 at 12:50:53PM +0200, Marc Espie wrote:
> > On Fri, Jun 05, 2020 at 12:06:54PM +0200, Peter J. Philipp wrote:
> > > Hi,
> > > 
> > > I'm wondering how I can write to stdout on aucat?  Here is what I have:
> > > 
> > > beta$ /usr/bin/aucat -r 44100 -h wav -i ewhist2.wav -o - | hexdump -C
> > > stdout: failed to seek back to header
> > > beta$ /usr/bin/aucat -r 44100 -h wav -i ewhist2.wav -o /dev/stdout | 
> > > hexdump -
> > > /dev/stdout: failed to seek back to header
> > 
> > That's a bug/limitation on aucat. It tries to seek on stdout right after
> > setting it up, which is absurd.
> > 
> > I'll have a look later, should be very easy to fix!
> 
> Thanks...

I spoke too soon, it's way more complicated because the wav header has
to know how large the file will be... which means you would have to parse
the input file and figure out the resulting size before writing anything
out, so it's way more code than I hoped for.

:(

Reply via email to