Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

Module master

Module master 

Source
Expand description

Master volumes and the music duck.

Six games each scale their sound effects by an options-menu setting in six different ways. Master is the one copy: an exact rational for the effects level, the same for music, and a ducking gain that lets an important sound pull the music down and release it afterwards.

The mixer applies the effects ratio at the point a level reaches the chip and remembers the unscaled level, so changing the setting while sounds play re-scales them immediately. Music is not routed here: Master::music_level_q15 returns the value, and the game writes it to the CD volume register.

Structs§

Master
Effects and music master volumes plus the music duck.
Ratio
An exact fraction num / den.