resonance 1.0.1
Loading...
Searching...
No Matches
CallbackXferHdToIop Class Reference

Receiver that moves an HD sound bank into the sound driver in one transfer. More...

#include <callbackxferhdtoiop.h>

Inheritance diagram for CallbackXferHdToIop:
Collaboration diagram for CallbackXferHdToIop:

Public Member Functions

virtual void Done (int nHandle, int nFile, void *pBuffer, int nLength, int nStatus)
 Move the bank that has just been read and release the buffer.
Public Member Functions inherited from AsyncCallback
virtual ~AsyncCallback ()
 Release the receiver.

Public Attributes

CallbackXferBdToIop * mpBdXfer

Detailed Description

Receiver that moves an HD sound bank into the sound driver in one transfer.

Its RTTI descriptor is at 0x008eeee8. It has AsyncCallback as its one public base at offset 0. The vtable at 0x0081cf80 has the base's three slots and no more. The class does not add a virtual or declare a destructor. An instance is 8 bytes.

Unlike the BD transfer this is not chunked. The one completion moves the whole buffer to the IOP, releases it, and clears the flag that a BD transfer defers to, then resumes the deferred BD transfer when there is one.

Member Function Documentation

◆ Done()

virtual void CallbackXferHdToIop::Done ( int nHandle,
int nFile,
void * pBuffer,
int nLength,
int nStatus )
virtual

Move the bank that has just been read and release the buffer.

Reports HD bank loading returned async error d for a positive status and skips the transfer, but still releases the buffer and clears the flag.

Parameters
nHandleThe identifier the read was queued under.
nFileThe file the read was issued against.
pBufferThe destination the read filled.
nLengthThe number of bytes the read requested.
nStatusZero once the data is in place, or a positive failure code.
Ghidra address:
NTSC-U/C: 0x00464d10
Ghidra address:
PAL: 0x004a26d0 Transfer to resume once this one reports, or null. Public because the routine that starts a BD transfer writes it directly at 0x00462080, and the image supplies no setter for it. +0x04

Implements AsyncCallback.

Member Data Documentation

◆ mpBdXfer

CallbackXferBdToIop* CallbackXferHdToIop::mpBdXfer

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