[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]
HRESULT GetSoundEffectsOn(
long * pbOn // address of variable for sound effects setting
);
擷取是否啟用字元的音效設定。
- 傳回S_OK,表示作業成功。
-
pbOn
-
如果啟用字元的音效設定,則會接收 True 的變數位址,如果停用,False。
字元的音效設定會決定當您播放相關聯的動畫時,是否要播放當做角色一部分編譯的音效。 此設定受限於使用者 IAgentAudioOutputProperties::GetUsingSoundEffects中的全域音效設定。
另請參閱
IAgentCharacter::SetSoundEffectsOnIAgentAudioOutputProperties::GetUsingSoundEffects