LMMS
Loading...
Searching...
No Matches
Nsf_Emu.cpp File Reference
#include "Nsf_Emu.h"
#include "blargg_endian.h"
#include <string.h>
#include <stdio.h>
#include "Nes_Namco_Apu.h"
#include "Nes_Vrc6_Apu.h"
#include "Nes_Fme7_Apu.h"
#include "blargg_source.h"

Classes

struct  Nsf_File

Macros

#define APU_NAMES   "Square 1", "Square 2", "Triangle", "Noise", "DMC"

Functions

static void copy_nsf_fields (Nsf_Emu::header_t const &h, track_info_t *out)
static blargg_err_t check_nsf_header (void const *header)
static Music_Emunew_nsf_emu ()
static Music_Emunew_nsf_file ()

Variables

int const vrc6_flag = 0x01
int const namco_flag = 0x10
int const fme7_flag = 0x20
long const clock_divisor = 12
static gme_type_t_ const gme_nsf_type_ = { "Nintendo NES", 0, &new_nsf_emu, &new_nsf_file, "NSF", 1 }
BLARGG_EXPORT gme_type_t const gme_nsf_type = &gme_nsf_type_

Macro Definition Documentation

◆ APU_NAMES

#define APU_NAMES   "Square 1", "Square 2", "Triangle", "Noise", "DMC"

Function Documentation

◆ check_nsf_header()

blargg_err_t check_nsf_header ( void const * header)
static

◆ copy_nsf_fields()

void copy_nsf_fields ( Nsf_Emu::header_t const & h,
track_info_t * out )
static

◆ new_nsf_emu()

Music_Emu * new_nsf_emu ( )
static

◆ new_nsf_file()

Music_Emu * new_nsf_file ( )
static

Variable Documentation

◆ clock_divisor

long const clock_divisor = 12

◆ fme7_flag

int const fme7_flag = 0x20

◆ gme_nsf_type

BLARGG_EXPORT gme_type_t const gme_nsf_type = &gme_nsf_type_
extern

◆ gme_nsf_type_

gme_type_t_ const gme_nsf_type_ = { "Nintendo NES", 0, &new_nsf_emu, &new_nsf_file, "NSF", 1 }
static

◆ namco_flag

int const namco_flag = 0x10

◆ vrc6_flag

int const vrc6_flag = 0x01