Sound Blaster Pro & 16

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

Re: Sound Blaster Pro & 16

Postby SarahWalker » Sat 03 Jun, 2017 9:18 am

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

Re: Sound Blaster Pro & 16

Postby James-F » Sat 03 Jun, 2017 9:23 am

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

Re: Sound Blaster Pro & 16

Postby SarahWalker » Sat 03 Jun, 2017 10:00 am

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: 69
Joined: Tue 30 May, 2017 10:26 am

Re: Sound Blaster Pro & 16

Postby James-F » Sat 03 Jun, 2017 10:09 am

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:
SarahWalker
Site Admin
Posts: 1334
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Sound Blaster Pro & 16

Postby SarahWalker » Sat 03 Jun, 2017 10:13 am

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

Re: Sound Blaster Pro & 16

Postby James-F » Sat 03 Jun, 2017 10:35 am

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

Postby Battler » Sat 03 Jun, 2017 12:39 pm

- 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: 436
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Sound Blaster Pro & 16

Postby leilei » Wed 21 Jun, 2017 12:06 am

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: 69
Joined: Tue 30 May, 2017 10:26 am

Re: Sound Blaster Pro & 16

Postby James-F » Wed 21 Jun, 2017 4:28 am

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: 24
Joined: Tue 24 Mar, 2015 10:51 pm

Re: Sound Blaster Pro & 16

Postby MortalThing » Sun 23 Jul, 2017 9:22 am

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

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest