//static STREAM_UPDATE( ym3812_stream_update ) void ym3812_stream_update(void *param, stream_sample_t **outputs, int samples) { ym3812_state *info = (ym3812_state *)param; switch(info->EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ym3812_update_one(info->chip, outputs, samples); break; #endif case EC_DBOPL: adlib_OPL2_getsample(info->chip, outputs, samples); break; } }
//static STREAM_UPDATE( ym3812_stream_update ) void ym3812_stream_update(UINT8 ChipID, stream_sample_t **outputs, int samples) { //ym3812_state *info = (ym3812_state *)param; ym3812_state *info = &YM3812Data[ChipID]; switch(EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ym3812_update_one(info->chip, outputs, samples); break; #endif case EC_DBOPL: adlib_OPL2_getsample(info->chip, outputs, samples); break; } }
static void _stream_update(void * param/*, int interval*/) { ym3812_state *info = (ym3812_state *)param; //stream_update(info->stream); switch(info->EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ym3812_update_one(info->chip, DUMMYBUF, 0); break; #endif case EC_DBOPL: adlib_OPL2_getsample(info->chip, DUMMYBUF, 0); break; } }