PSYQO SDK
Spu
spu.hh · SPU RAM, voices, ADSR and sound transfer
Module
SPU RAM, voices, ADSR and sound transfer.
Include this module
C++ include
#include "psyqo/spu.hh"Types
Functions and methods
dmaWriteSynchronously uploads data to the SPU's sound RAM.MethodgetNextFreeChannelReturns next free channel as part of SPU RAM, voices, ADSR and sound transfer.MethodinitAsyncEnables asynchronous DMA transfers for this SPU object.MethodinitializeResets the SPU to a known, silent state.MethodplayADPCMStarts playing an ADPCM sample on the given channel.MethodsilenceChannelsSilences the given channels.MethodFields, variables and values
ADPCM_BLOCK_SIZEThe size of a single ADPCM block, in bytes.VariableadsrExposes `adsr` on `psyqo::SPU::ChannelPlaybackConfig` for SPU RAM, voices, ADSR and sound transfer.FieldBASE_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.VariablesampleRateExposes `sampleRate` on `psyqo::SPU::ChannelPlaybackConfig` for SPU RAM, voices, ADSR and sound transfer.FieldSOUND_RAM_SIZEThe size of the SPU's sound RAM, in bytes.VariablevolumeLeftExposes `volumeLeft` on `psyqo::SPU::ChannelPlaybackConfig` for SPU RAM, voices, ADSR and sound transfer.FieldvolumeRightExposes `volumeRight` on `psyqo::SPU::ChannelPlaybackConfig` for SPU RAM, voices, ADSR and sound transfer.Field