• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_AudioBuffer
2
3
4## Overview
5
6The **OH_AudioBuffer** struct defines the configuration such as the size, type, and timestamp of audio data.
7
8**System capability**: SystemCapability.Multimedia.Media.AVScreenCapture
9
10**Since**
11
1210
13
14**Related Modules**
15
16[AVScreenCapture](_a_v_screen_capture.md)
17
18
19## Summary
20
21
22### Member Variables
23
24| Name| Description|
25| -------- | -------- |
26| [buf](#buf) | Defines the pointer to an audio buffer.|
27| [size](#size) | Defines the size of the audio buffer.|
28| [timestamp](#timestamp) | Defines the timestamp of the audio buffer.|
29| [type](#type) | Defines the type of the audio capture source.|
30
31
32## Member Variable Description
33
34
35### buf
36
37```
38uint8_t* OH_AudioBuffer::buf
39```
40
41**Description**
42
43Defines the pointer to an audio buffer.
44
45
46### size
47
48```
49int32_t OH_AudioBuffer::size
50```
51
52**Description**
53
54Defines the size of the audio buffer.
55
56
57### timestamp
58
59```
60int64_t OH_AudioBuffer::timestamp
61```
62
63**Description**
64
65Defines the timestamp of the audio buffer.
66
67
68### type
69
70```
71OH_AudioCaptureSourceType OH_AudioBuffer::type
72```
73
74**Description**
75
76Defines the type of the audio capture source.
77