Difference between revisions of "CSND:Initialize"

From 3dbrew
Jump to navigation Jump to search
Line 12: Line 12:
 
|-
 
|-
 
| 2
 
| 2
| Offset0 located in the shared-memory.
+
| Offset0 located in the shared-memory, region size=8, used for dumping some DSP flags with type0 cmd 0x300.
 
|-
 
|-
 
| 3
 
| 3
| Offset1 located in the shared-memory.
+
| Offset1 located in the shared-memory, region size=12*num_channels, used for dumping sound channel states with type0 cmd 0x300.
 
|-
 
|-
 
| 4
 
| 4
| Offset2 located in the shared-memory.
+
| Offset2 located in the shared-memory, region size=8*num_channels2, used for dumping unknown states with type0 cmd 0x300.
 
|-
 
|-
 
| 5
 
| 5

Revision as of 19:35, 1 January 2015

Request

Index Word Description
0 Header code [0x00010140]
1 Shared memory block size, for mem-block creation.
2 Offset0 located in the shared-memory, region size=8, used for dumping some DSP flags with type0 cmd 0x300.
3 Offset1 located in the shared-memory, region size=12*num_channels, used for dumping sound channel states with type0 cmd 0x300.
4 Offset2 located in the shared-memory, region size=8*num_channels2, used for dumping unknown states with type0 cmd 0x300.
5 Offset3 located in the shared-memory.

Response

Index Word Description
0 Header code
1 Result code
2 Handle-list header, value is: 0x4000000
3 Mutex handle
4 Shared memory block handle