语言

BluetoothLeAudioCodecConfig.Builder.SetSampleRate(Int32) 方法

定义

为蓝牙 LE 音频编解码器配置设置采样率。

[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

参数

sampleRate
Int32

的此编解码器。 值为 0 或以下值的组合: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

返回

同一个 Builder 实例。 此值不能为 null。

特性

注解

为蓝牙 LE 音频编解码器配置设置采样率。

Android 参考。android.bluetooth.BluetoothLeAudioCodecConfig.Builder.setSampleRate

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于