HPL3/Amnesia: Rebirth/Scripting/cLuxVoiceHandler
< HPL3 | Amnesia: Rebirth | Scripting
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 AddCharacterSpeakingCallback
- 3.2 AddClosedCaption
- 3.3 AdvanceFromCurrentSound
- 3.4 AnySceneIsActive
- 3.5 CharacterIsSpeaking
- 3.6 DoesSubjectHaveUnplayedLines
- 3.7 FadeSceneVolumeTo
- 3.8 GetCurrentSubjectLineIndex
- 3.9 GetSpectrumFromScene
- 3.10 GetSpectrumFromSpeakingCharacter
- 3.11 GetSubjectLineNumber
- 3.12 GetSubjectLines
- 3.13 GetSubjectSceneName
- 3.14 GetTimeLeftOnLastLineOfPlayingSubject
- 3.15 GetUnderwaterEffectsActive
- 3.16 LoadFromFile
- 3.17 Play
- 3.18 RemoveCharacterSpeakingCallback
- 3.19 SceneInvolvingCharacterIsActive
- 3.20 SceneIsActive
- 3.21 SetFocusScene
- 3.22 SetForceHideSubtitles
- 3.23 SetPaused
- 3.24 SetPausedAll
- 3.25 SetUnderwaterEffectsActive
- 3.26 SkipCurrentLine
- 3.27 SkipCurrentSound
- 3.28 Stop
- 3.29 StopAll
- 3.30 StopScenesWithCharacter
- 3.31 SubjectExists
- 3.32 SubjectIsPlaying
- 4 References
Fields
cLuxVoiceHandler has no public fields.
Functions
Return Type | Function And Description |
---|---|
void | AddCharacterSpeakingCallback(const tString &in asCharacter, const tString &in asCallback) |
void | AddClosedCaption(const tWString &in asText, float afTime) |
void | AdvanceFromCurrentSound(const tString &in asScene) |
bool | AnySceneIsActive() |
bool | CharacterIsSpeaking(const tString &in asName) |
bool | DoesSubjectHaveUnplayedLines(const tString &in asSubject) |
void | FadeSceneVolumeTo(const tString &in asScene, float afVolume, float afTime) |
int | GetCurrentSubjectLineIndex(const tString &in asName) |
void | GetSpectrumFromScene(const tString &in asScene, array<float> &out aDestArray, int alNumSamples = 64) |
void | GetSpectrumFromSpeakingCharacter(const tString &in asCharacter, array<float> &out aDestArray, int alNumSamples = 64) |
int | GetSubjectLineNumber(const tString &in asSubject) |
bool | GetSubjectLines(const tString &in asSubject, array<tWString> avOutLines) |
tString | GetSubjectSceneName(const tString &in asSubject) |
float | GetTimeLeftOnLastLineOfPlayingSubject(const tString &in asName) |
bool | GetUnderwaterEffectsActive() |
bool | LoadFromFile(const tString &in asFile) |
bool | Play(const tString &in asSubject, int alSpecificLine, const tString &in asCallback, int alPrio, bool abPlayWhilePaused) |
void | RemoveCharacterSpeakingCallback(const tString &in asCharacter) |
bool | SceneInvolvingCharacterIsActive(const tString &in asCharacter) |
bool | SceneIsActive(const tString &in asScene) |
void | SetFocusScene(const tString &in asScene) |
void | SetForceHideSubtitles(bool abX) |
void | SetPaused(const tString &in asScene, bool abX) |
void | SetPausedAll(bool abX) |
void | SetUnderwaterEffectsActive(bool abX) |
void | SkipCurrentLine(const tString &in asScene) |
void | SkipCurrentSound(const tString &in asScene) |
void | Stop(const tString &in asScene) |
void | StopAll() |
void | StopScenesWithCharacter(const tString &in asCharacter) |
bool | SubjectExists(const tString &in asSubject) |
bool | SubjectIsPlaying(const tString &in asName) |
Details
AddCharacterSpeakingCallback
AddClosedCaption
void AddClosedCaption(const tWString &in asText,
float afTime)
Parameters
- asText (tWString) —
- afTime (float) —
Returns:
- void
AdvanceFromCurrentSound
void AdvanceFromCurrentSound(const tString &in asScene)
Parameters
- asScene (tString) —
Returns:
- void
AnySceneIsActive
bool AnySceneIsActive()
Returns:
- bool—
CharacterIsSpeaking
DoesSubjectHaveUnplayedLines
bool DoesSubjectHaveUnplayedLines(const tString &in asSubject)
Parameters
- asSubject (tString) —
Returns:
- bool—
FadeSceneVolumeTo
void FadeSceneVolumeTo(const tString &in asScene,
float afVolume,
float afTime)
Parameters
- asScene (tString) —
- afVolume (float) —
- afTime (float) —
Returns:
- void
GetCurrentSubjectLineIndex
int GetCurrentSubjectLineIndex(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- int—
GetSpectrumFromScene
void GetSpectrumFromScene(const tString &in asScene,
float &out aDestArray,
int alNumSamples = 64)
Parameters
- asScene (tString) —
- aDestArray (float) —
- alNumSamples (int) —
Returns:
- void
GetSpectrumFromSpeakingCharacter
void GetSpectrumFromSpeakingCharacter(const tString &in asCharacter,
float &out aDestArray,
int alNumSamples = 64)
Parameters
- asCharacter (tString) —
- aDestArray (float) —
- alNumSamples (int) —
Returns:
- void
GetSubjectLineNumber
int GetSubjectLineNumber(const tString &in asSubject)
Parameters
- asSubject (tString) —
Returns:
- int—
GetSubjectLines
GetSubjectSceneName
const tString& GetSubjectSceneName(const tString &in asSubject)
Parameters
- asSubject (tString) —
Returns:
- const tString&—
GetTimeLeftOnLastLineOfPlayingSubject
float GetTimeLeftOnLastLineOfPlayingSubject(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- float—
GetUnderwaterEffectsActive
bool GetUnderwaterEffectsActive()
Returns:
- bool—
LoadFromFile
Play
RemoveCharacterSpeakingCallback
void RemoveCharacterSpeakingCallback(const tString &in asCharacter)
Parameters
- asCharacter (tString) —
Returns:
- void
SceneInvolvingCharacterIsActive
bool SceneInvolvingCharacterIsActive(const tString &in asCharacter)
Parameters
- asCharacter (tString) —
Returns:
- bool—
SceneIsActive
SetFocusScene
SetForceHideSubtitles
void SetForceHideSubtitles(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetPaused
void SetPaused(const tString &in asScene,
bool abX)
Parameters
- asScene (tString) —
- abX (bool) —
Returns:
- void
SetPausedAll
void SetPausedAll(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetUnderwaterEffectsActive
void SetUnderwaterEffectsActive(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SkipCurrentLine
SkipCurrentSound
Stop
StopAll
void StopAll()
Returns:
- void
StopScenesWithCharacter
void StopScenesWithCharacter(const tString &in asCharacter)
Parameters
- asCharacter (tString) —
Returns:
- void