語言

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

傳回

同一個建造者實例。 這個值不可能為零值。

屬性

備註

設定藍牙 LE 音訊編碼器的取樣率。

Android 參考資料。android.bluetooth.BluetoothLeAudioCodecConfig.Builder.setSampleRate

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於