view gen_player.h @ 1971:80920c21bb52

Add an event log soft flush and call it twice per frame in between hard flushes to netplay latency when there are insufficient hardware updates to flush packets in the middle of a frame
author Michael Pavone <pavone@retrodev.com>
date Fri, 08 May 2020 11:40:30 -0700
parents bd70f1e15684
children a042e046f7f2
line wrap: on
line source

#ifndef GEN_PLAYER_H_
#define GEN_PLAYER_H_

#include "render.h"
#include "system.h"
#include "vdp.h"
#include "psg.h"
#include "ym2612.h"
#include "event_log.h"

typedef struct {
	system_header   header;
	
	vdp_context     *vdp;
	ym2612_context  *ym;
	psg_context     *psg;
	render_thread   thread;
	event_reader    reader;
} gen_player;

gen_player *alloc_config_gen_player(void *stream, uint32_t rom_size);
gen_player *alloc_config_gen_player_reader(event_reader *reader);

#endif //GEN_PLAYER_H_