swgysnd.h

#ifndef __SWGYSND_H_
#define __SWGYSND_H_

/*
 * Return a version string for the library.
 */
const char *swgysnd_version_str(void);
/*
 * Must be called first to initialize the library.
 */
int swgysnd_init(int buffer_size);
/*
 * Load a wav for playing later. The handle is written to handle_out.
 */
int swgysnd_loadwav(const char *path, int *handle_out);
/*
 * Free a previously loaded wav referenced by the provided handle.
 */
int swgysnd_freewav(int handle);

/*
 * Play the wav associated with the indicated handle. The balance parameter
 * indicates the left-right balance with zero being centered, -1 being
 * full-left, and +1 being full-right. Values outside this range are truncated
 * to -1/+1.
 */
int swgysnd_playwav(int handle, double balance);
/*
 * Call to release all dynamic resources.
 */
int swgysnd_shutdown(void);

#endif