AudioRecord.ReadAsync Method

Definition

Overloads

ReadAsync(ByteBuffer, Int32)
ReadAsync(ByteBuffer, Int32, Int32)
ReadAsync(Byte[], Int32, Int32)
ReadAsync(Int16[], Int32, Int32)
ReadAsync(Byte[], Int32, Int32, Int32)
ReadAsync(Int16[], Int32, Int32, Int32)
ReadAsync(Single[], Int32, Int32, Int32)

ReadAsync(ByteBuffer, Int32)

public System.Threading.Tasks.Task<int> ReadAsync (Java.Nio.ByteBuffer audioBuffer, int sizeInBytes);
member this.ReadAsync : Java.Nio.ByteBuffer * int -> System.Threading.Tasks.Task<int>

Parameters

audioBuffer
ByteBuffer
sizeInBytes
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReadAsync(ByteBuffer, Int32, Int32)

public System.Threading.Tasks.Task<int> ReadAsync (Java.Nio.ByteBuffer audioBuffer, int sizeInBytes, int readMode);
member this.ReadAsync : Java.Nio.ByteBuffer * int * int -> System.Threading.Tasks.Task<int>

Parameters

audioBuffer
ByteBuffer
sizeInBytes
Int32
readMode
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReadAsync(Byte[], Int32, Int32)

public System.Threading.Tasks.Task<int> ReadAsync (byte[] audioData, int offsetInBytes, int sizeInBytes);
member this.ReadAsync : byte[] * int * int -> System.Threading.Tasks.Task<int>

Parameters

audioData
Byte[]
offsetInBytes
Int32
sizeInBytes
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReadAsync(Int16[], Int32, Int32)

public System.Threading.Tasks.Task<int> ReadAsync (short[] audioData, int offsetInShorts, int sizeInShorts);
member this.ReadAsync : int16[] * int * int -> System.Threading.Tasks.Task<int>

Parameters

audioData
Int16[]
offsetInShorts
Int32
sizeInShorts
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReadAsync(Byte[], Int32, Int32, Int32)

public System.Threading.Tasks.Task<int> ReadAsync (byte[] audioData, int offsetInBytes, int sizeInBytes, int readMode);
member this.ReadAsync : byte[] * int * int * int -> System.Threading.Tasks.Task<int>

Parameters

audioData
Byte[]
offsetInBytes
Int32
sizeInBytes
Int32
readMode
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReadAsync(Int16[], Int32, Int32, Int32)

public System.Threading.Tasks.Task<int> ReadAsync (short[] audioData, int offsetInShorts, int sizeInShorts, int readMode);
member this.ReadAsync : int16[] * int * int * int -> System.Threading.Tasks.Task<int>

Parameters

audioData
Int16[]
offsetInShorts
Int32
sizeInShorts
Int32
readMode
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReadAsync(Single[], Int32, Int32, Int32)

public System.Threading.Tasks.Task<int> ReadAsync (float[] audioData, int offsetInFloats, int sizeInFloats, int readMode);
member this.ReadAsync : single[] * int * int * int -> System.Threading.Tasks.Task<int>

Parameters

audioData
Single[]
offsetInFloats
Int32
sizeInFloats
Int32
readMode
Int32

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to