wavelength 1.0.0
Loading...
Searching...
No Matches
QueuedJob Class Reference

Request SynthPS2 queues and runs in order once the sound processor is free. More...

#include <queuedjob.h>

Inheritance diagram for QueuedJob:

Public Types

enum  Type {
  kTypePartition = 0 , kTypeDeactivateBank = 1 , kTypeBankLoad = 2 , kTypeEnableDisableSoftFx = 3 ,
  kTypeSetupCoreFx = 4 , kTypeCallback = 5
}
 The kinds of job, the values of mType. More...

Public Member Functions

 QueuedJob (int nType)
 Construct a job that has not started.
virtual ~QueuedJob ()
int GetType () const
int GetStarted () const
void SetStarted (int nStarted)
 Record that the job has sent its request.

Detailed Description

Request SynthPS2 queues and runs in order once the sound processor is free.

The RTTI includes the class name and records no base. The two data members precede the vptr. SynthPS2::ProcessJobs() picks the job's class from mType and runs the job at the front of the queue, polling it on later frames until it finishes.

Member Enumeration Documentation

◆ Type

The kinds of job, the values of mType.

Enumerator
kTypePartition 

A PartitionQJ.

kTypeDeactivateBank 

A DeactivateBankQJ.

kTypeBankLoad 

A BankLoadQJ.

kTypeEnableDisableSoftFx 

An EnableDisableSoftFxQJ.

kTypeSetupCoreFx 

A SetupCoreFxQJ.

kTypeCallback 

A CallbackQJ.

Constructor & Destructor Documentation

◆ QueuedJob()

QueuedJob::QueuedJob ( int nType)
inlineexplicit

Construct a job that has not started.

Parameters
nTypeThe kind of job, one of Type.

◆ ~QueuedJob()

virtual QueuedJob::~QueuedJob ( )
inlinevirtual
Ghidra address:
NTSC-U/C: 0x00397008
Ghidra address:
PAL: 0x004056f0

Member Function Documentation

◆ GetType()

int QueuedJob::GetType ( ) const
inline
Returns
One of Type.

◆ GetStarted()

int QueuedJob::GetStarted ( ) const
inline
Returns
1 once the job has sent its request.

◆ SetStarted()

void QueuedJob::SetStarted ( int nStarted)
inline

Record that the job has sent its request.

Parameters
nStarted1 once the request is sent.

The documentation for this class was generated from the following file: