/*
**	$VER: libraries/thxplay.h 5.2 (10.06.98)
**
**	A few simple facts about the THX module header.
**
**	(C) Copyright 1997-1998 Kyzer/CSG
**	All Rights Reserved.
*/

#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif

#define THX_ID  (0x54485800)
#define THX2_ID (0x54485801)

struct thxHeader {
    ULONG thxh_id;   /* header ID (THX_ID or THX2_ID)                */
    UWORD thxh_skip; /* skipvalue (ignore)                           */
    UWORD thxh_len;  /* (thxh_len & 0xfff) = length of position list */
                     /* ((thxh_len & 0x7000) >> 12) = cia speed      */
                     /* ((thxh_len & 0x8000) != 0) = BOOL trk0here   */
    UWORD thxh_res;  /* (thxh_res & 0xfff) = restart position        */
    UBYTE thxh_trl;  /* length of each track                         */
    UBYTE thxh_trk;  /* number of tracks                             */
    UBYTE thxh_smp;  /* number of samples                            */
    UBYTE thxh_ss;   /* number of subsongs                           */
};
