/*
 * FILE:    sndfile_wav.h
 * PROGRAM: RAT
 * AUTHOR:  Orion Hodson
 *
 * Copyright (c) 1998-2001 University College London
 * All rights reserved.
 *
 * $Id: sndfile_wav.h,v 1.6 2001/01/08 20:30:09 ucaccsp Exp $
 */

#ifndef __SNDFILE_WAV_H__
#define __SNDFILE_WAV_H__

int riff_read_hdr(FILE *pf, char **state, sndfile_fmt_t *fmt);        /* Returns true if can decode header */
int riff_read_audio(FILE *pf, char* state, sample *buf, int samples); /* Returns the number of samples read */
int riff_write_hdr(FILE *fp, char **state, const sndfile_fmt_t *fmt);
int riff_write_audio(FILE *fp, char *state, sample *buf, int samples);
int riff_write_end(FILE *fp, char *state);
int riff_free_state(char **state);
int riff_get_format(char *state, sndfile_fmt_t *fmt);

#endif /* __SNDFILE_WAV_H__ */
