/* wav.h */
/* Uses Replay codecs to play WAV from file or memory without MovieFS */
#ifndef WAV_H
#define WAV_H

#ifndef REPLAY_H
#include "replay.h"
#endif

/* size of 0 means it's a file, otherwise in memory */
_kernel_oserror *
wav_check(const char *, size_t, int *return_code);

/* size is 0 for a file */
_kernel_oserror *
wav_read_chunks(const char *file, size_t,
                replay_handle *handle, const char **codec,
                const char **sndrep, int *fps, int *fpc,
                int *channels, int *multiplier, int *chunk_size);

#endif
