AudioTrack.StartThresholdInFrames 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳串流開始閾值。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 所創建與分享的作品,並依授權條款所描述的使用進行修改。