I haven't had a chance to, no. I will try to take a look sometime in the morning.
Printable View
It's very nice to see new ideas about dreamcast developing :)
I tried your doom port on my dc (works very well ^^). Music doesn't work right as Guaripolo said.
One suggestion, I couldn't see any option to set 50Hz instead of the 60Hz by default. Could you add this option in an easy way?
Anyway, keep up the good work.
Looking at video.c, it doesn't have any way to distinguish PAL from NTSC automatically. I figured the generic modes would automatically handle NTSC/PAL like it does TV/VGA. It doesn't. I guess I either need a switch in the video menu or a way to figure out if the DC is NTSC or PAL. :(
EDIT: Looking at the PVR text file floating around, regs[0xd0] b7-6 holds the sync mode (VGA/NTSC/PAL). Seems to me that vid_set_mode() should use that for determining if a generic mode should be really VGA, NTSC, or PAL when looking up the specific mode. At the moment, the code only checks the cable, which only allows it to distinguish VGA or not VGA.
There's no reliable way to determine whether to run in 50hz or 60hz mode on a PAL machine other than asking the user for their input on the matter. The flashrom functionality will help you determine whether you're on a PAL console or not, and from there its fairly easy to throw together a small menu to ask the user whether to run in 50hz or 60hz mode (its a good idea to default to 50hz mode if a PAL system is detected, and display said menu in 50hz as well, since every PAL tv should be able to display a 50hz signal, but not all support 60hz mode). Here is a short snippet showing how I handle the flashrom lookup in CrabEmu, and here's one showing my simple 50/60hz menu.
Thanks. That's pretty simple.
So what source is your port of DOOM based upon anyhow?
If you look at the readme or the About menu in the GUI, you'd see the lineage:
Doom for DC v1.0 by me based on
Doom for PSP v1.4 by me based on
ADoomPPC v1.7 by Jarmo Laakkonen based on
ADoomPPC v1.3 by me based on
ADoom v1.2 by Peter McGavin
Basically, it's based on the more popular of the two Amiga conversions of Doom (vDoom being the other one). Peter made the first conversion, then contacted me about doing a PowerUP PPC version based on it. The two of us fixed a BUNCH of endian bugs, and I fixed the high res rendering, fixed the low detail rendering, and wrote the sound support (as a stand alone library in 680x0 assembly). I later rewrote the sound support to C for use with Doom for AROS since it was based on my ADoomPPC v1.3.
When I wanted to do a PSP version of Doom, I took ADoomPPC v1.7, added my C sound code from AROS DOOM, and converted the platform specific stuff to the PSP, adding a gui since you can't really pass command line options in on a console.
Following with the topic, I tried version 1.1. Thanks for adding 50/60 Hz selector :)
I'm curious about the midi music. Ok it's not perfect but at least you can recognize the music. Can it be improved?
Thanks for your releases :D
Wow, now sound and music play really cool! The libWildMidi works very well.
One question, in the controller menu, I try to calibrate the analogic stick, but I cannot do it. The game keeps in the square screen and I try to press A or B, but no luck (so I have to reset the console). Also, I don't see any movements when I move the analogic stick. Am I doing it wrong?