view gen_player.h @ 2005:3ce38692a3f2

Set initial pan bits in YM2612 register array and not just the separate lr field of the channel. This fixes an issue in which some channels would be silent in VGM log output
author Michael Pavone <pavone@retrodev.com>
date Sun, 11 Oct 2020 22:42:10 -0700
parents a042e046f7f2
children
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;
#ifndef IS_LIB
	render_thread   thread;
#endif
	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_