The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: moonchilddave on May 29, 2009, 10:35:26 pm

Title: O2EM & The Voice
Post by: moonchilddave on May 29, 2009, 10:35:26 pm
I'm running O2EM 1.16 (with the cabinet hack) for my O2 emulator.  I have the voice packs and unzipped them and put them in a folder called VOICE in the O2EM directory.  But none of the games have voice, just the normal sounds.  Anyone know how to get the voice working?
Title: Re: O2EM & The Voice
Post by: moonchilddave on May 30, 2009, 12:49:02 am
I gave up on 1.16 since the hack doesn't seem to work as when O2EM runs, it says:

Invalid option : s0
Error in the o2em_def.cfg file at line number 11 !

What I get when I run 1.18 which also seems to work fine except the voice is:

O2EM v1.18 (Jan/2007)  -  Windows binary
Free Odyssey2 / Videopac+ Emulator - http://o2
Created by Daniel Boris (c)1996/1998
Developed by:
     Andre de la Rocha since version 0.80
     Arlindo M. de Oliveira since version 1.16


Starting emulation ...
Initializing sound system...
  Sound system initialized ok
  Sound driver [Primary Sound Driver] detected
Using Allegro Allegro 4.0.2, MSVC
BIOS found:
  G7400 VP+
  C52
  JOPAC VP+
  Odyssey 2
Videopac+ G7400 bios ROM loaded
Loading: "C:\roms\O2\ATTACK OF THE TIMELORD.bin"
Loading voice samples...  287 samples loaded

So it appears to be seeing the voice samples - but it isn't using them.  Switching to other roms like "bios_o2.bin" has no effect.  My O2EM config file is:

# O2EM Config

fullscreen
scanlines
vvolume=100
svolume=100
speed=100
bios=bios/bios_g7400.bin
s1=UP,DOWN,LEFT,RIGHT,SPACE
s2=W,S,A,D,LCONTROL
Title: Re: O2EM & The Voice
Post by: moonchilddave on May 30, 2009, 02:31:31 am
Success!!!  The voice now works. 

Basically I grabbed the source code for it (v1.18), and compiled it in much the same way as Mr. Do's guide outlines for MAME.  I also grabbed version 4.2.2 of Allegro from sourceforge and had it use those libraries instead of the 4.0.2 included with O2EM.

If anyone is interested, I could post the steps I followed to compile... but right now, I'm tired and going to bed.  I'm attaching a zip file with the new executables.  So, to get it to work download and unzip the file, and replace your original files with the ones from the zip file (o2em, dis48, alleg42.dll).

These were compiled on a Dell Dimension 4300 (P4 @ 1.6G) running XP SP3 using mingw and the allegro 4.2.2 binary package.

Hope this helps someone else out.  I'm actually a Mac / Unix guy, so this PC stuff is still new to me.  I have to say, I couldn't have done this without the great writeup by Mr. Do!  Thanks dude!!!
Title: Re: O2EM & The Voice
Post by: moonchilddave on May 30, 2009, 03:21:11 am
Ok, not quite so happy.  It works if run from the command prompt inside the o2em directory - but it won't work when running under Mamewah.  I've tried using full paths for everything.  It will fire up and run - but there is no display, although you can hear the game playing.  Anyone have a clue on how to fix that?  Is there some way to tell Mamewah to fire up the program from inside the proper directory?  A batch script or something that sets the environment?
Title: Re: O2EM & The Voice
Post by: moonchilddave on May 30, 2009, 03:21:03 pm
Ok, it does work - just removed the {nosafelaunch} from my Mamewah config and it now seems to work fine!
Title: Re: O2EM & The Voice
Post by: Ummon on May 31, 2009, 02:10:10 pm
Ah, the trouble with tribbles, eh? I've been staying away from O2EM for a long spell, and may continue to do so as MESS seems to have it squared away - but I think requires at least a 2.6ghz machine, which I have, though some like yourself do not.
Title: Re: O2EM & The Voice
Post by: moonchilddave on May 31, 2009, 02:52:01 pm
Just when I was beginning to think that this was a pretty cool place that didn't jump all over the noobs or make snide condescending remarks - I get proven wrong.  Thanks for your help.  Now, excuse me while I run right out buy a few 4G dual core Intels, load Linux on them and cluster them together.
Title: Re: O2EM & The Voice
Post by: ErikRuud on June 01, 2009, 03:51:42 pm
I have been running O2Em for a long time with no problems, but I don't use MAMEWah.

Unless it's been fixed in the last year, O2Em does a better job than MESS.