KO
games/alis / src / Alis / OPL_RateConv.php · commit 9c722cf
<?phpnamespace App\Alis;/** C struct __OPL_RateConv (emu8950.h): the internal sinc sample rate converter. */final class OPL_RateConv{    public int $ch = 0;    public float $timer = 0.0;    public float $f_ratio = 0.0;    /** C int16_t *sinc_table (SINC_RESO * LW / 2 entries) */    public array $sinc_table = [];    /** C int16_t **buf: ch arrays of LW samples (buf[LW - 1] = newest) */    public array $buf = [];    /** PORT: the 16 sinc_table values used for each of the 256 positions dn*256 (see OPL_RateConv_getData) */    public array $coef = [];}