語言

AudioTrack.StartThresholdInFrames 屬性

定義

回傳串流開始閾值。AudioTrack

public virtual int StartThresholdInFrames { [Android.Runtime.Register("getStartThresholdInFrames", "()I", "GetGetStartThresholdInFramesHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getStartThresholdInFrames", "()I", "GetGetStartThresholdInFramesHandler", ApiSince=31)>]
member this.StartThresholdInFrames : int

屬性值

目前的起始門檻(幀數值)。 這是介於 1 到 緩衝區容量之間的整數(參見 #getBufferCapacityInFrames()),若輸出匯在建立軌道後改變,可能會改變。

屬性

備註

回傳串流開始閾值。AudioTrack

串流開始閾值是指寫入音訊資料必須達到的緩衝區等級,才能在呼叫後 #play() 開始串流。 當 建立 時 AudioTrack ,串流開始的閾值即為以影格為單位的緩衝區容量。 如果緩衝區大小(以影格計)被減少 #setBufferSizeInFrames(int) 到小於起始閾值,則該值將被用作串流開始的門檻。

對於壓縮串流,框架大小被視為恰好一個位元組。

Java 文件 android.media.AudioTrack.getStartThresholdInFrames()。

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

適用於