Język

BluetoothLeAudioCodecConfig.Builder.SetSampleRate(Int32) Method

Definition

Set sample rate for Bluetooth LE audio codec config.

[Android.Runtime.Register("setSampleRate", "(I)Landroid/bluetooth/BluetoothLeAudioCodecConfig$Builder;", "", ApiSince=33)]
public Android.Bluetooth.BluetoothLeAudioCodecConfig.Builder SetSampleRate(int sampleRate);
[<Android.Runtime.Register("setSampleRate", "(I)Landroid/bluetooth/BluetoothLeAudioCodecConfig$Builder;", "", ApiSince=33)>]
member this.SetSampleRate : int -> Android.Bluetooth.BluetoothLeAudioCodecConfig.Builder

Parameters

sampleRate
Int32

of this codec. Value is either 0 or a combination of the following: BluetoothLeAudioCodecConfig.SAMPLE_RATE_NONE; BluetoothLeAudioCodecConfig.SAMPLE_RATE_8000; BluetoothLeAudioCodecConfig.SAMPLE_RATE_11025; BluetoothLeAudioCodecConfig.SAMPLE_RATE_16000; BluetoothLeAudioCodecConfig.SAMPLE_RATE_22050; BluetoothLeAudioCodecConfig.SAMPLE_RATE_24000; BluetoothLeAudioCodecConfig.SAMPLE_RATE_32000; BluetoothLeAudioCodecConfig.SAMPLE_RATE_44100; BluetoothLeAudioCodecConfig.SAMPLE_RATE_48000; BluetoothLeAudioCodecConfig.SAMPLE_RATE_88200; BluetoothLeAudioCodecConfig.SAMPLE_RATE_96000; BluetoothLeAudioCodecConfig.SAMPLE_RATE_176400; BluetoothLeAudioCodecConfig.SAMPLE_RATE_192000; BluetoothLeAudioCodecConfig.SAMPLE_RATE_384000

Returns

the same Builder instance. This value cannot be null.

Attributes

Remarks

Set sample rate for Bluetooth LE audio codec config.

Android reference for android.bluetooth.BluetoothLeAudioCodecConfig.Builder.setSampleRate.

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