NagyD / SDLPoP

An open-source port of Prince of Persia, based on the disassembly of the DOS version.
GNU General Public License v3.0
1.1k stars 141 forks source link

Add support for PC speaker sounds. #188

Closed Falcury closed 5 years ago

Falcury commented 5 years ago

This adds support for PC speaker sounds. It can be tested by removing the DIGISND and MIDISND files from the data folder, so that SDLPoP will automatically fall back to the IBM_SND files. Also, the blinking sound of the "Press button to continue" text only exists as a speaker sound, so that sound can now finally be played. I am not 100% happy with my implementation of a square wave synthesizer, because the sound seems to hitch a tiny bit when switching from one note to another. Maybe that can be fixed later on.