LMMS
Loading...
Searching...
No Matches
Ay_Apu.cpp File Reference
#include "Ay_Apu.h"
#include "blargg_source.h"

Macros

#define ENTRY(n)
#define MODE(a0, a1, b0, b1, c0, c1)

Variables

unsigned const inaudible_freq = 16384
int const period_factor = 16
static byte const amp_table [16]
static byte const modes [8]
int const noise_off = 0x08
int const tone_off = 0x01

Macro Definition Documentation

◆ ENTRY

#define ENTRY ( n)
Value:
#define byte
Definition blargg_source.h:87
@ amp_range
Definition Ay_Apu.h:70
int n
Definition crypt.c:458

◆ MODE

#define MODE ( a0,
a1,
b0,
b1,
c0,
c1 )
Value:
(a0 | a1<<1 | b0<<2 | b1<<3 | c0<<4 | c1<<5)

Variable Documentation

◆ amp_table

byte const amp_table[16]
static
Initial value:
=
{
#define ENTRY( n )
ENTRY(0.000000),ENTRY(0.007813),ENTRY(0.011049),ENTRY(0.015625),
ENTRY(0.022097),ENTRY(0.031250),ENTRY(0.044194),ENTRY(0.062500),
ENTRY(0.088388),ENTRY(0.125000),ENTRY(0.176777),ENTRY(0.250000),
ENTRY(0.353553),ENTRY(0.500000),ENTRY(0.707107),ENTRY(1.000000),
}
#define ENTRY(n)

◆ inaudible_freq

unsigned const inaudible_freq = 16384

◆ modes

byte const modes[8]
static
Initial value:
=
{
#define MODE( a0,a1, b0,b1, c0,c1 ) \
MODE( 1,0, 1,0, 1,0 ),
MODE( 1,0, 0,0, 0,0 ),
MODE( 1,0, 0,1, 1,0 ),
MODE( 1,0, 1,1, 1,1 ),
MODE( 0,1, 0,1, 0,1 ),
MODE( 0,1, 1,1, 1,1 ),
MODE( 0,1, 1,0, 0,1 ),
MODE( 0,1, 0,0, 0,0 ),
}
#define MODE(a0, a1, b0, b1, c0, c1)

◆ noise_off

int const noise_off = 0x08

◆ period_factor

int const period_factor = 16

◆ tone_off

int const tone_off = 0x01