psai States

Parent Previous Next

At any point of time, an instance of the psai engine is in one of the following states:

1. Not ready

No soundtrack has been loaded yet.

2. Silence

In this state, psai does not play music and will remain silent until the next call to TriggerMusicTheme.

3. Playing

Psai is currently playing back a Theme.

4. Rest

Psai is letting the music rest for a random period. Although no music is playing at the moment, the last Basic Mood is generally still active, and psai will automatically wake up with this Theme soon, with an intensity as defined in the psai EDITOR. The period of a musical rest is generally of random duration, but you can define minimum and maximum limits for each Theme.