Aego Русский

PlayOptions

struct PlayOptions

PlayOptions tune one play. Volume and Pitch 0 mean 1; Bus Master plays on the bus of the clip; Unscaled keeps playing while the game is paused.

On this page

Bus field

field Bus aego/audio.Bus

Selects the playback bus. Master here means the clip's configured bus, not a forced routing to the master bus.

FadeIn field

field FadeIn float

Sets the fade-in duration in seconds; zero starts without a fade.

Loop field

field Loop bool

Repeats the clip until stopped instead of finishing after one playback.

Pan field

field Pan float

Sets stereo balance from −1 (left) through 0 (centre) to 1 (right).

Pitch field

field Pitch float

Scales playback speed and pitch together; 1 is the original speed and 0 also selects 1 for these options.

Priority field

field Priority int

Sets voice priority, clamped to 0–255. Higher-priority sounds are preferred when the mixer must replace a voice.

Unscaled field

field Unscaled bool

Keeps this sound playing while the game is paused when true; false ties it to game pause.

Volume field

field Volume float

Multiplies the clip's gain; 1 is unchanged and 0 also selects 1 for these options, rather than muting the sound.