Skip to content

KX_Speaker

Class Range.types.KX_Speaker.

These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.

method

Active sound effect: 0 none, 1 reverb.

Returns: int

method

Active filter: 0 none, 1 low-pass, 2 high-pass, 3 band-pass.

Returns: int

method

Pauses the sound.

method

Plays the sound.

method

Removes the sound effect.

method

Plays the sound from the beginning.

method

Applies an effect: effectType 1 = reverb; filterType 0 none, 1 low-pass, 2 high-pass, 3 band-pass. After that, reverb areas leave this Speaker alone.

method

Changes the sound (an aud.Sound). With cache=True, keeps the decoded sound in memory.

method

Stops the sound.

attribute

How much the volume drops with distance (3D sound).

attribute

Sound category key in the playback manager, or None.

attribute

Angle, in degrees, of the cone where the sound plays at full volume.

attribute

Angle, in degrees, of the cone outside of which the volume is cone_volume_outer.

attribute

Volume outside the outer cone.

attribute

Distance after which the volume stops dropping.

attribute

Distance at which the sound plays at normal volume.

attribute

Overall filter gain.

attribute

High frequency gain in the filter.

attribute

Low frequency gain in the filter.

attribute · read-only

True if the sound is positional (3D).

attribute

Playback mode: 1 plays to the end, 2 loops, 3 ping-pong loop.

attribute

Sound pitch (speed). 1.0 is normal.

attribute

Playback manager (aud.PlaybackManager) used by the Speaker, or None.

attribute

Reverb: high frequency absorption by the air.

attribute

Reverb: how much faster high frequencies fade than low ones.

attribute

Reverb: limits the high frequency decay.

attribute

Reverb: time in seconds the echo takes to fade.

attribute

Reverb: echo density.

attribute

Reverb: echo diffusion.

attribute

Reverb: overall effect volume.

attribute

Reverb: high frequency volume.

attribute

Reverb: delay of the echo tail.

attribute

Reverb: volume of the echo tail.

attribute

Reverb: delay of the early reflections.

attribute

Reverb: volume of the early reflections.

attribute

Reverb: how much the effect drops with distance.

attribute

Current sound (aud.Sound), or None.

attribute

Current sound position, in seconds. Can be changed to seek.

attribute

Sound volume.

attribute

Maximum volume, even up close.

attribute

Minimum volume, even far away.