openMSX
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
YMF262.cc File Reference
#include "YMF262.hh"
#include "ResampledSoundDevice.hh"
#include "EmuTimer.hh"
#include "IRQHelper.hh"
#include "FixedPoint.hh"
#include "SimpleDebuggable.hh"
#include "DeviceConfig.hh"
#include "MSXMotherBoard.hh"
#include "serialize.hh"
#include "memory.hh"
#include <cmath>
#include <cstring>
Include dependency graph for YMF262.cc:

Go to the source code of this file.

Classes

class  openmsx::YMF262Debuggable
class  openmsx::YMF262Slot
class  openmsx::YMF262Channel
class  openmsx::YMF262::Impl

Namespaces

namespace  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.0 / ENV_STEP))
#define O(a)   (a * RATE_STEPS)
#define O(a)   (a * 1)
#define ML(x)   byte(2 * x)

Typedefs

typedef FixedPoint< 16 > openmsx::FreqIndex
 16.16 fixed point type for frequency calculations

Enumerations

enum  openmsx::EnvelopeState { openmsx::EG_ATTACK, openmsx::EG_DECAY, openmsx::EG_SUSTAIN, openmsx::EG_RELEASE }

Functions

 openmsx::SERIALIZE_ENUM (EnvelopeState, envelopeStateInfo)

Variables

 openmsx::YMF262

Macro Definition Documentation

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

Definition at line 311 of file YMF262.cc.

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

Definition at line 465 of file YMF262.cc.

#define O (   a)    (a * RATE_STEPS)

Definition at line 431 of file YMF262.cc.

#define O (   a)    (a * 1)

Definition at line 431 of file YMF262.cc.

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

Definition at line 358 of file YMF262.cc.