openMSX
Namespaces | Macros | Functions | Variables
YMF262.cc File Reference
#include "YMF262.hh"
#include "DeviceConfig.hh"
#include "MSXMotherBoard.hh"
#include "Math.hh"
#include "outer.hh"
#include "serialize.hh"
#include <cmath>
#include <cstring>
Include dependency graph for YMF262.cc:

Go to the source code of this file.

Namespaces

 openmsx
 Thanks to enen for testing this on a real cartridge:
 

Macros

#define DV(x)   int((x) / (0.1875 / 2.0))
 
#define SC(db)   unsigned((db) * (2.0f / ENV_STEP))
 
#define O(a)   ((a) * RATE_STEPS)
 
#define O(a)   ((a) * 1)
 
#define ML(x)   byte(2 * (x))
 

Functions

 openmsx::SERIALIZE_ENUM (YMF262::EnvelopeState, envelopeStateInfo)
 

Variables

 openmsx::YMF262
 

Macro Definition Documentation

◆ DV

#define DV (   x)    int((x) / (0.1875 / 2.0))

Definition at line 92 of file YMF262.cc.

◆ ML

#define ML (   x)    byte(2 * (x))

Definition at line 246 of file YMF262.cc.

◆ O [1/2]

#define O (   a)    ((a) * RATE_STEPS)

Definition at line 212 of file YMF262.cc.

◆ O [2/2]

#define O (   a)    ((a) * 1)

Definition at line 212 of file YMF262.cc.

◆ SC

#define SC (   db)    unsigned((db) * (2.0f / ENV_STEP))

Definition at line 139 of file YMF262.cc.