CSND Services

From 3dbrew
Revision as of 19:50, 24 August 2013 by Yellows8 (talk | contribs)
Jump to navigation Jump to search

CSND service "csnd:SND"

Command Header Description
0x00010140 Initialize
0x00020000 Shutdown
0x00030040 This triggers processing for the command(0x20-bytes) written to shared-memory, at the specified shared-mem offset(type0).
0x00040080 This triggers processing for the command(0x3C-bytes) written to shared-memory, at the specified shared-mem entry index(type1).
0x00050000
0x00060000
0x00070000
0x00080040
0x00090082 FlushDCache (The address must be located in the 0x14000000 region)
0x000A0082 StoreDCache (svcStoreProcessDataCache is used for this, the address must be located in the 0x14000000 region)
0x000B0082 InvalidateDCache (The address must be located in the 0x14000000 region)
0x000C0000

This service is normally used for playing CWAVs. The audio data must be located in the 0x14000000 virtual memory region, since CSND requires the physical address for playing the audio.