PL
games/alis / src / Alis / sMV1Audio.php · commit 9c722cf
<?phpnamespace App\Alis;/** Generated from the C struct of the same name (tools/structs.py), then edited by hand. */final class sMV1Audio{    /** C: sMV1Channel channels[kNumMV1Channels]: array of sMV1Channel */    public array $channels = [];    /** C: u32 tabfrq[128] */    public array $tabfrq = [];    /** C: u8 flag1 */    public int $flag1 = 0;    /** C: u8 flag2 */    public int $flag2 = 0;    /** C: u16 tempo */    public int $tempo = 0;    /** C: u16 effect */    public int $effect = 0;    /** C: u16 volume */    public int $volume = 0;    /** C: u16 prevvol */    public int $prevvol = 0;    /** C: u16 basevol */    public int $basevol = 0;    /** C: u32 noteptr */    public int $noteptr = 0;    /** C: u8 notedata */    public int $notedata = 0;    /** C: u16 mumax */    public int $mumax = 0;    /** C: u16 mucnt */    public int $mucnt = 0;    /** C: u16 muspeed */    public int $muspeed = 0;    public function __construct()    {        $this->channels = array_map(fn () => new sMV1Channel(), range(1, 3));        $this->tabfrq = array_fill(0, 128, 0);    }}