/*
  File: include/sq2_audiosys/sq2_audio_ogg.h
  Description: Ogg Vorbis Filter error and ID definitions
  Part of the Mantis project
  (c) 2002 Lycos Inc.

  This file is distributed for the sole purpose of allowing you to write
  software to interface with Sonique 2 and other Mantis programs. It is
  not to be modified or used for any other purpose without written
  authorization.

  If you redistribute this file, it must be in the original package
  complete with all other files provided, including the usage agreement.

  Do not remove this notice.
*/

#ifndef _SQ2_AUDIO_OGG_H_
#define _SQ2_AUDIO_OGG_H_

#include "mia.h"

// {93F18778-DA6E-4641-A36F-D766F9784CE8}
DEFINE_MID(FID_SQ2_AUDIO_OGGVORBIS, 0x93f18778, 0xda6e, 0x4641, 0xa3, 0x6f, 0xd7, 0x66, 0xf9, 0x78, 0x4c, 0xe8);

// {812BFBAD-EF71-4572-B498-7AEE04C831B9}
DEFINE_MID(MID_MEDIAFILTER_OGGVORBIS, 0x812bfbad, 0xef71, 0x4572, 0xb4, 0x98, 0x7a, 0xee, 0x04, 0xc8, 0x31, 0xb9);


enum
{
	ERR_OGG_INITFAILED,
	ERR_OGG_READFAILED,
	ERR_OGG_INFORMATIONREQUESTFAILED,
	ERR_OGG__NUM
};

#define ERR_OGG__MODULE "OggVorbisDecoder"


inline MError* GetOggVorbisErrors(MError* Errors)
{
	Errors[ERR_OGG_INITFAILED].Name					=	"OGG Vorbis initialization failed";
	Errors[ERR_OGG_READFAILED].Name					=	"OGG Vorbis decoder read failed";
	Errors[ERR_OGG_INFORMATIONREQUESTFAILED].Name	=	"OGG Vorbis decoder information request failed";

	return Errors;
}

#endif//_SQ2_AUDIO_OGG_H_
