Enjay wrote:Yes, the sound samples in Doom all start with DS and the PC speaker bleeps have the same name but start with DP instead. Hmmm... I wonder, is there a way of playing those bleeps outside the game?
There are specifications on /idgames
telling the duration and frequency of each byte. You can program a tool that generates successive square waves based on that and play them as a WAV.
I did make a WAV-to-PCSpeaker converter once and built a WAD with the produced sounds, but they were all very noisy. It was done by analyzing the frequency spectrum of each fixed-length time block and using the dominant frequency to write the byte in the DP* lump. Some effects were recognizable -- the doors made rising and lowering sounds, the Lost Souls made some high-pitched chirps, the Shotgun did make that loading click sound, but others were downright noisy, like most monster death sounds, or even the player pain. The WAD is on another, inaccessible computer right now.