◆ init()
| bool Audio::YM2149Emu::init |
( |
| ) |
|
|
overridevirtual |
Initializes the YM2149 emulator.
- Returns
- true on success, false on failure
Implements YM2149::YM2149.
◆ reset()
| void Audio::YM2149Emu::reset |
( |
| ) |
|
|
overridevirtual |
◆ writeReg()
| void Audio::YM2149Emu::writeReg |
( |
int |
r, |
|
|
uint8 |
v |
|
) |
| |
|
overridevirtual |
Function to directly write to a specific YM2149 register.
- Parameters
-
| r | hardware register number to write to |
| v | value, which will be written |
Implements YM2149::YM2149.
◆ isStereo()
| bool Audio::YM2149Emu::isStereo |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ generateSamples()
| void Audio::YM2149Emu::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: