I want to write audio data to stdout, preferably using libsndfile. When I output WAV to /dev/stdout I manage to write the header, but then I get an error

```
Error : could not open file : /dev/stdout
System error : Illegal seek.

```

I assume this is related to <http://www.mega-nerd.com/libsndfile/FAQ.html#Q017>, some file formats cannot be written without seeks. However, when I try to output SF\_FORMAT\_AU | SF\_FORMAT\_PCM\_16 instead, I still get the same Illegal seek error.

Are there any audio file formats that can be written completely without seeking?

I'm using Linux.

EDIT: It might be obvious, but RAW format works (without seeking). Unfortunately I need a format that has meta information like sample rate.