03-15-2013, 04:39 AM | #1 |
"hidden" PC Speaker option in Wolfenstein 3-D
While I was implementing a PC speaker emulator for the Wolf4SDL port of Wolfenstein 3-D, I noticed there were routines in the original Wolf3D source code that could play digitized sounds via the PC Speaker.
Unfortunately, there is no menu option to select the PC Speaker as the device for digitized sounds, but as it turns out, you can enable the PC Speaker option by hacking the config file with a hex editor. Long story short: It works! I haven't been able to test it on a real DOS PC, but it works fine with the DOSBox emulator. If you want to test it yourself, edit your config file with a hex editor and set the value at offset 0x01D2 to 1. Or download a modified version of the config file here. I wish I had known this back in the days of my old 80386... |
|
03-15-2013, 07:00 AM | #2 | |
Re: "hidden" PC Speaker option in Wolfenstein 3-D
Quote:
|
||
03-15-2013, 11:27 AM | #3 |
Re: "hidden" PC Speaker option in Wolfenstein 3-D
It's mentioned in this old version of the Wolfenstein 3D and Spear of Destiny Frequently Asked Questions:
Code:
- wolfspk4.exe [All versions] - This little utility will redirect digitised sounds in the game to the PC speaker. (For all of you people with no soundcard!) Some sounds come out a bit dodgy but all the shooting & screaming is audible. This file also works with Spear of Destiny. Note: there are other files like this e.g. wolfspk3.exe, wolfspk.exe, wolf1spk.exe, but wolfspk4.exe supercedes them. To revert back to PC squicker sounds delete CONFIG.WL? file. I also had a driver for Windows 3.0 that played digitized sound through the pc speaker. |
|
03-17-2013, 02:07 PM | #4 |
Re: "hidden" PC Speaker option in Wolfenstein 3-D
Oh wow, interesting find! Funny they built it into the game but there were also utilities to do the same thing?
I wish I'd known about it too when the game first came out, but then I'm not sure my old 286 would've had the power to play the game *and* play PCM through the PC speaker - IIRC most methods of doing this need a fair amount of CPU time to make it sound any good. |
|
03-17-2013, 03:30 PM | #5 |
Re: "hidden" PC Speaker option in Wolfenstein 3-D
I tried changing the config file of Blake Stone: Aliens of Gold, Corridor 7: Alien Invasion, Operation: Body Count and Super 3D Noah's Ark, but I didn't get digitized sound effects through the PC speaker.
|
|
03-18-2013, 08:10 AM | #6 | |
Re: "hidden" PC Speaker option in Wolfenstein 3-D
Wow, this certainly is cool
Quote:
Perhaps this option was dropped/removed from the code at some point in the development? Seeing as how it was actually unused in the original game anyway (probably because of system resource considerations and/or possible compatibility issues).
__________________
It's time to go retro and play old games. Come get some! |
||
03-19-2013, 03:30 AM | #7 | |
Re: "hidden" PC Speaker option in Wolfenstein 3-D
Quote:
All these games seem to use the same numbers to select "None", "SoundBlaster" and "SoundSource", leaving the number 1 (PC Speaker) unused. Wolf3D uses the following enumeration type: Code:
typedef enum { sds_Off,sds_PC,sds_SoundSource,sds_SoundBlaster } SDSMode; Edit: Flaose posted this on the PCKF: http://youtu.be/1BtlsjJRnFU
Last edited by King Duke; 03-19-2013 at 03:54 AM.
|
||
03-20-2013, 05:15 AM | #8 |
Re: "hidden" PC Speaker option in Wolfenstein 3-D
My experience with modding Dune II suggests that this kind of leftover sound-related material was not uncommon back then. The Dune II executable lists various drivers that are neither used nor included in the game files, and there are also corresponding sound device selection options that are still there but cannot be activated because a code chunk elsewhere overrides these selections (more info here if someone's interested).
On top of that, the default setup programme for Dune II forces a single sound device selection for three separate processes: music playback, sound effects playback and digitized sounds playback. Later Westwood Studios released a version of the setup programme that allows to pick different sound devices for each of these types of sound playback. Apparently, this was the original intent of the developers but they decided to play safe with the final release and disable separate sound device selection, most probably to avoid compatibility issues.
__________________
It's time to go retro and play old games. Come get some! |
|
Bookmarks |
|
|