freq / ->channels: the output device (set by audio_output_init) */ public static int $freq = 22050; public static int $channels = 2; /** set once audio_output_init() ran */ public static bool $opened = false; /** C PSG *audio_psg, OPL *audio_opl */ public static ?PSG $audio_psg = null; public static ?OPL $audio_opl = null; /** C u32 isr_step (16.16: sys_sfx_tick_hz * 65536 / freq), isr_counter (16.16 accumulator) */ public static int $isr_step = 0; public static int $isr_counter = 0x10000; /** C u32 sys_sfx_tick_hz: original interrupt cadence (60 Hz DOS PIT, 50 Hz Atari/Amiga VBL) */ public static int $sys_sfx_tick_hz = 50; /** C int opt_mono */ public static int $opt_mono = 0; /** C volatile u8 g_psg_isr_context */ public static int $g_psg_isr_context = 0; /** C u16 sys_opl_q_count (the OPL -> DSP queue of the Atari build: only reset here) */ public static int $sys_opl_q_count = 0; /** C u8 opl_sfx_initialized[2], opl_sfx_type[2]: OPL2 channels 4-5 used by the sound effects */ public static array $opl_sfx_initialized = [0, 0]; public static array $opl_sfx_type = [0, 0]; /** C static s16 vol_tab[4][256], vol_tab_v[4] */ public static array $vol_tab = [[], [], [], []]; public static array $vol_tab_v = [-1, -1, -1, -1]; }