共用方式為


Volume 屬性

[與此頁面 相關的功能 DirectShow是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對Windows 10和Windows 11進行優化。 Microsoft 強烈建議新程式碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議盡可能重寫使用舊版 API 的現有程式碼,以使用新的 API。]

注意

此元件可用於 Microsoft Windows 2000、Windows XP 和 Windows Server 2003 作業系統。 它在後續版本中可能會變更或無法使用。

 

屬性 Volume 會設定或擷取音訊資料流程輸出的喇叭音量。

[ iVolume = ] MSWebDVD.Volume

傳回值

以小數位數傳回磁片區層級的衰減,以整數表示。

備註

此屬性是可讀寫的,預設值為 0。 完整磁片區為 0,而 10,000 則為無聲;小數位數為對數。 將所需的分貝層級乘以 100 (,例如 10,000 = 100 dB) 。