Some details: with wav, aiff, etc, libsndfile uses `fstat' to see if the file is a pipe or a socket. In this case, it returns NULL. There are not problems with redirections csound -o stdout test.csd > test.wav because `fstat' knows that the standard output is redirected.