The PsaiCore type exposes the following members.

Methods

  NameDescription
Public methodAddLoggerOutput
Public methodAddToCurrentIntensity
Increases (or decreases) the current dynamic intensity level, without changing the intensity falloff slope.
Public methodCheckIfAtLeastOneDirectTransitionOrLayeringIsPossible
Returns true if there is at least one Segment in the target Theme that is marked as directly compatible to the source Segment.
Public methodCutSceneEnter
Enters a cutscene, using the given Theme as the background music.
Public methodCutSceneIsActive
Returns true if psai is currently in Cutscene Mode, false otherwise.
Public methodCutSceneLeave
Leaves the CutScene Mode. See CutSceneEnter for more information.
Public methodGetCurrentIntensity
[DEPRECATED] Use GetPsaiInfo() instead.
Public methodGetCurrentSegmentId
Returns the id of the Segment that's currently playing.
Public methodGetCurrentThemeId
Returns the id of the Theme that's currently playing (or just about to switch to). [DEPRECATED] Use GetPsaiInfo().effectiveThemeId .
Public methodGetPsaiInfo
Returns information about the current state of the psai engine.
Public methodGetRemainingMillisecondsOfCurrentSegmentPlayback
Returns the number of remaining milliseconds until the current Segment playback has reached its end, including the PostBeat region
Public methodGetRemainingMillisecondsUntilNextSegmentStart
Returns the number of remaining milliseconds until the next Segment will start playing.
Public methodGetSegmentInfo
Returns information about the Segment with the given segmentId.
Public methodGetSoundtrackInfo
Returns information about the psai soundtrack currently loaded.
Public methodGetThemeInfo
Returns information about the Theme with the given themeId.
Public methodGetVolume
Returns the psai master playback volume.
Public methodGoToRest
Stops the Theme currently playing. Psai will keep silent for some time and then wake up with the Basic Mood that was triggered the last.
Public methodHoldCurrentIntensity
Deactivates/reactivates the automatic decrease of the dynamic Intensity while the current Theme is playing.
Public methodStatic memberIsInstanceInitialized
Public methodLoadSoundtrack
Loads the binary soundtrack configuration file created by the PsaiEditor
Public methodLoadSoundtrackByPsaiProject
Public methodLoadSoundtrackFromProjectFile
Loads the binary soundtrack configuration file created by the PsaiEditor
Public methodMenuModeEnter
Activates the Menu Mode and plays a given Theme as the menu background music.
Public methodMenuModeIsActive
Returns true if psai is currently in Menu Mode, false otherwise.
Public methodMenuModeLeave
Leaves the Menu Mode. See MenuModeEnter for more information.
Public methodPlaySegment
Immediately plays back the given Segment.
Public methodRelease
Performs platform-specific cleanup.
Public methodReturnToLastBasicMood
Ends the current Theme and directly returns to the most recently triggered Basic Mood.
Public methodSetLogLevel
Sets the detail level of information written to the output console and log file.
Public methodSetMaximumLatencyNeededByPlatformToBufferSounddata
Sets the maximum latency in milliseconds that is needed by the target platform to buffer soundfiles from the storage medium.
Public methodSetMaximumLatencyNeededByPlatformToPlayBackBufferedSounddata
Sets the maximum latency in milliseconds that is needed by the target platform to play back prebuffered sounddata.
Public methodSetPaused
Pauses or resumes all psai playback.
Public methodSetVolume
Sets the psai master playback volume.
Public methodStopMusic
Stops the music either by fading out quickly, or by enqueuing and End-Segment.
Public methodTriggerMusicTheme(Int32, Single)
Request for playing a certain Theme at the desired intensity
Public methodTriggerMusicTheme(Int32, Single, Int32)
Request for playing a certain Theme at the desired intensity, for the given duration.
Public methodUpdate
Needs to be called within your gameloop to keep psai going.

See Also