Skip to content

H7SoundController

Class in MMH7Game · MMH7Game.H7SoundController · native, config

Object › H7SoundController

Using it from Lua
h7.find_all("H7SoundController")            -- live instances
h7.find_class("MMH7Game.H7SoundController")   -- the class
h7.hook("MMH7Game.H7SoundController.AdventureMapCellInput", fn)

Properties

NameTypeNotes
cAmbientSoundSettingboolconfig, protected
cAmbientSoundVolumefloatconfig, protected
cMasterSettingboolconfig, protected
cMasterVolumefloatglobalconfig, protected
cMusicSettingboolconfig, protected
cMusicVolumefloatconfig, protected
cSoundSettingboolconfig, protected
cSoundVolumefloatconfig, protected
cVoiceOverSettingboolconfig, protected
cVoiceOverVolumefloatconfig, protected
mAcademyTownIsPlayingboolprotected
mAdventureControllerH7AdventureControllertransient, protected
mBasicAmbientStopAkEventprotected
mBlockMasterUpdateboolprotected
mCameraH7Cameratransient, protected
mCombatMusicAkEventprotected
mCombatMusicIsPlayingboolprotected
mCurrentAmbientEventAkEventprotected
mCurrentAttenuationDistancefloatprotected
mCurrentMapTypestringprotected
mCurrentMusicEventAkEventprotected
mCurrentTileNamenameprotected
mCurrentTownScreenFactionstringprotected
mCurrentUnitUndergroundNamenameprotected
mDefeatMusicAkEventprotected
mDungeonTownIsPlayingboolprotected
mExecMusicTargetTimefloatprotected
mFortressTownIsPlayingboolprotected
mFoWAmbientEventAkEventprotected
mHavenTownIsPlayingboolprotected
mInCinematicModeboolprotected
mIsMusicPlayingboolprotected
mLastAmbientEventAkEventprotected
mLastMusicEventAkEventprotected
mLastVisitedCellH7AdventureLayerCellPropertyprotected
mMainMusicAkEventprotected
mMusicDuckingValuefloatprotected
mMusicIsPlayingboolprotected
mNecropolisTownIsPlayingboolprotected
mNextTurnboolprotected
mPauseAllMusicAkEventprotected
mPlayAcademyTownMusicAkEventprotected
mPlayAITurnMusicAkEventprotected
mPlayCreditsMusicAkEventprotected
mPlayDungeonTownMusicAkEventprotected
mPlayedMusicEventsarray<AkEvent>protected
mPlayFortressTownMusicAkEventprotected
mPlayHavenTownMusicAkEventprotected
mPlayNecropolisTownMusicAkEventprotected
mPlayStrongholdTownMusicAkEventprotected
mPlaySylvanTownMusicAkEventprotected
mResumeAcademyTownMusicAkEventprotected
mResumeAITurnMusicAkEventprotected
mResumeCombatMusicAkEventprotected
mResumeDungeonTownMusicAkEventprotected
mResumeFortressTownMusicAkEventprotected
mResumeHavenTownMusicAkEventprotected
mResumeMainMusicAkEventprotected
mResumeMusicEventAkEventprotected
mResumeNecropolisTownMusicAkEventprotected
mResumeStrongholdTownMusicAkEventprotected
mResumeSylvanTownMusicAkEventprotected
mShouldUpdateConfigboolprotected
mStopAllCombatMusicAkEventprotected
mStopAllExceptMusicAkEventprotected
mStopAllMusicAkEventprotected
mStrongholdTownIsPlayingboolprotected
mSylvanTownIsPlayingboolprotected
mVictoryMusicAkEventprotected
mVoiceOverStopAkEventprotected

Functions

