-
Notifications
You must be signed in to change notification settings - Fork 0
/
AudioRecord.xml
2846 lines (2845 loc) · 196 KB
/
AudioRecord.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="AudioRecord" FullName="Android.Media.AudioRecord">
<TypeSignature Language="C#" Value="public class AudioRecord : Java.Lang.Object, Android.Media.IAudioRecordingMonitor, Android.Media.IAudioRouting, Android.Media.IMicrophoneDirection, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AudioRecord extends Java.Lang.Object implements class Android.Media.IAudioRecordingMonitor, class Android.Media.IAudioRouting, class Android.Media.IMicrophoneDirection, class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Media.AudioRecord" />
<TypeSignature Language="F#" Value="type AudioRecord = class
 inherit Object
 interface IAudioRecordingMonitor
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable
 interface IAudioRouting
 interface IMicrophoneDirection" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Media.IAudioRecordingMonitor</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Android.Media.IAudioRouting</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Android.Media.IMicrophoneDirection</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/media/AudioRecord", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/media/AudioRecord", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="3">
<summary>The AudioRecord class manages the audio resources for Java applications
to record audio from the audio input hardware of the platform.</summary>
<remarks>
<para>The AudioRecord class manages the audio resources for Java applications
to record audio from the audio input hardware of the platform. This is
achieved by "pulling" (reading) the data from the AudioRecord object. The
application is responsible for polling the AudioRecord object in time using one of
the following three methods: <c>#read(byte[],int, int)</c>, <c>#read(short[], int, int)</c>
or <c>#read(ByteBuffer, int)</c>. The choice of which method to use will be based
on the audio data storage format that is the most convenient for the user of AudioRecord.</para>
<para>Upon creation, an AudioRecord object initializes its associated audio buffer that it will
fill with the new audio data. The size of this buffer, specified during the construction,
determines how long an AudioRecord can record before "over-running" data that has not
been read yet. Data should be read from the audio hardware in chunks of sizes inferior to
the total recording buffer size.</para>
<para>Applications creating an AudioRecord instance need
<c>android.Manifest.permission#RECORD_AUDIO</c> or the Builder will throw
<c>java.lang.UnsupportedOperationException</c> on
<c>android.media.AudioRecord.Builder#build build()</c>,
and the constructor will return an instance in state
<c>#STATE_UNINITIALIZED</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord" title="Reference documentation">Java documentation for <code>android.media.AudioRecord</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected AudioRecord (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Media.AudioRecord.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Android.Media.AudioRecord : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.AudioRecord" Usage="new Android.Media.AudioRecord (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">A <see cref="T:System.IntPtr" />containing a Java Native Interface (JNI) object reference.</param>
<param name="transfer">A <see cref="T:Android.Runtime.JniHandleOwnership" />indicating how to handle <paramref name="javaReference" /></param>
<summary>A constructor used when creating managed representations of JNI objects; called by the runtime.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public AudioRecord (Android.Media.AudioSource audioSource, int sampleRateInHz, Android.Media.ChannelIn channelConfig, Android.Media.Encoding audioFormat, int bufferSizeInBytes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype Android.Media.AudioSource audioSource, int32 sampleRateInHz, valuetype Android.Media.ChannelIn channelConfig, valuetype Android.Media.Encoding audioFormat, int32 bufferSizeInBytes) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Media.AudioRecord.#ctor(Android.Media.AudioSource,System.Int32,Android.Media.ChannelIn,Android.Media.Encoding,System.Int32)" />
<MemberSignature Language="F#" Value="new Android.Media.AudioRecord : Android.Media.AudioSource * int * Android.Media.ChannelIn * Android.Media.Encoding * int -> Android.Media.AudioRecord" Usage="new Android.Media.AudioRecord (audioSource, sampleRateInHz, channelConfig, audioFormat, bufferSizeInBytes)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(IIIII)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(IIIII)V", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.RequiresPermission("android.permission.RECORD_AUDIO")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.RequiresPermission("android.permission.RECORD_AUDIO")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="audioSource" Type="Android.Media.AudioSource">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="sampleRateInHz" Type="System.Int32" />
<Parameter Name="channelConfig" Type="Android.Media.ChannelIn">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="audioFormat" Type="Android.Media.Encoding">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="bufferSizeInBytes" Type="System.Int32" />
</Parameters>
<Docs>
<param name="audioSource">the recording source.
See <c>MediaRecorder.AudioSource</c> for the recording source definitions.</param>
<param name="sampleRateInHz">the sample rate expressed in Hertz. 44100Hz is currently the only
rate that is guaranteed to work on all devices, but other rates such as 22050,
16000, and 11025 may work on some devices.
<c>AudioFormat#SAMPLE_RATE_UNSPECIFIED</c> means to use a route-dependent value
which is usually the sample rate of the source.
<c>#getSampleRate()</c> can be used to retrieve the actual sample rate chosen.</param>
<param name="channelConfig">describes the configuration of the audio channels.
See <c>AudioFormat#CHANNEL_IN_MONO</c> and
<c>AudioFormat#CHANNEL_IN_STEREO</c>. <c>AudioFormat#CHANNEL_IN_MONO</c> is guaranteed
to work on all devices.</param>
<param name="audioFormat">the format in which the audio data is to be returned.
See <c>AudioFormat#ENCODING_PCM_8BIT</c>, <c>AudioFormat#ENCODING_PCM_16BIT</c>,
and <c>AudioFormat#ENCODING_PCM_FLOAT</c>.</param>
<param name="bufferSizeInBytes">the total size (in bytes) of the buffer where audio data is written
to during the recording. New audio data can be read from this buffer in smaller chunks
than this size. See <c>#getMinBufferSize(int, int, int)</c> to determine the minimum
required buffer size for the successful creation of an AudioRecord instance. Using values
smaller than getMinBufferSize() will result in an initialization failure.</param>
<summary>Class constructor.</summary>
<remarks>
<para>Class constructor.
Though some invalid parameters will result in an <c>IllegalArgumentException</c> exception,
other errors do not. Thus you should call <c>#getState()</c> immediately after construction
to confirm that the object is usable.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#AudioRecord(int,%20int,%20int,%20int,%20int)" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.AudioRecord(int, int, int, int, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
<exception cref="T:Java.Lang.IllegalArgumentException" />
</Docs>
</Member>
<Member MemberName="ActiveMicrophones">
<MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IList<Android.Media.MicrophoneInfo>? ActiveMicrophones { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IList`1<class Android.Media.MicrophoneInfo> ActiveMicrophones" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.ActiveMicrophones" />
<MemberSignature Language="F#" Value="member this.ActiveMicrophones : System.Collections.Generic.IList<Android.Media.MicrophoneInfo>" Usage="Android.Media.AudioRecord.ActiveMicrophones" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getActiveMicrophones", "()Ljava/util/List;", "GetGetActiveMicrophonesHandler", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getActiveMicrophones", "()Ljava/util/List;", "GetGetActiveMicrophonesHandler", ApiSince=28)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IList<Android.Media.MicrophoneInfo></ReturnType>
</ReturnValue>
<Docs>
<summary>Returns a lists of <c>MicrophoneInfo</c> representing the active microphones.</summary>
<value>a lists of <c>MicrophoneInfo</c> representing the active microphones.</value>
<remarks>
<para>Returns a lists of <c>MicrophoneInfo</c> representing the active microphones.
By querying channel mapping for each active microphone, developer can know how
the microphone is used by each channels or a capture stream.
Note that the information about the active microphones may change during a recording.
See <c>AudioManager#registerAudioDeviceCallback</c> to be notified of changes
in the audio devices, querying the active microphones then will return the latest
information.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getActiveMicrophones()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getActiveMicrophones()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ActiveRecordingConfiguration">
<MemberSignature Language="C#" Value="public virtual Android.Media.AudioRecordingConfiguration? ActiveRecordingConfiguration { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.Media.AudioRecordingConfiguration ActiveRecordingConfiguration" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.ActiveRecordingConfiguration" />
<MemberSignature Language="F#" Value="member this.ActiveRecordingConfiguration : Android.Media.AudioRecordingConfiguration" Usage="Android.Media.AudioRecord.ActiveRecordingConfiguration" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Android.Media.IAudioRecordingMonitor.ActiveRecordingConfiguration</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android29.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android29.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getActiveRecordingConfiguration", "()Landroid/media/AudioRecordingConfiguration;", "GetGetActiveRecordingConfigurationHandler", ApiSince=29)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getActiveRecordingConfiguration", "()Landroid/media/AudioRecordingConfiguration;", "GetGetActiveRecordingConfigurationHandler", ApiSince=29)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Media.AudioRecordingConfiguration</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the current active audio recording for this audio recorder.</summary>
<value>a valid <c>AudioRecordingConfiguration</c> if this recorder is active
or null otherwise.</value>
<remarks>
<para>Returns the current active audio recording for this audio recorder.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getActiveRecordingConfiguration()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getActiveRecordingConfiguration()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AddOnRoutingChangedListener">
<MemberSignature Language="C#" Value="public virtual void AddOnRoutingChangedListener (Android.Media.AudioRecord.IOnRoutingChangedListener? listener, Android.OS.Handler? handler);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void AddOnRoutingChangedListener(class Android.Media.AudioRecord/IOnRoutingChangedListener listener, class Android.OS.Handler handler) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Media.AudioRecord.AddOnRoutingChangedListener(Android.Media.AudioRecord.IOnRoutingChangedListener,Android.OS.Handler)" />
<MemberSignature Language="F#" Value="abstract member AddOnRoutingChangedListener : Android.Media.AudioRecord.IOnRoutingChangedListener * Android.OS.Handler -> unit
override this.AddOnRoutingChangedListener : Android.Media.AudioRecord.IOnRoutingChangedListener * Android.OS.Handler -> unit" Usage="audioRecord.AddOnRoutingChangedListener (listener, handler)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRecord$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRecord_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRecord$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRecord_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="listener" Type="Android.Media.AudioRecord+IOnRoutingChangedListener" />
<Parameter Name="handler" Type="Android.OS.Handler" />
</Parameters>
<Docs>
<param name="listener">The <c>AudioRouting.OnRoutingChangedListener</c> interface to receive
notifications of rerouting events.</param>
<param name="handler">Specifies the <c>Handler</c> object for the thread on which to execute
the callback. If <code>null</code>, the <c>Handler</c> associated with the main
<c>Looper</c> will be used.</param>
<summary>Adds an <c>AudioRouting.OnRoutingChangedListener</c> to receive notifications of
routing changes on this AudioRecord.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#addOnRoutingChangedListener(android.media.OnRoutingChangedListener,%20android.os.Handler)" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.addOnRoutingChangedListener(android.media.OnRoutingChangedListener, android.os.Handler)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AddOnRoutingChangedListener">
<MemberSignature Language="C#" Value="public virtual void AddOnRoutingChangedListener (Android.Media.IAudioRoutingOnRoutingChangedListener? listener, Android.OS.Handler? handler);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void AddOnRoutingChangedListener(class Android.Media.IAudioRoutingOnRoutingChangedListener listener, class Android.OS.Handler handler) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Media.AudioRecord.AddOnRoutingChangedListener(Android.Media.IAudioRoutingOnRoutingChangedListener,Android.OS.Handler)" />
<MemberSignature Language="F#" Value="abstract member AddOnRoutingChangedListener : Android.Media.IAudioRoutingOnRoutingChangedListener * Android.OS.Handler -> unit
override this.AddOnRoutingChangedListener : Android.Media.IAudioRoutingOnRoutingChangedListener * Android.OS.Handler -> unit" Usage="audioRecord.AddOnRoutingChangedListener (listener, handler)" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Android.Media.IAudioRouting.AddOnRoutingChangedListener(Android.Media.IAudioRoutingOnRoutingChangedListener,Android.OS.Handler)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRouting_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("addOnRoutingChangedListener", "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V", "GetAddOnRoutingChangedListener_Landroid_media_AudioRouting_OnRoutingChangedListener_Landroid_os_Handler_Handler", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="listener" Type="Android.Media.IAudioRoutingOnRoutingChangedListener" />
<Parameter Name="handler" Type="Android.OS.Handler" />
</Parameters>
<Docs>
<param name="listener">The <c>AudioRouting.OnRoutingChangedListener</c> interface to receive
notifications of rerouting events.</param>
<param name="handler">Specifies the <c>Handler</c> object for the thread on which to execute
the callback. If <code>null</code>, the <c>Handler</c> associated with the main
<c>Looper</c> will be used.</param>
<summary>Adds an <c>AudioRouting.OnRoutingChangedListener</c> to receive notifications of
routing changes on this AudioRecord.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#addOnRoutingChangedListener(android.media.OnRoutingChangedListener,%20android.os.Handler)" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.addOnRoutingChangedListener(android.media.OnRoutingChangedListener, android.os.Handler)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AudioFormat">
<MemberSignature Language="C#" Value="public virtual Android.Media.Encoding AudioFormat { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Android.Media.Encoding AudioFormat" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.AudioFormat" />
<MemberSignature Language="F#" Value="member this.AudioFormat : Android.Media.Encoding" Usage="Android.Media.AudioRecord.AudioFormat" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAudioFormat", "()I", "GetGetAudioFormatHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAudioFormat", "()I", "GetGetAudioFormatHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Media.Encoding</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the configured audio data encoding.</summary>
<value>To be added.</value>
<remarks>
<para>Returns the configured audio data encoding. See <c>AudioFormat#ENCODING_PCM_8BIT</c>,
<c>AudioFormat#ENCODING_PCM_16BIT</c>, and <c>AudioFormat#ENCODING_PCM_FLOAT</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getAudioFormat()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getAudioFormat()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="AudioSessionId">
<MemberSignature Language="C#" Value="public virtual int AudioSessionId { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 AudioSessionId" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.AudioSessionId" />
<MemberSignature Language="F#" Value="member this.AudioSessionId : int" Usage="Android.Media.AudioRecord.AudioSessionId" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAudioSessionId", "()I", "GetGetAudioSessionIdHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAudioSessionId", "()I", "GetGetAudioSessionIdHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the audio session ID.</summary>
<value>the ID of the audio session this AudioRecord belongs to.</value>
<remarks>
<para>Returns the audio session ID.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getAudioSessionId()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getAudioSessionId()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 16" />
</Docs>
</Member>
<Member MemberName="AudioSource">
<MemberSignature Language="C#" Value="public virtual Android.Media.AudioSource AudioSource { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Android.Media.AudioSource AudioSource" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.AudioSource" />
<MemberSignature Language="F#" Value="member this.AudioSource : Android.Media.AudioSource" Usage="Android.Media.AudioRecord.AudioSource" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAudioSource", "()I", "GetGetAudioSourceHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAudioSource", "()I", "GetGetAudioSourceHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Media.AudioSource</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the audio recording source.</summary>
<value>To be added.</value>
<remarks>
<para>Returns the audio recording source.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getAudioSource()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getAudioSource()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="BufferSizeInFrames">
<MemberSignature Language="C#" Value="public virtual int BufferSizeInFrames { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 BufferSizeInFrames" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.BufferSizeInFrames" />
<MemberSignature Language="F#" Value="member this.BufferSizeInFrames : int" Usage="Android.Media.AudioRecord.BufferSizeInFrames" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getBufferSizeInFrames", "()I", "GetGetBufferSizeInFramesHandler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getBufferSizeInFrames", "()I", "GetGetBufferSizeInFramesHandler", ApiSince=23)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the frame count of the native <c>AudioRecord</c> buffer.</summary>
<value>current size in frames of the <c>AudioRecord</c> buffer.</value>
<remarks>
<para>Returns the frame count of the native <c>AudioRecord</c> buffer.
This is greater than or equal to the bufferSizeInBytes converted to frame units
specified in the <c>AudioRecord</c> constructor or Builder.
The native frame count may be enlarged to accommodate the requirements of the
source on creation or if the <c>AudioRecord</c>
is subsequently rerouted.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getBufferSizeInFrames()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getBufferSizeInFrames()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ChannelConfiguration">
<MemberSignature Language="C#" Value="public virtual Android.Media.ChannelIn ChannelConfiguration { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Android.Media.ChannelIn ChannelConfiguration" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.ChannelConfiguration" />
<MemberSignature Language="F#" Value="member this.ChannelConfiguration : Android.Media.ChannelIn" Usage="Android.Media.AudioRecord.ChannelConfiguration" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getChannelConfiguration", "()I", "GetGetChannelConfigurationHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getChannelConfiguration", "()I", "GetGetChannelConfigurationHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Media.ChannelIn</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the configured channel position mask.</summary>
<value>To be added.</value>
<remarks>
<para>Returns the configured channel position mask.</para>
<para>See <c>AudioFormat#CHANNEL_IN_MONO</c>
and <c>AudioFormat#CHANNEL_IN_STEREO</c>.
This method may return <c>AudioFormat#CHANNEL_INVALID</c> if
a channel index mask is used.
Consider <c>#getFormat()</c> instead, to obtain an <c>AudioFormat</c>,
which contains both the channel position mask and the channel index mask.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getChannelConfiguration()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getChannelConfiguration()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="ChannelCount">
<MemberSignature Language="C#" Value="public virtual int ChannelCount { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 ChannelCount" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.ChannelCount" />
<MemberSignature Language="F#" Value="member this.ChannelCount : int" Usage="Android.Media.AudioRecord.ChannelCount" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getChannelCount", "()I", "GetGetChannelCountHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getChannelCount", "()I", "GetGetChannelCountHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the configured number of channels.</summary>
<value>To be added.</value>
<remarks>
<para>Returns the configured number of channels.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getChannelCount()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getChannelCount()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="Format">
<MemberSignature Language="C#" Value="public virtual Android.Media.AudioFormat Format { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.Media.AudioFormat Format" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.Format" />
<MemberSignature Language="F#" Value="member this.Format : Android.Media.AudioFormat" Usage="Android.Media.AudioRecord.Format" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getFormat", "()Landroid/media/AudioFormat;", "GetGetFormatHandler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getFormat", "()Landroid/media/AudioFormat;", "GetGetFormatHandler", ApiSince=23)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Media.AudioFormat</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the configured <c>AudioRecord</c> format.</summary>
<value>an <c>AudioFormat</c> containing the
<c>AudioRecord</c> parameters at the time of configuration.</value>
<remarks>
<para>Returns the configured <c>AudioRecord</c> format.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getFormat()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getFormat()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetMinBufferSize">
<MemberSignature Language="C#" Value="public static int GetMinBufferSize (int sampleRateInHz, Android.Media.ChannelIn channelConfig, Android.Media.Encoding audioFormat);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetMinBufferSize(int32 sampleRateInHz, valuetype Android.Media.ChannelIn channelConfig, valuetype Android.Media.Encoding audioFormat) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Media.AudioRecord.GetMinBufferSize(System.Int32,Android.Media.ChannelIn,Android.Media.Encoding)" />
<MemberSignature Language="F#" Value="static member GetMinBufferSize : int * Android.Media.ChannelIn * Android.Media.Encoding -> int" Usage="Android.Media.AudioRecord.GetMinBufferSize (sampleRateInHz, channelConfig, audioFormat)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getMinBufferSize", "(III)I", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getMinBufferSize", "(III)I", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sampleRateInHz" Type="System.Int32" />
<Parameter Name="channelConfig" Type="Android.Media.ChannelIn">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="audioFormat" Type="Android.Media.Encoding">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="sampleRateInHz">the sample rate expressed in Hertz.
<c>AudioFormat#SAMPLE_RATE_UNSPECIFIED</c> is not permitted.</param>
<param name="channelConfig">describes the configuration of the audio channels.
See <c>AudioFormat#CHANNEL_IN_MONO</c> and
<c>AudioFormat#CHANNEL_IN_STEREO</c></param>
<param name="audioFormat">the format in which the audio data is represented.
See <c>AudioFormat#ENCODING_PCM_16BIT</c>.</param>
<summary>Returns the minimum buffer size required for the successful creation of an AudioRecord
object, in byte units.</summary>
<returns>
<c>#ERROR_BAD_VALUE</c> if the recording parameters are not supported by the
hardware, or an invalid parameter was passed,
or <c>#ERROR</c> if the implementation was unable to query the hardware for its
input properties,
or the minimum buffer size expressed in bytes.</returns>
<remarks>
<para>Returns the minimum buffer size required for the successful creation of an AudioRecord
object, in byte units.
Note that this size doesn't guarantee a smooth recording under load, and higher values
should be chosen according to the expected frequency at which the AudioRecord instance
will be polled for new data.
See <c>#AudioRecord(int, int, int, int, int)</c> for more information on valid
configuration values.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getMinBufferSize(int,%20int,%20int)" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getMinBufferSize(int, int, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
<altmember cref="C:Android.Media.AudioRecord(Android.Media.AudioSource, System.Int32, System.Int32, System.Int32, System.Int32)" />
</Docs>
</Member>
<Member MemberName="GetTimestamp">
<MemberSignature Language="C#" Value="public virtual int GetTimestamp (Android.Media.AudioTimestamp outTimestamp, Android.Media.AudioTimebase timebase);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 GetTimestamp(class Android.Media.AudioTimestamp outTimestamp, valuetype Android.Media.AudioTimebase timebase) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Media.AudioRecord.GetTimestamp(Android.Media.AudioTimestamp,Android.Media.AudioTimebase)" />
<MemberSignature Language="F#" Value="abstract member GetTimestamp : Android.Media.AudioTimestamp * Android.Media.AudioTimebase -> int
override this.GetTimestamp : Android.Media.AudioTimestamp * Android.Media.AudioTimebase -> int" Usage="audioRecord.GetTimestamp (outTimestamp, timebase)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getTimestamp", "(Landroid/media/AudioTimestamp;I)I", "GetGetTimestamp_Landroid_media_AudioTimestamp_IHandler", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getTimestamp", "(Landroid/media/AudioTimestamp;I)I", "GetGetTimestamp_Landroid_media_AudioTimestamp_IHandler", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="outTimestamp" Type="Android.Media.AudioTimestamp" />
<Parameter Name="timebase" Type="Android.Media.AudioTimebase">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="outTimestamp">a caller provided non-null AudioTimestamp instance,
which is updated with the AudioRecord frame delivery information upon success.</param>
<param name="timebase">one of
<c>AudioTimestamp#TIMEBASE_BOOTTIME AudioTimestamp.TIMEBASE_BOOTTIME</c> or
<c>AudioTimestamp#TIMEBASE_MONOTONIC AudioTimestamp.TIMEBASE_MONOTONIC</c>,
used to select the clock for the AudioTimestamp time.</param>
<summary>Poll for an <c>AudioTimestamp</c> on demand.</summary>
<returns>
<c>#SUCCESS</c> if a timestamp is available,
or <c>#ERROR_INVALID_OPERATION</c> if a timestamp not available.</returns>
<remarks>
<para>Poll for an <c>AudioTimestamp</c> on demand.</para>
<para>The AudioTimestamp reflects the frame delivery information at
the earliest point available in the capture pipeline.</para>
<para>Calling <c>#startRecording()</c> following a <c>#stop()</c> will reset
the frame count to 0.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getTimestamp(android.media.AudioTimestamp,%20int)" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getTimestamp(android.media.AudioTimestamp, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="IsPrivacySensitive">
<MemberSignature Language="C#" Value="public virtual bool IsPrivacySensitive { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsPrivacySensitive" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.IsPrivacySensitive" />
<MemberSignature Language="F#" Value="member this.IsPrivacySensitive : bool" Usage="Android.Media.AudioRecord.IsPrivacySensitive" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android30.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android30.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("isPrivacySensitive", "()Z", "GetIsPrivacySensitiveHandler", ApiSince=30)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("isPrivacySensitive", "()Z", "GetIsPrivacySensitiveHandler", ApiSince=30)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns whether this AudioRecord is marked as privacy sensitive or not.</summary>
<value>true if privacy sensitive, false otherwise</value>
<remarks>
<para>Returns whether this AudioRecord is marked as privacy sensitive or not.</para>
<para>See <c>Builder#setPrivacySensitive(boolean)</c></para>
<para />
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#isPrivacySensitive()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.isPrivacySensitive()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Android.Media.AudioRecord.JniPeerMembers" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Java.Interop.IJavaPeerable.JniPeerMembers</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="LogSessionId">
<MemberSignature Language="C#" Value="public virtual Android.Media.Metrics.LogSessionId LogSessionId { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.Media.Metrics.LogSessionId LogSessionId" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.LogSessionId" />
<MemberSignature Language="F#" Value="member this.LogSessionId : Android.Media.Metrics.LogSessionId with get, set" Usage="Android.Media.AudioRecord.LogSessionId" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android31.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android31.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getLogSessionId", "()Landroid/media/metrics/LogSessionId;", "GetGetLogSessionIdHandler", ApiSince=31)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getLogSessionId", "()Landroid/media/metrics/LogSessionId;", "GetGetLogSessionIdHandler", ApiSince=31)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: Android.Runtime.Register("setLogSessionId", "(Landroid/media/metrics/LogSessionId;)V", "GetSetLogSessionId_Landroid_media_metrics_LogSessionId_Handler", ApiSince=31)]</AttributeName>
<AttributeName Language="F#">[<set: Android.Runtime.Register("setLogSessionId", "(Landroid/media/metrics/LogSessionId;)V", "GetSetLogSessionId_Landroid_media_metrics_LogSessionId_Handler", ApiSince=31)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: System.Runtime.Versioning.SupportedOSPlatform("android31.0")]</AttributeName>
<AttributeName Language="F#">[<set: System.Runtime.Versioning.SupportedOSPlatform("android31.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Media.Metrics.LogSessionId</ReturnType>
</ReturnValue>
<Docs>
<param name="logSessionId">a <c>LogSessionId</c> instance which is used to
identify this object to the metrics service. Proper generated
Ids must be obtained from the Java metrics service and should
be considered opaque. Use
<c>LogSessionId#LOG_SESSION_ID_NONE</c> to remove the
logSessionId association.</param>
<summary>Returns the <c>LogSessionId</c>. -or- Sets a <c>LogSessionId</c> instance to this AudioRecord for metrics collection.</summary>
<value>To be added.</value>
<remarks>
<para>Property getter documentation:</para>
<para>Returns the <c>LogSessionId</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#getLogSessionId()" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.getLogSessionId()</code>.</a>
</format>
</para>
<para>Property setter documentation:</para>
<para>Sets a <c>LogSessionId</c> instance to this AudioRecord for metrics collection.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/media/AudioRecord#setLogSessionId(android.media.metrics.LogSessionId)" title="Reference documentation">Java documentation for <code>android.media.AudioRecord.setLogSessionId(android.media.metrics.LogSessionId)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="MarkerReached">
<MemberSignature Language="C#" Value="public event EventHandler<Android.Media.AudioRecord.MarkerReachedEventArgs> MarkerReached;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class Android.Media.AudioRecord/MarkerReachedEventArgs> MarkerReached" />
<MemberSignature Language="DocId" Value="E:Android.Media.AudioRecord.MarkerReached" />
<MemberSignature Language="F#" Value="member this.MarkerReached : EventHandler<Android.Media.AudioRecord.MarkerReachedEventArgs> " Usage="member this.MarkerReached : System.EventHandler<Android.Media.AudioRecord.MarkerReachedEventArgs> " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler<Android.Media.AudioRecord+MarkerReachedEventArgs></ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Metrics">
<MemberSignature Language="C#" Value="public virtual Android.OS.PersistableBundle? Metrics { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.OS.PersistableBundle Metrics" />
<MemberSignature Language="DocId" Value="P:Android.Media.AudioRecord.Metrics" />
<MemberSignature Language="F#" Value="member this.Metrics : Android.OS.PersistableBundle" Usage="Android.Media.AudioRecord.Metrics" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getMetrics", "()Landroid/os/PersistableBundle;", "GetGetMetricsHandler", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getMetrics", "()Landroid/os/PersistableBundle;", "GetGetMetricsHandler", ApiSince=28)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.OS.PersistableBundle</ReturnType>
</ReturnValue>
<Docs>
<summary>Return Metrics data about the current AudioTrack instance.</summary>
<value>a <c>PersistableBundle</c> containing the set of attributes and values
available for the media being handled by this instance of AudioRecord
The attributes are descibed in <c>MetricsConstants</c>.
Additional vendor-specific fields may also be present in