MICU:StartSampling: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00100040] |- | 1 | u32 value |} =Response= {| class="wikitable" border="1" |- !..."
 
Steveice10 (talk | contribs)
 
(6 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|-
|-
| 0
| 0
| Header code [0x00100040]
| Header code [0x00030140]
|-
|-
| 1
| 1
| u32 value
| u8, [[MIC_Services#Encoding|Encoding]]
|-
| 2
| u8, [[MIC_Services#SampleRate|SampleRate]]
|-
| 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).
|}
|}


Line 24: Line 36:
| Result code
| Result code
|}
|}
=Description=
When the input value is 0, value 1 is written to an u8 MIC module state field. Otherwise, value 0 is written there. Normally the input value is non-zero.

Latest revision as of 07:26, 8 December 2015

Request

Index Word Description
0 Header code [0x00030140]
1 u8, Encoding
2 u8, SampleRate
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