Sound Blaster Pro & 16

Support and general discussion.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Sound Blaster Pro & 16

Post by SarahWalker »

Try rev 748. I'm really not doing well today...
User avatar
James-F
Posts: 88
Joined: Tue 30 May, 2017 10:26 am

Re: Sound Blaster Pro & 16

Post by James-F »

Fixed.
Doom still doesn't detect the OPL3 core, it plays as OPL2. (mono).
Please put top priority on the stereo issue.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Sound Blaster Pro & 16

Post by SarahWalker »

Okay, I've done some experimenting with MPXPlay, and I seem to be getting better stereo separation than you've reported - have a listen to http://pcem-emulator.co.uk/files/440.zip. '440 panning.wav' is the raw output that PCem sends to OpenAL, and '440 panning output.wav' is recorded from my sound card output, ie what OpenAL is outputting. Both look to be about a 40 dB difference to me?

What version of OpenAL are you using, where did you get the libraries from? A quick Google search suggests that OpenAL Soft has bad stereo separation, so that might be the problem.
User avatar
James-F
Posts: 88
Joined: Tue 30 May, 2017 10:26 am

Re: Sound Blaster Pro & 16

Post by James-F »

You are absolutely right, I was using a OpenAL32.dll form other place.
The OpenAL32.dll from V12 is working perfectly fine.
Please forgive my ignorance and this waste of time. :oops:
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Sound Blaster Pro & 16

Post by SarahWalker »

No worries! I'm just glad this wasn't some hideously weird bug.
User avatar
James-F
Posts: 88
Joined: Tue 30 May, 2017 10:26 am

Re: Sound Blaster Pro & 16

Post by James-F »

Please change the 55000 values in sound_sb.c to 51000, to restore balance.

Code: Select all

out_l = ((((sb->opl.buffer[c]     * mixer->fm_l) >> 16) * 51000) >> 16);
Note that the OPL cores PCem uses are inaccurate and may not match the real card exactly, they do in 86Box.
I will ask the 86Box branch devs for a Diff file only for the NukedOPL core.

Another thing, SB16 can receive 0-15 volume steps through addresses 0x22 0x04 0x26 0x28 but PCem truncates it to 0-8 using shifts (4 >> then << 3, then >> 3) commands.
I tried to adjust that with no success, and lost volume because of wrong shifts.
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: Sound Blaster Pro & 16

Post by Battler »

- SarahWalker: Make sure though to still allow the user to select DOSBox OPL if they so desire, because at least on my Pentium Dual-Core, NukedOPL makes the emulator on average 10% slower.

- James-F: I will try to make a diff for NukedOPL later today, it should be fairly easy.
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Sound Blaster Pro & 16

Post by leilei »

I've noticed running Doom (v1.2 under DOS 6.2 with SB16) then quitting it and running it again seems to have sound playing without the filter
User avatar
James-F
Posts: 88
Joined: Tue 30 May, 2017 10:26 am

Re: Sound Blaster Pro & 16

Post by James-F »

Yes, Doom disables the filter after you quit; It is exactly the same on the real hardware.
You should use the SBPro mixer software SBP-SET.EXE with /DNFI:ON to restore the filter.
Some games change the mixer setting, this is the reality of it.
MortalThing
Posts: 33
Joined: Tue 24 Mar, 2015 10:51 pm

Re: Sound Blaster Pro & 16

Post by MortalThing »

Hi what is is version openal32.dll is OK?
https://openal.org/downloads/ This version is fault?
Post Reply