◆ init()
Initializes the CMS emulator.
- Returns
- true on success, false on failure
Implements CMS::CMS.
◆ reset()
void DOSBoxCMS::reset |
( |
| ) |
|
|
overridevirtual |
Reinitializes the CMS emulator
Implements CMS::CMS.
◆ write()
void DOSBoxCMS::write |
( |
int |
a, |
|
|
int |
v |
|
) |
| |
|
overridevirtual |
Writes a byte to the given I/O port. CMS responds to 2 sets of 2 ports: 0x220/0x222 - value for the 1st/2nd chip (channels 0-5/6-B) 0x221/0x223 - register for the 1st/2nd chip
- Parameters
-
a | port address |
v | value, which will be written |
Implements CMS::CMS.
◆ writeReg()
void DOSBoxCMS::writeReg |
( |
int |
r, |
|
|
int |
v |
|
) |
| |
|
overridevirtual |
Function to directly write to a specific CMS register. We allow writing to secondary CMS chip registers by using register values >= 0x100.
- Parameters
-
r | hardware register number to write to |
v | value, which will be written |
Implements CMS::CMS.
◆ isStereo()
bool DOSBoxCMS::isStereo |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ generateSamples()
void DOSBoxCMS::generateSamples |
( |
int16 * |
buffer, |
|
|
int |
numSamples |
|
) |
| |
|
overrideprotectedvirtual |
Read up to 'length' samples.
Data will be in native endianess, 16 bit per sample, signed. For stereo chips, 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 chip, you will get a total of two left channel and two right channel samples.
Implements Audio::EmulatedChip.
The documentation for this class was generated from the following file: