Opened 9 years ago

Last modified 13 months ago

#5307 new defect

SCI: PQ3: channel volumes are wrong when using Adlib

Reported by: OmerMor Owned by:
Priority: normal Component: Engine: SCI
Keywords: midi Cc:
Game: Police Quest 3

Description

Game versions: EGA&VGA/DOS/English/1.000
ScummVM version: 1.2.0svn52375
Platform: Windows7 32bit

Selected audio: Adlib emulation
In the intro, (around the time after the name of the game ("The Kindred") disappears, and executive producer is shown) the main music channel is mixed too low compared to the rhythm section channel. I compared with DosBox (and my memory) and it is very noticeable.
I suspect this is relevant for the mt32 emulation as well, but I have no way of verifying this.

Ticket imported from: #3053125. Ticket imported from: bugs/5307.

Change History (13)

comment:1 by m-kiewitz, 9 years ago

Summary: channel volumes are wrong when using adlib emulationPQ3: channel volumes are wrong when using adlib emulation

comment:2 by bluegr, 9 years ago

This seems to be a duplicate of bug #1159581, so I believe this is a bug in the Adlib emulator, not within SCI itself

comment:3 by lordhoto, 8 years ago

I am not sure how this is supposed to be a bug in the AdLib emulator. The emulator itself is not responsible to setup the volume, but the code using it is, either via setting the volume of the audio stream the AdLib emulator is hooked up to (that's how it should not be done usually) or by properly passing the AdLib emulator proper volume settings.

comment:4 by bluegr, 8 years ago

Summary: PQ3: channel volumes are wrong when using adlib emulationSCI: PQ3: channel volumes are wrong when using Adlib

comment:5 by OmerMor, 8 years ago

I checked it again, and noticed that the problem manifests only when using the DOSBox OPL emulator, and not the MAME OPL emulator.

comment:6 by lordhoto, 8 years ago

That's odd but I just diffed the current DOSBox OPL emulator sources against DOSBox's sources and there's no behavioral difference in it (at least how it is setup currently) as far as I can tell. So this is probably still a bug in the SCI code. To rule out any other sources: What's your DOSBox version and what's your oplemu setting in your DOSBox config?

comment:7 by OmerMor, 8 years ago

I tested it using ykhwong's svn build 09-03-2011, with the following opl settings:
oplmode=auto
oplemu=default
oplrate=44100

However, I'm pretty sure the dosbox mix is the right one, as far as I can remember when playing this game on my old 486: the main melodic line is much more quiet in scummvm w/ dosbox opl emu. just give it a listen - it's right at the beginning - and you'll see for yourself.

I found PQ3 on youtube, here's a link to the point in time to which I'm referring:
http://www.youtube.com/watch?v=T9m7Lgo_TPk#t=26s

And here is scummvm playing PQ3 demo, and you can hear the low mix of the main melodic riff:
http://www.youtube.com/watch?v=mud3iZxb_pA#t=62s

comment:8 by lordhoto, 8 years ago

That should be the same OPL emu as we use, at least if ykhwong's build doesn't change anything there.

Could you try setting the music etc. volume in ScummVM to the max and see if it makes any difference, i.e. just makes the melody part louder?

comment:9 by OmerMor, 8 years ago

changed music & sfx vol to 256.
didn't help.

comment:10 by lordhoto, 8 years ago

I don't know what's the cause of this bug then. Since the code we use for the emulator is from DOSBox and nearly identical, just some hook ups to the sound output are different, but those should affect all sounds it produces then, it shouldn't be related to that. So probably a bug in the SCI AdLib code.

comment:11 by OmerMor, 7 years ago

I just verified that this bug still exists in v1.6.0git240-g52a1a6e.

comment:12 by csnover, 21 months ago

Keywords: midi added
Owner: set to csnover

comment:13 by digitall, 13 months ago

Owner: csnover removed
Note: See TracTickets for help on using tickets.