Difference between revisions of "MICU:StartSampling"

From 3dbrew
Jump to navigation Jump to search
(Identify and clarify some fields.)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| u8 unk0: 0 = unknown, 1 = unknown, 2 = unknown, 3 = unknown.
+
| u8, encoding (see [[MIC_Services|here]] for types)
 
|-
 
|-
 
| 2
 
| 2
| u8 unk1
+
| u8, sample rate (see [[MIC_Services|here]] for types)
 
|-
 
|-
 
| 3
 
| 3
| u32, base offset for audio data in sharedmem(Normally zero).
+
| u32, base offset for audio data in sharedmem (Normally zero).
 
|-
 
|-
 
| 4
 
| 4
| u32, absolute end offset of the audio data in sharedmem(Normally sharedmem_size-4, since the offset-field is at sharedmem_size-4).
+
| u32, size of the audio data in sharedmem (Normally sharedmem_size-4, since the base offset is normally 0 and offset-field is at sharedmem_size-4).
 
|-
 
|-
 
| 5
 
| 5
| u8 unk3: 0 = unknown, non-zero = unknown.
+
| u8, loop at end of buffer (0 = stop, non-zero = loop).
 
|}
 
|}
  

Revision as of 03:03, 9 October 2015

Request

Index Word Description
0 Header code [0x00030140]
1 u8, encoding (see here for types)
2 u8, sample rate (see here for types)
3 u32, base offset for audio data in sharedmem (Normally zero).
4 u32, size of the audio data in sharedmem (Normally sharedmem_size-4, since the base offset is normally 0 and offset-field is at sharedmem_size-4).
5 u8, loop at end of buffer (0 = stop, non-zero = loop).

Response

Index Word Description
0 Header code
1 Result code