PSYQO SDK
psyqo::SPU
Class
Class
Class declared by the spu module for SPU RAM, voices, ADSR and sound transfer.
Basic usage
This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.
C++ example
#include "psyqo/spu.hh"
psyqo::SPU& value = /* obtain a valid instance from your game */;Nested types
Fields and constants
ADPCM_BLOCK_SIZEThe size of a single ADPCM block, in bytes.VariableBASE_ALLOC_ADDRExposes `BASE_ALLOC_ADDR` on `psyqo::SPU` for SPU RAM, voices, ADSR and sound transfer.VariableBASE_SAMPLE_RATEExposes `BASE_SAMPLE_RATE` on `psyqo::SPU` for SPU RAM, voices, ADSR and sound transfer.VariableMAX_DMA_BLOCK_SIZEThe largest DMA block size the SPU will accept, in bytes.VariableNO_FREE_CHANNELExposes `NO_FREE_CHANNEL` on `psyqo::SPU` for SPU RAM, voices, ADSR and sound transfer.VariableSOUND_RAM_SIZEThe size of the SPU's sound RAM, in bytes.VariablePublic methods
Static methods
dmaWriteSynchronously uploads data to the SPU's sound RAM.MethodgetNextFreeChannelReturns next free channel as part of SPU RAM, voices, ADSR and sound transfer.MethodinitializeResets the SPU to a known, silent state.MethodplayADPCMStarts playing an ADPCM sample on the given channel.MethodsilenceChannelsSilences the given channels.Method