Some funny sounds

Discuss PoP1 for DOS here.

Moderator: English Moderator Team

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Some funny sounds

Postby David » December 13th, 2015, 2:19 pm

1)
Use digisnd*.dat of v1.0 with the exe of v1.3.
Pause when the level door is closing.

2)
Start 1.3 with "midi".
Listen to the sound effects of footstep, loose floor, etc.

User avatar
doppelganger
Vizier
Vizier
Posts: 110
Joined: April 24th, 2015, 9:04 am
Location: India

Re: Some funny sounds

Postby doppelganger » December 13th, 2015, 4:50 pm

David wrote:Listen to the sound effects of footstep, loose floor, etc.


Setting sounds to Roland in 1.3 is funny. You know, the the trumpet for the prince's footsteps, and so on?
Doppelgänger
Hmm.. These mortals know about me.. :evil:

Download 'Hell of A Palace' now from Popot!

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 2935
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Some funny sounds

Postby Norbert » December 13th, 2015, 5:38 pm

Neither gives me any sound.
I tried changing the device to alsa (mididevice=alsa) in dosbox-0.74.conf, but that didn't help.
I remember being able to use MIDI though, so something must've changed on my PC.
Oh well.

Andrew
Wise Scribe
Wise Scribe
Posts: 313
Joined: July 16th, 2009, 4:39 pm

Re: Some funny sounds

Postby Andrew » December 14th, 2015, 6:08 pm

doppelganger wrote:
David wrote:Listen to the sound effects of footstep, loose floor, etc.

Setting sounds to Roland in 1.3 is funny. You know, the the trumpet for the prince's footsteps, and so on?

Yeah, and the sword clash and guard strike sounds are hilarious too! :D

Of course, I hope you guys know that this is purely DOSBox's fault. The official version's devs for some puzzling reason are extremely reluctant to integrate patches contributed by the community for better hardware compatibility. If you use one of the unofficial DOSBox builds with these patches instead, you'll see just how great the MT-32 sounds. I especially love the sword swish and the metal clang of the chompers, among others.

Also, here's a really interesting fact. The MT-32 included an LCD screen, as you can see on Wikipedia:

Image

Did you know that games sometimes deliberately included MIDI messages that could be viewed on that LCD? PoP 1 and 2 do it too! If you configure DOSBox to use the MT-32, PoP1 prints the following message:

MT32: LCD-Message: The Princess awaits.

PoP2 prints the following:

MT32: LCD-Message: The saga continues..
MT32: LCD-Message: <<<<<<Beware!!>>>>>>


Those were the ones I saw at the beginning of both games. I don't know if any others are printed subsequently since I didn't play through, but it was fun seeing these for the first time.

P.S. Bonus points to whoever figures out where exactly those messages are stored. I couldn't find the strings in the EXEs, nor in the PR-extracted MIDIs either.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 2935
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Some funny sounds

Postby Norbert » December 14th, 2015, 7:20 pm

Norbert wrote:I remember being able to use MIDI though, so something must've changed on my PC.


Oh, actually, because of Andrew's post I remember how I used it.
I used ykhwong's 32-bit binary, with MT32_CONTROL.ROM, MT32_PCM.ROM, and 32-bit libsdl-sound1.2:i386 libphysfs1:i386 on my 64-bit machine.
Kinda related stuff here.
So, yeah, it works for me again. :)

Good thing I don't need to compile from the source, because it's a mess.
And that's not even including having to patch SDL 1.2 with OpenGL-HQ.
For starters, it requires dos2unix on everything.
Then it needs an include #include <cstdlib> in include/bios_disk.h, removal of Sound_GetDuration() from src/dos/cdrom_image.cpp, comment out tbb includes in src/gui/sdlmain.cpp, and so on.

By the way, gulikoza's version has no Linux binary and compiling is also a mess.

User avatar
musa
Vizier
Vizier
Posts: 111
Joined: March 27th, 2011, 2:06 pm
Location: Nairobi, Kenya

Re: Some funny sounds

Postby musa » December 15th, 2015, 12:18 pm

Andrew wrote:P.S. Bonus points to whoever figures out where exactly those messages are stored. I couldn't find the strings in the EXEs, nor in the PR-extracted MIDIs either.

The messages are stored in midi info.bin (PoP1) and PRESET41.DEF (PoP2). It seems to be psuedo-MIDI sysex stuff but I don't know if it can be opened by any MIDI editor.
-- Michael, the boy who makes Shaw's Nightmare.
Visit here to download Shaw's Nightmare: http://shawsnightmare.ucoz.com

Andrew
Wise Scribe
Wise Scribe
Posts: 313
Joined: July 16th, 2009, 4:39 pm

Re: Some funny sounds

Postby Andrew » December 16th, 2015, 1:15 am

musa wrote:The messages are stored in midi info.bin (PoP1) and PRESET41.DEF (PoP2). It seems to be psuedo-MIDI sysex stuff but I don't know if it can be opened by any MIDI editor.

Thanks! How did you manage to decode the files though in order to locate those strings in them?

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 2935
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Some funny sounds

Postby Norbert » December 16th, 2015, 10:01 am

musa wrote:The messages are stored in midi info.bin (PoP1) and PRESET41.DEF (PoP2). It seems to be psuedo-MIDI sysex stuff but I don't know if it can be opened by any MIDI editor.


I'm afraid neither of those is correct. As far as I can tell PoP1 doesn't even have an INFO.BIN file. :P
[Edit: And extracted with PR, then the PoP1 text is in res65535.bin, not in "pcs info 2.bin" and "midi info 1.bin", the only BIN files available.]

