openMSX
Namespaces | Macros | Variables
YMF278.cc File Reference
#include "YMF278.hh"
#include "DeviceConfig.hh"
#include "MSXMotherBoard.hh"
#include "MSXException.hh"
#include "Math.hh"
#include "likely.hh"
#include "outer.hh"
#include "ranges.hh"
#include "serialize.hh"
Include dependency graph for YMF278.cc:

Go to the source code of this file.

Namespaces

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

Macros

#define SC(dB)   int16_t((dB) / 3 * 0x20)
 
#define O(a)   ((a) * RATE_STEPS)
 
#define O(a)   (a)
 
#define O(a)   int((LFO_PERIOD * (a)) / 44100.0 + 0.5)
 

Variables

 openmsx::YMF278
 

Macro Definition Documentation

◆ O [1/3]

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

Definition at line 150 of file YMF278.cc.

Referenced by openmsx::YMF278::writeMem().

◆ O [2/3]

#define O (   a)    (a)

Definition at line 150 of file YMF278.cc.

◆ O [3/3]

#define O (   a)    int((LFO_PERIOD * (a)) / 44100.0 + 0.5)

Definition at line 150 of file YMF278.cc.

◆ SC

#define SC (   dB)    int16_t((dB) / 3 * 0x20)

Definition at line 73 of file YMF278.cc.