Mail Archives: djgpp/1999/03/21/00:52:32
Message-ID: | <000401be735e$9b4d3140$3de7bcca@jgfw.tm.net.my>
|
From: | "Guan Foo Wah" <jgfw AT usa DOT net>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: Where is EasyMik?!
|
Date: | Sun, 21 Mar 1999 01:26:32 +0800
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.1
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
>Hi there!
>
>Well, i was looking for MikAlleg and i would have needed EasyMik but the
>link has died. I visited the original MikAlleg home, i would need it
because
>i'm having some problems with the original one... Im making a player for
my
>frend..
>
>1. On the test progam i *hear* the music as it should.
>2. On my program, not even a whisper !!..absolutely silence . I have copied
>code from the test program and still silence haunts my program...
>
>Phew!
>Help is appreciated and i thank you in advance !
>
>Code follows..
>
>--------
>void init_mod(void)
>{
>
>setvbuf(stdout, NULL, _IONBF, 0);
>srandom(_farpeekw(_dos_ds, 0x0046C));
>
>md_mixfreq =44100;
>md_dmabufsize =6000;
>md_mode =DMODE_16BITS|DMODE_STEREO;
>md_device =0;
>
> ML_RegisterLoader(&load_mod);
> ML_RegisterLoader(&load_xm);
> ML_RegisterLoader(&load_stm);
> ML_RegisterLoader(&load_s3m);
> ML_RegisterLoader(&load_mtm);
> ML_RegisterLoader(&load_uni);
> ML_RegisterLoader(&load_ult);
>
> MD_RegisterDriver(&drv_nos);
> MD_RegisterDriver(&drv_ss);
> MD_RegisterDriver(&drv_sb);
> MD_RegisterDriver(&drv_gus);
>
> MD_RegisterPlayer(tickerhandler);
>
> allegro_init();
> install_timer();
>
> if(!MD_Init())
> {
> printf("Driver error: %s.\n",myerr);
> exit (1);
> }
>
> mf=ML_LoadFN("tom.xm");
>
> printf("Using %s for %d bit %s %s sound at %u Hz\n\n",
> md_driver->Name,
> (md_mode&DMODE_16BITS) ? 16:8,
> (md_mode&DMODE_INTERP) ? "interpolated":"normal",
> (md_mode&DMODE_STEREO) ? "stereo":"mono",
> md_mixfreq);
>
>
> MP_Init(mf);
> md_numchn=mf->numchn; // set the number of voices to use.. you
>
> MD_PlayStart();
Try reducing the md_dmabufsize =6000 to something lesser, like 2000.
- Raw text -