I had the impression that -o stdout bypasses libsndfile, if we used a headerless format. Sometime ago I was looking into it, to be able to pipe the output to other programs. My memory is shot now so I can't remember more details.

----- Original Message -----
From: Tito Latini <tito.01beta@gmail.com>
Date: Thursday, September 13, 2012 9:20 pm
Subject: [Csnd] default output format, stdout and pipe
To: csound@lists.bath.ac.uk

> `-o stdout' works with the default output format (wav)
> and the normal redirection:
>
>   csound -o stdout test.csd > test.wav
>
> but it fails with the default and pipe (*nix OS)
>
>   csound -f -o stdout test.csd | sox - -s -2 bounce.wav
> dither -s -f shibata
>
> It is because
>
>   http://www.mega-nerd.com/libsndfile/FAQ.html#Q017
>
> It works in git, however you can use other output formats as `ircam'
> and `au' (try to add `-J' in the previous example). Now, if libsndfile
> fails with an output format and `-o stdout', it changes the
> format to
> ircam and retries.
>
> It is the same change that we have with
>
>   csound -o '|sox - test.mp3' test.csd
>
> Of course, there are not problems with stdin and pipe.
>
> tito
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
>

Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth