VLSI Solution Oy / MegaLib Documentation

codecminiwav.h File Reference

#include <vstypes.h>
#include <codec.h>

Include dependency graph for codecminiwav.h:

Go to the source code of this file.

Functions

CodecCodMiniWavCreate (void)
void CodMiniWavDelete (struct Codec *cod)
enum CodecError CodMiniWavDecode (struct Codec *cod, struct CodecServices *cs, const char **errorString)


Detailed Description

MinimalWav Codec. At this moment the Wav Codec supports 8-bit and 16-bit stereo and mono files. Randon access for seekable supported for all audio formats.

Definition in file codecminiwav.h.


Function Documentation

struct Codec* CodMiniWavCreate void   ) 
 

Create and allocate space for codec.

Returns:
A Wav Codec structure.

enum CodecError CodMiniWavDecode struct Codec cod,
struct CodecServices cs,
const char **  errorString
 

Decode file. Upon success or a negative number, Codec has succeeded. With a positive number, there has been an error. Upon return, an error string is also returned.

Parameters:
cod A Wav Codec structure.
cs User-supplied codec services with appropriate fields filled. The fields that are not to be filled by the user should be zero initialized.
errorString A pointer to a char pointer. The codec may return its error status here.
Returns:
Error code.

void CodMiniWavDelete struct Codec cod  ) 
 

Free all resources allocated for codec.

Parameters:
cod A Wav Codec structure.


All software copyright 2005-2006 VLSI Solution OY. Redistribution of this software is strictly forbidden.