hPutBuf package:hsndfile

Write the contents of a buffer to a handle open for writing. Return the number of frames written.