Make opusfile_example fwrites all-or-nothing.
authorTimothy B. Terriberry <tterribe@xiph.org>
Thu, 10 Jan 2013 02:56:57 +0000 (18:56 -0800)
committerTimothy B. Terriberry <tterribe@xiph.org>
Thu, 10 Jan 2013 02:56:57 +0000 (18:56 -0800)
commit9d825963310c744e8bd2c8ca03b7cdc99aae898e
treea26438b70e6cd58b87de63ba07fdb841debf11f8
parent1cea8f6bf1e3ffec1a408b3ead5e7ca2febf7419
Make opusfile_example fwrites all-or-nothing.

This makes it more likely the WAV file header matches the amount of
 data actually written if we run out of space.
This is easier than making the accounting better.
examples/opusfile_example.c