Skip to content

AudioChannelAPI ​

cpp
#include <VAmiga.h>
cpp
class AudioChannelAPI

Defined in VAmiga.h:1043

API of an audio channel of Paula.

Public Methods ​

ReturnNameDescription
AudioChannelAPI inlineCreates the API object for the given audio channel (0 ... 3).
const StateMachineInfo &getInfo constReturns the component's current state.
const StateMachineInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).

AudioChannelAPI ​

inline

cpp
inline AudioChannelAPI(isize channel)

Defined in VAmiga.h:1053

Creates the API object for the given audio channel (0 ... 3).


getInfo ​

const

cpp
const StateMachineInfo & getInfo() const

Defined in VAmiga.h:1064

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 StateMachineInfo & getCachedInfo() const

Defined in VAmiga.h:1066

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