More coming soon.
For now, the best place to look for example code is the examples/ directory of the source code distribution and the libsndfile test suite which is located in the tests/ directory of the source code distribution.