//ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
//º                                                                          º
//º This example show how to use Diamond Player with Watcom C                º
//º                                                                          º
//º                                                                          º
//º                                                                          º
//ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "..\resource\eos.h"
#include <process.h>

void test_module()
{
   int  card=0,port=1,irq=2,dma=3,infos=4;
   unsigned char  type=0;
   unsigned char  position=1,pattern=2,note=3,volume=4,sfx_volume=5;
   card=Detect_Sound_Card  (1,&port,&irq,&dma,&infos);
   printf ("    þ Card : %X Port : %X   Irq : %i   Dma : %i \n",card,port,irq,dma);
   Load_Module ("..\\DATA\\TEST.MOD",0,44100,0);
   Play_Module();
   Change_Synchro_Int_08(70);
    while ( !kbhit() )
   {
   Get_Info(&position,&pattern,&note,&volume,&sfx_volume);
   printf ("    þ Position : %i Pattern : %i Note : %i Volume : %i  VBL : %i    \r",position,pattern,note,volume,Wait_Vbl());
   }
   printf ("\n");
   Stop_Module();
   Clear_Module();
}

void main(int argn, char **argv)
{
   Init_EOS();
   test_module();
   exit (0);
}