MiSTer-devel / SMS_MiSTer

Sega Master System for MiSTer
45 stars 43 forks source link

Populous: broken audio sample at startup #136

Closed Thelypody closed 1 year ago

Thelypody commented 1 year ago

Populous (Europe, Brazil) (En).sms CRC32: C7A1FDEF

This SMS game is supposed to play a voice sample at startup saying "Welcome to Populous". On the current core version (20220620) this audio sample has issues with playback, resulting in very low volume, making it nearly inaudible compared to game's PSG music.

SMS Power has a page dedicated to Populous sound samples: https://www.smspower.org/Development/Populous-SMS

sorgelig commented 1 year ago

Probably @jotego as an author of PSG module may say if module is compatible with such trick.

jotego commented 1 year ago

@Thelypody could you share a link to a youtube video where the audio sample can be heard?

Thelypody commented 1 year ago

Not quite a Youtube video, but an article from Nicole Express blog on playing sound samples on SMS has two video clips of Populous intro in the middle. I believe the author uses real hardware for demonstration. http://nicole.express/2022/let-me-show-you-the-sound-of-my-master.html

jotego commented 1 year ago

Freezing the channel output bit for tones below 6 may fix the issue. I cannot test it because of issue #137

birdybro commented 1 year ago

https://github.com/MiSTer-devel/SMS_MiSTer/issues/74 - possibly related.

jotego commented 1 year ago

I've fixed it, PR done, waiting for the merge acceptance.

The explanation is that the internal DAC didn't react for very high frequencies. Originally I had assumed only the top two fastest ones, but it looks like tone code 5 didn't produce a switching output either. Extending the DAC deaf tones upto code 5 brings this voice samples backs to life.

birdybro commented 1 year ago

Thank you! :)

Thelypody commented 1 year ago

Just checked Populous with an unstable core build and got welcomed with a working sound sample. Thanks for quickly solving this edge case!