The answer is PRINCE.DAT for PoP1 and SNDDRVRS/PRESET40.DEF for PoP2.


User avatar
musa
Vizier
Vizier
Posts: 111
Joined: March 27th, 2011, 2:06 pm
Location: Nairobi, Kenya

Re: Some funny sounds

Postby musa » December 16th, 2015, 10:10 am

Andrew wrote:
musa wrote:The messages are stored in midi info.bin (PoP1) and PRESET41.DEF (PoP2). It seems to be psuedo-MIDI sysex stuff but I don't know if it can be opened by any MIDI editor.

Thanks! How did you manage to decode the files though in order to locate those strings in them?

I didn't. I just found them there while looking at the files.

Norbert wrote:
musa wrote:The messages are stored in midi info.bin (PoP1) and PRESET41.DEF (PoP2). It seems to be psuedo-MIDI sysex stuff but I don't know if it can be opened by any MIDI editor.


I'm afraid neither of those is correct. As far as I can tell PoP1 doesn't even have an INFO.BIN file. :P

The answer is PRINCE.DAT for PoP1 and SNDDRVRS/PRESET40.DEF for PoP2.

Thanks. I forgot which file it is. As for PoP1 I meant the file extracted in PR.
-- Michael, the boy who makes Shaw's Nightmare.
Visit here to download Shaw's Nightmare: http://shawsnightmare.ucoz.com

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 2935
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Some funny sounds

Postby Norbert » December 16th, 2015, 10:14 am

musa wrote:Thanks. I forgot which file it is. As for PoP1 I meant the file extracted in PR.


Just updated my post with...

Norbert wrote:[Edit: And extracted with PR, then the PoP1 text is in res65535.bin, not in "pcs info 2.bin" and "midi info 1.bin", the only BIN files available.]


...so with PR it's in res65535.bin.

Andrew
Wise Scribe
Wise Scribe
Posts: 313
Joined: July 16th, 2009, 4:39 pm

Re: Some funny sounds

Postby Andrew » December 16th, 2015, 7:27 pm

Norbert wrote:I'm afraid neither of those is correct. As far as I can tell PoP1 doesn't even have an INFO.BIN file. :P

To be fair he actually did write "midi info.bin", but probably the space confused you. Even though his memory failed him regarding the precise file names, it was clear to me at least that he was referring to the PR-extracted "midi info 1.bin".

Norbert wrote:The answer is PRINCE.DAT for PoP1 and SNDDRVRS/PRESET40.DEF for PoP2.

Ah, I was searching for whole words so no wonder the search returned no hits. There don't seem to be any more messages BTW.
Last edited by Andrew on December 17th, 2015, 1:24 am, edited 1 time in total.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 2935
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Some funny sounds

Postby Norbert » December 16th, 2015, 8:49 pm

Andrew wrote:[...], it was clear to me at least that he was referring to the PR-extracted "midi info 1.bin".


It was clear to me when, after I thought 'Wait, maybe the BIN file that musa mentioned is one of the PR-extracted files.', I recursively searched for a BIN file. That's when I found the similarly named BIN file. :)

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Some funny sounds

Postby David » December 18th, 2015, 9:11 pm

Andrew wrote:Did you know that games sometimes deliberately included MIDI messages that could be viewed on that LCD?

I'm pretty sure someone already mentioned this, after I noticed the PoP2 messages in one of the files.

Andrew wrote:If you use one of the unofficial DOSBox builds with these patches instead, you'll see just how great the MT-32 sounds.

I also tried this in a version labeled "20130124". (It's an "ykhwong" version.)
Its debugger logs things like this: "ALL:Sysex message size 138" and "MISC:MPU-401:Reset FF".
But the sounds are the same as in the official version.
I don't see "LCD-Message" type logs either.
I think I need a different/newer version for that.

Update: The newest version does the same.

Andrew wrote:MT32: LCD-Message: The Princess awaits.

The "Loading" takes much longer in MT-32 mode.
Is this a hint? :)

Andrew
Wise Scribe
Wise Scribe
Posts: 313
Joined: July 16th, 2009, 4:39 pm

Re: Some funny sounds

Postby Andrew » December 19th, 2015, 9:36 am

David wrote:I'm pretty sure someone already mentioned this, after I noticed the PoP2 messages in one of the files.

Ah, it was news to me since I seem to have missed that post (and can't locate it either).

David wrote:Update: The newest version does the same.

The Jan. 25. 2015 build works fine for me. Did you remember to place the Roland MT32_CONTROL.ROM and MT32_PCM.ROM files in the same dir as the DOSBox EXE?

David wrote:
Andrew wrote:MT32: LCD-Message: The Princess awaits.

The "Loading" takes much longer in MT-32 mode.
Is this a hint? :)

:D

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Some funny sounds

Postby David » December 19th, 2015, 6:12 pm

Andrew wrote:The Jan. 25. 2015 build works fine for me. Did you remember to place the Roland MT32_CONTROL.ROM and MT32_PCM.ROM files in the same dir as the DOSBox EXE?

I downloaded the files now, and copied them there.
However, nothing seems to be different.
The sound effects are still the "funny" ones, and I see no "MT32: LCD-Message".

Update:
I installed MUNT: http://sourceforge.net/projects/munt/
And selected mididevice=1 in dosbox.conf.
(I had to copy the *.ROM files to system32.)
Now the sound is different (better), but still no "MT32: LCD-Message" in the log.
What am I doing wrong?

Update:
Forget that.
I have to set: mididevice=mt32 in dosbox.conf.
Now it works!


Return to “Prince of Persia 1 for DOS”

Who is online

Users browsing this forum: No registered users and 1 guest