Difference between revisions of "MIC Shared Memory"

From 3dbrew
Jump to navigation Jump to search
(Format can vary, organize data into table.)
 
Line 1: Line 1:
The shared-memory for the MIC(microphone) module contains the audio data. The entire shared-memory contains audio data, except for the last u32. The last u32 contains an offset within this sharedmem. This offset is likely the end-offset of the audio data written by MIC module.
+
This is the shared memory used by the MIC service. It contains recorded audio data and the offset of the current data's end.
  
The format of this audio data is mono-channel with signed PCM16. The sampling rate is 16000Hz.
+
{| class="wikitable" border="1"
 +
|-
 +
!  Index Byte
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| sharedmem_size - 4
 +
| Audio data.
 +
|-
 +
| sharedmem_size - 4
 +
| 4
 +
| u32, Current audio end-offset.
 +
|}

Latest revision as of 03:47, 9 October 2015

This is the shared memory used by the MIC service. It contains recorded audio data and the offset of the current data's end.

Index Byte Size Description
0x0 sharedmem_size - 4 Audio data.
sharedmem_size - 4 4 u32, Current audio end-offset.