#ifndef LIBRARIES_DMXEMUL_H
#define LIBRARIES_DMXEMUL_H

/*
**      $VER: dmxemul.h 40.2 (30.3.99)
**
**      dmxemul.library interface structures and definitions.
**
**      (C) Copyright 1999 Christian Sauer
**          All Rights Reserved
*/

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

/* audio hardware types for DMXInit() */
#define AHW_AUDIO       1
#define AHW_AHI         2
#define AHW_CAMD        3

/* MUS song structure */
struct Song {
	char    so_ID[4];
	UWORD   so_Length;      /* length of the musical score in bytes (little endian) */
	UWORD   so_Offset;      /* offset of the musical score in bytes (little endian) */
	UWORD   so_Channels;
	UWORD   so_Reserved;
	UWORD   so_Instruments;
	UWORD   so_Pad;
	UBYTE   so_Data[0];     /* the body of the song */
};

/* SFX patch structure */
struct Patch {
	UWORD   pa_Reserved;
	UWORD   pa_Rate;        /* samplerate (little endian) */
	ULONG   pa_Length;      /* length of the sample in bytes (little endian) */
	UBYTE   pa_Data[0];     /* the sample data itself (8 bit unsigned) */
};

#define DMXEMULNAME "dmxemul.library"

#endif /* LIBRARIES_DMXEMUL_H */

