Skip to contentSkip to conversation

Hi, does someone use i810 onboard sound ?

DISCUSSION Stas Sergeev 2 participants 2 messages Oct 5, 2003

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 3 lines · JoÌl Bourquard

I applied it, made a 'make clean' then tried various values between [100..22050], but unfortunately I heard no improvement from the new compiles.

Well, because you said your OSS driver treats mono as stereo, I expected this patch won't help you. But as it definitely fixes the distortion for me (tested with Goblins 1 and 2), I have commited it to HEAD regardless.

Quoted 1 line

- Stunts: no sound in Soundblaster mode

IIRC Stunts uses an FM sound in SB mode, which is not implemented yet.
You can set Stunts to MT-32 mode, which is implemented and is supported by midid.

Quoted 3 lines

About a workaround for the stereo issue, I didn't see it as "post-processing". Perhaps a simple option to prevent opening /dev/dsp in mono could be useful

Prevent and do what? Not opening at all? You can just set $_sound=(off) for that. To do that properly, dosemu or some external software must convert the mono sound stream to stereo, and preferrably also resample it to 44100. Then your problem as well as some other problems will disappear.

Quoted 1 line

for people with buggy drivers (ie: i810) ?

For people with buggy drivers I wrote an excellent test-case sound driver which can be found here:
http://www.geocities.com/stssppnn/pcsp.html
It is intended to be 100% correct :) Try it with dosemu and see if the patch fixes the problem with that driver.
If yes - your driver is buggy and the ALSA must be attempted instead. Btw, if you know your OSS driver is buggy, why don't you use ALSA? Is there a support for your chip?
But if the sound is still distorted even with the patched dosemu and that sound driver, then we have to dig for another bug in dosemu.

-
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

#1 lore raw

Hi Stas,

Quoted 4 lines · Stas Sergeev

IIRC Stunts uses an FM sound in SB mode, which is not implemented yet.
You can set Stunts to MT-32 mode, which is implemented and is supported by midid.

You're correct, it is FM sound. Sorry.

Quoted 11 lines
Quoted 3 lines

About a workaround for the stereo issue, I didn't see it as "post-processing". Perhaps a simple option to prevent opening /dev/dsp in mono could be useful

Prevent and do what? Not opening at all? You can just set $_sound=(off) for that. To do that properly, dosemu or some external software must convert the mono sound stream to stereo, and preferrably also resample it to 44100. Then your problem as well as some other problems will disappear.

I meant, to open in stereo while keeping the same sampling rate. Most newer soundcards are 48000, but they (should) handle sampling rate conversion in hardware.

Quoted 4 lines

For people with buggy drivers I wrote an excellent test-case sound driver which can be found here:
http://www.geocities.com/stssppnn/pcsp.html

Quoted 8 lines

It is intended to be 100% correct :) Try it with dosemu and see if the patch fixes the problem with that driver. If yes - your driver is buggy and the ALSA must be attempted instead. Btw, if you know your OSS driver is buggy, why don't you use ALSA? Is there a support for your chip?

I thought my i810 driver was OSS, but it's already ALSA. My mistake.

I've tried your pc speaker driver, and wow it's impressive ! With this driver the Goblins test was successful, after I did the following:
- applied your patch
- increased DIRECT_WRITE_FREQ to 11025.

If DIRECT_WRITE_FREQ is not changed, the games hangs after ~5 seconds with plenty of "ERROR: SB: direct write buffer overflowed!" in the console. I suggest you replace the default value with 11025 (should test stability more carefully though).

Now for sure, my i810 driver sucks. Do you know if there is:
- an alternative ? (I'm using kernel 2.4.23)
- an incompatibility between it and DosEMU ?
- a place where I could report the problem to the i810 driver guys ?

Thanks for your help.. your DosEmu rocks !!

Best Regards,
Joël

-
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