LMMS
Loading...
Searching...
No Matches
Gym_Emu.cpp File Reference
#include "Gym_Emu.h"
#include "blargg_endian.h"
#include <string.h>
#include "blargg_source.h"

Classes

struct  Gym_File

Functions

static void get_gym_info (Gym_Emu::header_t const &h, long length, track_info_t *out)
static long gym_track_length (byte const *p, byte const *end)
static blargg_err_t check_header (byte const *in, long size, int *data_offset=0)
static Music_Emunew_gym_emu ()
static Music_Emunew_gym_file ()

Variables

double const min_tempo = 0.25
double const oversample_factor = 5 / 3.0
double const fm_gain = 3.0
const long base_clock = 53700300
const long clock_rate = base_clock / 15
static gme_type_t_ const gme_gym_type_ = { "Sega Genesis", 1, &new_gym_emu, &new_gym_file, "GYM", 0 }
BLARGG_EXPORT gme_type_t const gme_gym_type = &gme_gym_type_

Function Documentation

◆ check_header()

blargg_err_t check_header ( byte const * in,
long size,
int * data_offset = 0 )
static

◆ get_gym_info()

void get_gym_info ( Gym_Emu::header_t const & h,
long length,
track_info_t * out )
static

◆ gym_track_length()

long gym_track_length ( byte const * p,
byte const * end )
static

◆ new_gym_emu()

Music_Emu * new_gym_emu ( )
static

◆ new_gym_file()

Music_Emu * new_gym_file ( )
static

Variable Documentation

◆ base_clock

const long base_clock = 53700300

◆ clock_rate

const long clock_rate = base_clock / 15

◆ fm_gain

double const fm_gain = 3.0

◆ gme_gym_type

BLARGG_EXPORT gme_type_t const gme_gym_type = &gme_gym_type_
extern

◆ gme_gym_type_

gme_type_t_ const gme_gym_type_ = { "Sega Genesis", 1, &new_gym_emu, &new_gym_file, "GYM", 0 }
static

◆ min_tempo

double const min_tempo = 0.25

◆ oversample_factor

double const oversample_factor = 5 / 3.0