I just added some sample code to the developer site that may be illuminating.

There is also a lot of good information about the Open Sound System available online for the general API.

-v