共用方式為


MediaFormat.CreateAudioFormat(String, Int32, Int32) Method

Definition

Creates a minimal audio format.

[Android.Runtime.Register("createAudioFormat", "(Ljava/lang/String;II)Landroid/media/MediaFormat;", "")]
public static Android.Media.MediaFormat CreateAudioFormat (string mime, int sampleRate, int channelCount);
[<Android.Runtime.Register("createAudioFormat", "(Ljava/lang/String;II)Landroid/media/MediaFormat;", "")>]
static member CreateAudioFormat : string * int * int -> Android.Media.MediaFormat

Parameters

mime
String

The mime type of the content.

sampleRate
Int32

The sampling rate of the content.

channelCount
Int32

The number of audio channels in the content.

Returns

Attributes

Remarks

Creates a minimal audio format.

Java documentation for android.media.MediaFormat.createAudioFormat(java.lang.String, int, int).

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