TR
games/alis / src / Alis / Aud.php · commit 9c722cf
<?phpnamespace App\Alis;/** Generated from the C struct of the same name (tools/structs.py), then edited by hand. */final class Aud{    /** C: void (*soundrout)(void): name of the music routine function, empty = none */    public static string $soundrout = "";    /** C: s32 host_freq */    public static int $host_freq = 0;    /** C: u16 host_format */    public static int $host_format = 0;    /** C: u16 musicId */    public static int $musicId = 0;    /** C: a32 working */    public static int $working = 0;    /** C: sChannel channels[4]: array of sChannel */    public static array $channels = [];    /** C: sAudioInstrument tabinst[128]: array of sAudioInstrument */    public static array $tabinst = [];    /** C: u8 fsound */    public static int $fsound = 0;    /** C: u8 fmusic */    public static int $fmusic = 0;    /** C: u32 mupnote */    public static int $mupnote = 0;    /** C: u8 muvolume */    public static int $muvolume = 0;    /** C: u16 maxvolume */    public static int $maxvolume = 0;    /** C: u8 muvol */    public static int $muvol = 0;    /** C: u8 mustate */    public static int $mustate = 0;    /** C: u8 mutempo */    public static int $mutempo = 0;    /** C: u8 mutemp */    public static int $mutemp = 0;    /** C: u16 muattac */    public static int $muattac = 0;    /** C: u16 muchute */    public static int $muchute = 0;    /** C: s16 muduree */    public static int $muduree = 0;    /** C: u16 dattac */    public static int $dattac = 0;    /** C: u16 dchute */    public static int $dchute = 0;    /** C: a32 muflag */    public static int $muflag = 0;    /** C: u16 mutaloop */    public static int $mutaloop = 0;    /** C: s16 muadresse[kMuBufLen] */    public static array $muadresse = [];    /** C: u32 smpidx */    public static int $smpidx = 0;    public static function init(): void    {        self::$channels = array_map(fn () => new sChannel(), range(1, 4));        self::$tabinst = array_map(fn () => new sAudioInstrument(), range(1, 128));        self::$muadresse = []; // C s16[kMuBufLen]: audio mix buffer, filled by the audio port    }}