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

Classes

struct  Vgm_File

Functions

static byte constskip_gd3_str (byte const *in, byte const *end)
static byte constget_gd3_str (byte const *in, byte const *end, char *field)
static byte constget_gd3_pair (byte const *in, byte const *end, char *field)
static void parse_gd3 (byte const *in, byte const *end, track_info_t *out)
static long check_gd3_header (byte const *h, long remain)
static void get_vgm_length (Vgm_Emu::header_t const &h, track_info_t *out)
static blargg_err_t check_vgm_header (Vgm_Emu::header_t const &h)
static Music_Emunew_vgm_emu ()
static Music_Emunew_vgm_file ()

Variables

double const fm_gain = 3.0
double const rolloff = 0.990
double const oversample_factor = 1.5
int const gd3_header_size = 12
static gme_type_t_ const gme_vgm_type_ = { "Sega SMS/Genesis", 1, &new_vgm_emu, &new_vgm_file, "VGM", 1 }
BLARGG_EXPORT gme_type_t const gme_vgm_type = &gme_vgm_type_
static gme_type_t_ const gme_vgz_type_ = { "Sega SMS/Genesis", 1, &new_vgm_emu, &new_vgm_file, "VGZ", 1 }
BLARGG_EXPORT gme_type_t const gme_vgz_type = &gme_vgz_type_

Function Documentation

◆ check_gd3_header()

long check_gd3_header ( byte const * h,
long remain )
static

◆ check_vgm_header()

blargg_err_t check_vgm_header ( Vgm_Emu::header_t const & h)
static

◆ get_gd3_pair()

byte const * get_gd3_pair ( byte const * in,
byte const * end,
char * field )
static

◆ get_gd3_str()

byte const * get_gd3_str ( byte const * in,
byte const * end,
char * field )
static

◆ get_vgm_length()

void get_vgm_length ( Vgm_Emu::header_t const & h,
track_info_t * out )
static

◆ new_vgm_emu()

Music_Emu * new_vgm_emu ( )
static

◆ new_vgm_file()

Music_Emu * new_vgm_file ( )
static

◆ parse_gd3()

void parse_gd3 ( byte const * in,
byte const * end,
track_info_t * out )
static

◆ skip_gd3_str()

byte const * skip_gd3_str ( byte const * in,
byte const * end )
static

Variable Documentation

◆ fm_gain

double const fm_gain = 3.0

◆ gd3_header_size

int const gd3_header_size = 12

◆ gme_vgm_type

BLARGG_EXPORT gme_type_t const gme_vgm_type = &gme_vgm_type_
extern

◆ gme_vgm_type_

gme_type_t_ const gme_vgm_type_ = { "Sega SMS/Genesis", 1, &new_vgm_emu, &new_vgm_file, "VGM", 1 }
static

◆ gme_vgz_type

BLARGG_EXPORT gme_type_t const gme_vgz_type = &gme_vgz_type_
extern

◆ gme_vgz_type_

gme_type_t_ const gme_vgz_type_ = { "Sega SMS/Genesis", 1, &new_vgm_emu, &new_vgm_file, "VGZ", 1 }
static

◆ oversample_factor

double const oversample_factor = 1.5

◆ rolloff

double const rolloff = 0.990