I've just tested out your patch.
In general, it's perfect :) except that most programs still can't detect it and 
there's no music :(
(btw, when you write the music code (please!), get a game called "Hocus Pocus" by 
Moonlite Software -- it has really, really good music)

Here are some of the more interesting results of testing (i.e. the results that you 
probably want to know about):

 Program                 no sound patches       snd-patch1 (I think)    
snd-patch6-1.1.2.diff.gz     
                        (sb pro)             (sb or sb clone)           (sb or sb 
clone)

Good
----
One Must Fall 2097      perfect         music skips & stutters  perfect
Liero                   no sound        sound stutters          perfect
Count Down              lock up         perfect,clicking                
perfect,clicking *
Scream Tracker 3        no sound        perfect                 perfect
Warcraft II             stutters badly  perfect                 perfect
Shell Shock             perfect         no sound                perfect

Nice, the top three are my favourite DOS games :)

Warcraft 2 is misdetecting the sound emulator as "Ensoniq Soundscape" (which 
incidently is my real sound card).

If I start Count Down and wait for the initial scream (yes, this is an interesting 
game) to finish before pressing a key,
the intro music and the sound is fine.  But if I interrupt the initial scream (i.e. 
don't wait for it to finish before pressing a key), lots of sound
(almost all the sound in the game) disappears and if there is any sound, it lasts for 
a few seconds and then stops; with the into music, it skips
entire segments and then stops :(  This game is commercial and is by Access Software, 
which has been bought out by MS so I can't give it to you :(
This behaviour occurs on the 2.4.7 kernel.

If I use 2.4.3, Count Down _always_ stuffs up no matter what I do.

Really Bad
--------

Clyde's Revenge no sound        bombs out               locks up (dosemu complains 
about vfree'ing something)
Mugen                   no sound        exception               exception
Commander Keen 4        no sound        locks up                        no sound

On Mon, 21 Jan 2002 22:30, Stas Sergeev wrote:
[some of your emails have been combined...]
> pesarif wrote:
> > > OK, as I said before, OMF's problem is fixed. LIERO's problem is now
> > > also fixed, get a new patch:
> >
> > Thanks, I'll test out your patch.
>
> I worked around clicking in many progs by increasing the minimal OSS buffer
> size. It adds latency, but it is better than clicking.
> So better get this:
> http://www.dosemu.org/~stas/snd-patch6-1.1.2.diff.gz
> From now I'll stop modifying it and start waiting for the results (if no
> serious bugs are discovered).

The latency is now very obvious in Liero, with an annoying 1/2 second delay (perhaps, 
you could put an option in dosemu.conf to specify minimum OSS buffer size?).
The clicking still happens in the game "Count Down".

btw, I've found out when and why OMF2097 stutters.  (I'm using a Pentium II to give 
you an idea of how fast/slow my computer is)
If I select "Sound Blaster (mono)" and then choose "Very High Quality" or "Ultra High 
Quality", it misses or repeats or a few beats.
If I select "Sound Blaster (mono)" and then choose <= "High Quality", then it's fine.
In an unpatched DOSemu 1.0.2.1, If  select "Sound Blaster Pro" and then choose "Ultra 
High Quality", there's not a problem.
So, I think your code is a little slow :(

> That could be due to some parts of the patch are disabled. It is possible
> that after one particular game, another game will fail. So you have to
> restart dosemu after each test. This is related to additional fixes that I
> am currently submitting, and, as soon as they are in, I'll enable
> everything in my patch so there will be no more such setuations.
This doesn't seem to happen anymore (after snd-patch-1).

> If I have real sound card, I could
> just reboot to DOS and enjoy sound, so no need to write sound support for
> dosemu. And now dosemu is the only way for me to hear sound from dos progs,
> that is why I am doing this:)
>
Then, I hope you don't get a real sound card... :)
Most new PCI sound cards don't come with DOS sound drivers anyway.
And ISA ones are nowhere to be seen.

