static void YM3526Render(int nSegmentLength) { if (nYM3526Position >= nSegmentLength) { return; } // bprintf(PRINT_NORMAL, _T(" YM3526 render %6i -> %6i\n", nYM3526Position, nSegmentLength)); nSegmentLength -= nYM3526Position; YM3526UpdateOne(0, pBuffer + 0 * 4096 + 4 + nYM3526Position, nSegmentLength); nYM3526Position += nSegmentLength; }
static void ym3526_stream_update(void *param, stream_sample_t **inputs, stream_sample_t **buffer, int length) { struct ym3526_info *info = param; YM3526UpdateOne(info->chip, buffer[0], length); }