sound track

Used for sound object operations.


xshade
shape
sound_track

List of Methods

play Play a sound
stop Stop sound currently-playing

List of Properties

is_playing Whether a sound is playing or not
range range on/off
repetition Repetition
sound3d 3D sound on/off
value The volume




Method Details

play

Play a sound.

See also :
  stop

xshade.scene().active_shape().sound_track.play()

stop

Stop sound currently-playing.

  • Get
  • Set

See also :
  play

xshade.scene().active_shape().sound_track.stop()

Property Details

is_playing

Whether a sound is playing or not.

  • Get
  • Set

Type :
  bool

print xshade.scene().active_shape().is_playing

range

Range on/off.

  • Get
  • Set

Type :
  bool

print xshade.scene().active_shape().sound_track.range

repetition

Repetition.

  • Get
  • Set

Type :
  int : 0 is automatic

print xshade.scene().active_shape().sound_track.repetition

sound3d

3D sound on/off.

  • Get
  • Set

Type :
  bool

print xshade.scene().active_shape().sound_track.sound3d

value

The volume.

  • Get
  • Set

Type :
  float

print xshade.scene().active_shape().sound_track.value