AudioTrack.WriteAsync AudioTrack.WriteAsync Method

Definition

Overloads

WriteAsync(Int16[], Int32, Int32, WriteMode) WriteAsync(Int16[], Int32, Int32, WriteMode)
WriteAsync(ByteBuffer, Int32, WriteMode) WriteAsync(ByteBuffer, Int32, WriteMode)
WriteAsync(Byte[], Int32, Int32) WriteAsync(Byte[], Int32, Int32)
WriteAsync(Int16[], Int32, Int32) WriteAsync(Int16[], Int32, Int32)
WriteAsync(ByteBuffer, Int32, WriteMode, Int64) WriteAsync(ByteBuffer, Int32, WriteMode, Int64)
WriteAsync(Byte[], Int32, Int32, WriteMode) WriteAsync(Byte[], Int32, Int32, WriteMode)
WriteAsync(Single[], Int32, Int32, WriteMode) WriteAsync(Single[], Int32, Int32, WriteMode)

WriteAsync(Int16[], Int32, Int32, WriteMode) WriteAsync(Int16[], Int32, Int32, WriteMode)

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

Parameters

audioData
Int16[]
offsetInShorts
Int32 Int32
sizeInShorts
Int32 Int32
writeMode
WriteMode WriteMode

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.

WriteAsync(ByteBuffer, Int32, WriteMode) WriteAsync(ByteBuffer, Int32, WriteMode)

public System.Threading.Tasks.Task<int> WriteAsync (Java.Nio.ByteBuffer audioData, int sizeInBytes, Android.Media.WriteMode writeMode);
member this.WriteAsync : Java.Nio.ByteBuffer * int * Android.Media.WriteMode -> System.Threading.Tasks.Task<int>

Parameters

sizeInBytes
Int32 Int32
writeMode
WriteMode WriteMode

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.

WriteAsync(Byte[], Int32, Int32) WriteAsync(Byte[], Int32, Int32)

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

Parameters

audioData
Byte[]
offsetInBytes
Int32 Int32
sizeInBytes
Int32 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.

WriteAsync(Int16[], Int32, Int32) WriteAsync(Int16[], Int32, Int32)

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

Parameters

audioData
Int16[]
offsetInShorts
Int32 Int32
sizeInShorts
Int32 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.

WriteAsync(ByteBuffer, Int32, WriteMode, Int64) WriteAsync(ByteBuffer, Int32, WriteMode, Int64)

public System.Threading.Tasks.Task<int> WriteAsync (Java.Nio.ByteBuffer audioData, int sizeInBytes, Android.Media.WriteMode writeMode, long timestamp);
member this.WriteAsync : Java.Nio.ByteBuffer * int * Android.Media.WriteMode * int64 -> System.Threading.Tasks.Task<int>

Parameters

sizeInBytes
Int32 Int32
writeMode
WriteMode WriteMode
timestamp
Int64 Int64

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.

WriteAsync(Byte[], Int32, Int32, WriteMode) WriteAsync(Byte[], Int32, Int32, WriteMode)

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

Parameters

audioData
Byte[]
offsetInBytes
Int32 Int32
sizeInBytes
Int32 Int32
writeMode
WriteMode WriteMode

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.

WriteAsync(Single[], Int32, Int32, WriteMode) WriteAsync(Single[], Int32, Int32, WriteMode)

public System.Threading.Tasks.Task<int> WriteAsync (float[] audioData, int offsetInFloats, int sizeInFloats, Android.Media.WriteMode writeMode);
member this.WriteAsync : single[] * int * int * Android.Media.WriteMode -> System.Threading.Tasks.Task<int>

Parameters

audioData
Single[]
offsetInFloats
Int32 Int32
sizeInFloats
Int32 Int32
writeMode
WriteMode WriteMode

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