다음을 통해 공유


AudioTrack.WriteAsync Method

Definition

Overloads

WriteAsync(ByteBuffer, Int32, WriteMode)
WriteAsync(Byte[], Int32, Int32)
WriteAsync(Int16[], Int32, Int32)
WriteAsync(ByteBuffer, Int32, WriteMode, Int64)
WriteAsync(Byte[], Int32, Int32, WriteMode)
WriteAsync(Int16[], Int32, Int32, WriteMode)
WriteAsync(Single[], Int32, 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

audioData
ByteBuffer
sizeInBytes
Int32
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

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
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

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
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

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

audioData
ByteBuffer
sizeInBytes
Int32
writeMode
WriteMode
timestamp
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.

Applies to

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
sizeInBytes
Int32
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

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
sizeInShorts
Int32
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

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
sizeInFloats
Int32
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