/*******************************************************************************
This is a library of sound cards based on the modified mpxplay_source_code me
 (Ruslan Starodubov).
The library can be compiled for different memory model (for WATCOMC and DJGPP).
Use compile directive ZDM to disable __djgpp_nearptr_enable() (only for DJGPP)
Maybe used in any DOS projects for sound in programs.
All changes its code let me know. (starus2009@mail.ru)
*******************************************************************************/

/* public soundcard routines: */

#include "libau.h"

au_context* AU_search(unsigned int config);
  /* config: 0 for LINE_OUT, or 1 for STEREO_SPEAKER_OUT (only Intel HDA chips) */

const struct auinfo_s AU_getinfo(au_context *ctx);
  /* retrive basic sound card configuation params. */

unsigned int AU_cardbuf_space(au_context *ctx);
  /* return free space in buffer (sample position) */

void AU_start(au_context *ctx); /* start DMA */
void AU_stop(au_context *ctx);  /* stop DMA */
void AU_close(au_context *ctx); /* close device for exit */

void AU_setrate(au_context *ctx, unsigned int *fr, unsigned int *bt, unsigned int *ch);
  /* fr: sample rate, bt: bits per sample; ch: channels (1 or 2) */

void AU_setmixer_all(au_context *ctx, unsigned int vol);
  /* set volume all mixer in % */

void AU_writedata(au_context *ctx, const char *pcm, long len);
  /* write pcm data to buffer */