NameDeclaration
AdventureMapCellInputfunction AdventureMapCellInput(optional H7AdventureMapCell hoverCell = none)
Destroyedsingular event Destroyed()
EnableAmbientChannelfunction EnableAmbientChannel(bool Enable)
EnableSoundChannelfunction EnableSoundChannel(bool Enable)
EnableSoundCutsceneChannelfunction EnableSoundCutsceneChannel(bool Enable)
EnableVoiceChannelfunction EnableVoiceChannel(bool Enable)
FogOfWarIsRevealedChecknative function bool FogOfWarIsRevealedCheck(optional Vector objectLocation)
GetAdventureControllernative function H7AdventureController GetAdventureController()
GetAmbientSoundSettingsfunction bool GetAmbientSoundSettings()
GetAmbientSoundVolumefunction float GetAmbientSoundVolume()
GetBasicAmbientStopEventfunction AkEvent GetBasicAmbientStopEvent()
GetCameranative function H7Camera GetCamera()
GetCombatMusicnative function AkEvent GetCombatMusic()
GetCreditsMusicEventfunction AkEvent GetCreditsMusicEvent()
GetDefeatMusicnative function AkEvent GetDefeatMusic()
GetInstancestatic function H7SoundController GetInstance()
GetLastAmbientEventfunction AkEvent GetLastAmbientEvent()
GetMainMusicnative function AkEvent GetMainMusic()
GetMainMusicResumeEventfunction AkEvent GetMainMusicResumeEvent()
GetMasterSettingsfunction bool GetMasterSettings()
GetMasterVolumeSettingsfunction float GetMasterVolumeSettings()
GetMusicSettingfunction bool GetMusicSetting()
GetMusicVolumefunction float GetMusicVolume()
GetPlayAITurnMusicnative function AkEvent GetPlayAITurnMusic()
GetResumeAITurnMusicnative function AkEvent GetResumeAITurnMusic()
GetSoundManagerfunction H7SoundManager GetSoundManager()
GetSoundSettingfunction bool GetSoundSetting()
GetSoundVolumefunction float GetSoundVolume()
GetStopAllExceptMusicEventfunction AkEvent GetStopAllExceptMusicEvent()
GetVictoryMusicnative function AkEvent GetVictoryMusic()
GetVoiceOverSettingfunction bool GetVoiceOverSetting()
GetVoiceOverStopAllEventfunction AkEvent GetVoiceOverStopAllEvent()
GetVoiceOverVolumefunction float GetVoiceOverVolume()
InCinematicModefunction InCinematicMode(bool val)
Initializefunction Initialize(optional bool silentSFX = false)
LoadingScreenEnabledfunction LoadingScreenEnabled(bool val)
PlayAdventureMapMusicfunction PlayAdventureMapMusic()
PlayGlobalAkEventstatic function PlayGlobalAkEvent(AkEvent InSoundCue, optional bool bNotReplicated, optional bool bNoRepToOwner, optional bool bStopWhenOwnerDestroyed, optional Vector SoundLocation, optional bool bNoRepToRelevant)
PlayPauseMusicfunction PlayPauseMusic()
PostEventfunction PostEvent(AkEvent NewEvent, bool stopWhenOwnerDestroyed)
ResetLastAmbientEventfunction ResetLastAmbientEvent()
ResetLastMusicEventfunction ResetLastMusicEvent()
ResetMusicVariablesfunction ResetMusicVariables()
ResetOptionsfunction ResetOptions()
SetAmbientSoundSettingsfunction SetAmbientSoundSettings(bool bVal)
SetAmbientSoundSettingsBoolfunction SetAmbientSoundSettingsBool(bool bVal)
SetAmbientSoundVolumefunction SetAmbientSoundVolume(float fVol)
SetDistanceAttenuationValuefunction SetDistanceAttenuationValue(float Value)
SetLastAmbientEventfunction SetLastAmbientEvent(AkEvent Event)
SetMasterSettingsfunction SetMasterSettings(bool bVal)
SetMasterVolumeSettingsfunction SetMasterVolumeSettings(float fVol)
SetMusicEventsnative function SetMusicEvents()
SetMusicSettingfunction SetMusicSetting(bool val)
SetMusicVolumefunction SetMusicVolume(float Value)
SetNextTurnfunction SetNextTurn(bool val)
SetShouldUpdateConfigfunction SetShouldUpdateConfig(bool Value)
SetSoundSettingfunction SetSoundSetting(bool bVal)
SetSoundVolumefunction SetSoundVolume(float Value)
SetVoiceOverSettingfunction SetVoiceOverSetting(bool val)
SetVoiceOverVolumefunction SetVoiceOverVolume(float Value)
StartMusicDuckingfunction StartMusicDucking()
SwitchTownScreenMusicfunction SwitchTownScreenMusic(string Faction)
UpdateCameraDistanceAttenuationfunction UpdateCameraDistanceAttenuation(float currentDistance, float cameraMin, float cameraMax)
UpdateHearableAmbientSoundNodesevent UpdateHearableAmbientSoundNodes()
UpdateMasterSettingfunction UpdateMasterSetting()
UpdateMusicGameStateSwitchfunction UpdateMusicGameStateSwitch(string maptype, optional string Faction)

Default values

mShouldUpdateConfig=true
cMusicSetting=true
cSoundSetting=true
cVoiceOverSetting=true
cMasterSetting=true
cAmbientSoundSetting=true
mMusicDuckingValue=-48.0000000
cMusicVolume=1.0000000
cSoundVolume=1.0000000
cVoiceOverVolume=1.0000000
cMasterVolume=1.0000000
cAmbientSoundVolume=1.0000000

Inherited

FromMembers
Object13 properties, 308 functions