Appearance
AudioChannelAPI
cpp
#include <VAmiga.h>cpp
class AudioChannelAPIDefined in VAmiga.h:1043
API of an audio channel of Paula.
Public Methods
| Return | Name | Description |
|---|---|---|
AudioChannelAPI inline | Creates the API object for the given audio channel (0 ... 3). | |
const StateMachineInfo & | getInfo const | Returns the component's current state. |
const StateMachineInfo & | getCachedInfo const | Returns 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() constDefined 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() constDefined in VAmiga.h:1066
Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).