AudioTrack.WriteAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
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
.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
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
.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
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
.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
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
.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
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
.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
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
.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |