ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <mame.h>

Inheritance diagram for OPL::MAME::OPL:
Collaboration diagram for OPL::MAME::OPL:

List of all members.

Public Member Functions

 OPL ()
 ~OPL ()
bool init ()
void reset ()
void write (int a, int v)
byte read (int a)
void writeReg (int r, int v)
bool isStereo () const
 Is this a stereo stream?

Protected Member Functions

void generateSamples (int16 *buffer, int length)
 Read up to 'length' samples.

Private Attributes


Detailed Description

Definition at line 177 of file mame.h.

Constructor & Destructor Documentation

OPL::MAME::OPL::OPL (  )  [inline]

Definition at line 181 of file mame.h.

OPL::MAME::OPL::~OPL (  ) 

Definition at line 39 of file mame.cpp.

Member Function Documentation

void OPL::MAME::OPL::generateSamples ( int16 buffer,
int  numSamples 
) [protected, virtual]

Read up to 'length' samples.

Data will be in native endianess, 16 bit per sample, signed. For stereo OPL, buffer will be filled with interleaved left and right channel samples, starting with a left sample. Furthermore, the samples in the left and right are summed up. So if you request 4 samples from a stereo OPL, you will get a total of two left channel and two right channel samples.

Implements OPL::EmulatedOPL.

Definition at line 72 of file mame.cpp.

bool OPL::MAME::OPL::init (  ) 

Definition at line 45 of file mame.cpp.

bool OPL::MAME::OPL::isStereo (  )  const [inline, virtual]

Is this a stereo stream?

Implements Audio::AudioStream.

Definition at line 192 of file mame.h.

byte OPL::MAME::OPL::read ( int  a  ) 

Definition at line 64 of file mame.cpp.

void OPL::MAME::OPL::reset (  ) 

Definition at line 56 of file mame.cpp.

void OPL::MAME::OPL::write ( int  a,
int  v 

Definition at line 60 of file mame.cpp.

void OPL::MAME::OPL::writeReg ( int  r,
int  v 

Definition at line 68 of file mame.cpp.

Member Data Documentation

Definition at line 179 of file mame.h.

The documentation for this class was generated from the following files:

Generated on Sat Jun 22 2019 05:04:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge