void y8950Write(Y8950* y8950, UInt16 ioPort, UInt8 value) { switch (ioPort & 1) { case 0: OPLWrite(y8950->opl, 0, value); break; case 1: mixerSync(y8950->mixer); OPLWrite(y8950->opl, 1, value); break; } }
static void adlib_write(void *opaque, uint32_t nport, uint32_t val) { AdlibState *s = opaque; int a = nport & 3; s->active = 1; AUD_set_active_out (s->voice, 1); adlib_kill_timers (s); OPLWrite (s->opl, a, val); }
static IO_WRITE_PROTO (adlib_write) { AdlibState *s = opaque; int a = nport & 3; s->active = 1; AUD_set_active_out (s->voice, 1); adlib_kill_timers (s); #ifdef HAS_YMF262 YMF262Write (0, a, val); #else OPLWrite (s->opl, a, val); #endif }
static void adlib_write(void *opaque, uint32_t nport, uint32_t val) { AdlibState *s = opaque; int a = nport & 3; s->active = 1; AUD_set_active_out (s->voice, 1); adlib_kill_timers (s); #ifdef HAS_YMF262 YMF262Write (0, a, val); #else OPLWrite (s->opl, a, val); #endif }