First post, by superfury
It gives some kind of high sounding signal sometimes with the 1Hz high pass filter and ticking sounds (~4-6/second) without the filter.
It is first generated(1.19MHz), downsampled in 60us intervals(PWM), finally skipped(downsampling it) to 44.1kHz for output.
https://bitbucket.org/superfury/x86emu/src/91 … pit.c?at=master
The tickPIT handles this signal generation. 8088 MPH sounds fine when making sound using normal PC speaker output(sounding), ticking sounds instead of quiet times and incorrect noise-like sound during it's PWM output in the credits.
As far as I know the 1Hz high pass filter works, as does the low pass filter (verified using MIDI output). So the PC speaker PWM and/or PIT2 generation goes wrong here(PWM is the inner loop of the second part of tickPIT(line 431), which is already downsampled to 44.1kHz at line 445). Line 385+ handles IRQ0 ticks. Line 401 can clear the PIT1 buffer (not used, so ignored). Line 162+ generates raw PIT samples for all 3 channels (It adds binary samples to the 1.19MHz PIT output buffer, so the output of the signal lines)).
The channel status used in generating the 1.19MHz signal has some different basic states (dependant on the channel's mode).
Anyone knows what's going wrong with it's output or sound(PWM) generation?
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io