/* update request from fm.c */ void ym2203_update_request(void *param) { ym2203_state *info = (ym2203_state *)param; //stream_update(info->stream); ym2203_update_one(info->chip, DUMMYBUF, 0); // We really don't need this. /*if (info->psg != NULL) { switch(AY_EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ay8910_update_one(info->psg, DUMMYBUF, 0); break; #endif case EC_EMU2149: PSG_calc_stereo((PSG*)info->psg, DUMMYBUF, 0); break; } }*/ }
static STREAM_UPDATE( ym2203_stream_update ) { ym2203_state *info = (ym2203_state *)param; ym2203_update_one(info->chip, outputs[0], samples); }
void ym2203_device::stream_generate(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) { ym2203_update_one(m_chip, outputs[0], samples); }
//static STREAM_UPDATE( ym2203_stream_update ) void ym2203_stream_update(UINT8 ChipID, stream_sample_t **outputs, int samples) { //ym2203_state *info = (ym2203_state *)param; ym2203_state *info = &YM2203Data[ChipID]; ym2203_update_one(info->chip, outputs, samples); }