Recording Compressed WAV files

Where may I find code examples to record WAV files @ 32khz., 16 bit,
mono, using ADPCM compression ? Thanks  Burl U.