Skip to content

PaulaAPI ​

cpp
#include <VAmiga.h>
cpp
class PaulaAPI

Defined in VAmiga.h:1120

API of the Paula chip.

Public Attributes ​

ReturnNameDescription
AudioChannelAPIaudioChannel0Audio channel 0.
AudioChannelAPIaudioChannel1Audio channel 1.
AudioChannelAPIaudioChannel2Audio channel 2.
AudioChannelAPIaudioChannel3Audio channel 3.
DiskControllerAPIdiskControllerThe disk controller.
UARTAPIuartThe UART.

audioChannel0 ​

cpp
AudioChannelAPI audioChannel0 = AudioChannelAPI(0)

Type: AudioChannelAPI

Defined in VAmiga.h:1129

Audio channel 0.


audioChannel1 ​

cpp
AudioChannelAPI audioChannel1 = AudioChannelAPI(1)

Type: AudioChannelAPI

Defined in VAmiga.h:1131

Audio channel 1.


audioChannel2 ​

cpp
AudioChannelAPI audioChannel2 = AudioChannelAPI(2)

Type: AudioChannelAPI

Defined in VAmiga.h:1133

Audio channel 2.


audioChannel3 ​

cpp
AudioChannelAPI audioChannel3 = AudioChannelAPI(3)

Type: AudioChannelAPI

Defined in VAmiga.h:1135

Audio channel 3.


diskController ​

cpp
DiskControllerAPI diskController

Type: DiskControllerAPI

Defined in VAmiga.h:1137

The disk controller.


uart ​

cpp
UARTAPI uart

Type: UARTAPI

Defined in VAmiga.h:1139

The UART.

Public Methods ​

ReturnNameDescription
const PaulaInfo &getInfo constReturns the component's current configuration.
const PaulaInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).

getInfo ​

const

cpp
const PaulaInfo & getInfo() const

Defined in VAmiga.h:1154

Returns the component's current configuration.

Returns the component's current state.

getInfo() reads the live state on the calling thread. The result is only consistent if the emulator is paused or suspended. getCachedInfo() returns the snapshot the emulator thread has recorded most recently, which is the one to use while the emulator runs. Both return references that can be overwritten by a later call or by the emulator thread, so copy the data if you need to keep it.


getCachedInfo ​

const

cpp
const PaulaInfo & getCachedInfo() const

Defined in VAmiga.h:1156

Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).