> > > > xmms playing the background because DOSEmu currently seg-faults when
> > > > some other application is hogging /dev/dsp.
> > >
> > > Dosemu must never segfaults. If I am using /dev/dsp on dosemu's
> > > startup, dos programs just fails to detect SB, but no segfaults.
> >
> > I'll get back to you after testing the patch.
>
> OK, but problem with segfaults is also an important one.
>
Segfaults have always been happening when a program tries to start with SB (even with 
unpatched dosemu 1.0.2.1).
To reproduce it, start KDE 2.2 (make sure ARTS is running and hogging /dev/dsp) or 
TiMidity++ and then play your favourite :) game OMF2097 and you get:

ERROR: unexpected CPU exception 0x06 errorcode: 0x00000000 while in vm86 (DOS)
Program=sigsegv.c, Line=183
EIP: 310a:00000000 ESP: 3804:000005a6  VFLAGS(b): 00000 00000000 01000110
EAX: 00003101 EBX: 40500008 ECX: 40520000 EDX: 00000020 VFLAGS(h): 00000046
ESI: 40500088 EDI: 00000156 EBP: 000005e2 DS: 310a ES: 336f FS: 310a GS: 0000
FLAGS: PF ZF IF RF VM  IOPL: 0
STACK: 00 00 00 00 02 00 00 00 53 65 -> f3 0b 00 00 d8 02 e2 05 00 00
OPS  : 51 26 10 00 10 00 75 03 cd 31 -> fe 52 45 41 4c 31 36 fe 4d 41
        fe                  310a:0000 db      FE

The log became 8MB long so I deleted it (it complained about "SIGILL" a lot, anyway).
The strange thing is that I just ran it again (ARTS was still active) and OMF2097 just 
started without sound and dosemu didn't crash.

> > > It is too fast, how can you play? Are you using any slowdown programs
> > > for this? Or maybe your computer is 386SX? :)
> >
> > If you press ESC during gameplay, you can control the speed.
> > I have an i686.
>
> OK, pretty nice game (took me ~20min to complete the whole game at a
> "Veteran" difficulty level:), but actually just another clone of Mortal
> Kombat, I would say (but with very nice music:)
It's a lot more than a clone of Mortal Kombat...
There are lots of secrets in the game (in both Single Player and Tournament) including 
"Scrap Moves", "Destruction", secret challengers and secret levels.
Robot enhancements (like triple-concussion cannon for Jaguar :))....

> I was playing it a little today, but it seems to be too easy: I found only a
> couple of good punches and was able to win all battles within 20min at "veteran"
> level. 
What robot are you using?  I tried to copy this tactic and I got defeated first 
round...
May be you should play on a higher difficulty setting.
Normally, I use Jaguar, Katana or Electra and only just beat the computer on Ultimate.

> The last robot (the biggest) was the easyest one to beat... 
He is really, really hard.
May be you should play on the "Ultimate" difficulty (highest difficulty level).
You actually need a cheat to do this: go to Gameplay and hold the right arrow key on 
the CPU/Difficulty setting - you should then get the "Deadly" setting.
Go back to the main menu and press O+M+F (or was it 2+0+9+7?) and then set the 
CPU/Difficulty on "Ultimate".
Now _that_ requires a lot of work to beat the computer (also opens up secret levels in 
Single Player mode).

> Not very
> good, I am afraid.
It's the best fighting game ever!  It has more depth than most mindless, 
button-bashing fighting games.
About as good as "Street Fighter Zero Two" :)

I have a bunch of other games that don't detect the sound card as you said:
> Note: some features mostly related to a detection of soundblaster's presence are
> disabled because it requires a changes to PIC, which are not yet merged to a
> mainstream. But this is not very noticeable, I hope.
Please merge these soon.  It is quite noticeable :(

> BTW, recording might work now. I just can't test it, but all necessary code
> is already in place.
>
Recording?  Do you mean saving what comes out of DOSemu as a .WAV file or similar?
If so, how can I do this?

I really like the patches and hope to see them in the next "offical" version of dosemu.
Soon I can say goodbye to Win98 to play DOS games with sound :)

Thanks,
pesarif

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to