;/////////////////////////////////////////////////////////////////////////////
;// mp3dec.inc
;//
;// MPEG3 Audio Layer 3 Decoder Declarations
;//
;// 24/10/1999	fOSSiL		Initial version
;// 2000/01/14	The Owl		nasm port

%ifndef INCLUDED_MP3DEC_INC
%define INCLUDED_MP3DEC_INC

MPEG_SUCCESS		equ 0

MPEG_NOSYNCYET		equ 081010101h
MPEG_NOTENOUGHDATA	equ 081010102h
MPEG_LOSTSYNC		equ 081010103h
MPEG_ENDOFTRACK		equ 081010104h

MPEG_GENERR		equ 0C1010101h
MPEG_COPYRIGHTERR	equ 0C1010102h
MPEG_UNSUPLAYER		equ 0C1010103h

MPEG_NONISO		equ 0C1010201h

struc FrameInfo		; (sizeof=0x30)
.Layer		resd 1
.Version	resd 1
.BitRate	resd 1
.OrgChans	resd 1
.OrgSampFreq	resd 1
.Chans		resd 1
.SampFreq	resd 1
.BitsPerSample	resd 1
.FrameBits	resd 1
.Res1		resd 1
.Res2		resd 1
.Res3		resd 1
endstruc

extern _MpegBegin@20		; PROTO Stdcall, hFile:DWORD, FreqDiv:DWORD, b8bit:DWORD, dDownMix:DWORD, bLowEnd:DWORD
extern _MpegEnd@4		; PROTO Stdcall, hFile:DWORD
extern _MpegSetReadProc@4	; PROTO Stdcall, ReadProc:PTR PROC
extern _MpegNextFrame@12		; PROTO Stdcall, Buffer:PTR BYTE, cbWritten:PTR DWORD, Frame:PTR FrameInfo

%endif