#ifndef __SEGA_SEGA_H__
#define __SEGA_SEGA_H__
#include "emuconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
sint32 EMU_CALL sega_init(void);
const char* EMU_CALL sega_getversion(void);
uint32 EMU_CALL sega_get_state_size(uint8 version);
void EMU_CALL sega_clear_state(void *state, uint8 version);
void* EMU_CALL sega_get_satsound_state(void *state);
void* EMU_CALL sega_get_dcsound_state(void *state);
sint32 EMU_CALL sega_upload_program(void *state, void *program, uint32 size);
sint32 EMU_CALL sega_execute(
void *state,
sint32 cycles,
sint16 *sound_buf,
uint32 *sound_samples
);
uint32 EMU_CALL sega_get_pc(void *state);
void EMU_CALL sega_enable_dry(void *state, uint8 enable);
void EMU_CALL sega_enable_dsp(void *state, uint8 enable);
void EMU_CALL sega_enable_dsp_dynarec(void *state, uint8 enable);
#ifdef __cplusplus
}
#endif
#endif