AudioVolumeAttrib

from panda3d.core import AudioVolumeAttrib
class AudioVolumeAttrib

Bases: RenderAttrib

Applies a scale to audio volume for positional sounds in the scene graph.

Inheritance diagram

Inheritance diagram of AudioVolumeAttrib

__init__(*args, **kwargs)
class_slot = 3
getClassSlot()

C++ Interface: get_class_slot()

getClassType()

C++ Interface: get_class_type()

getVolume()

C++ Interface: get_volume(AudioVolumeAttrib self)

/**
  • Returns the volume to be applied to sounds.

*/

get_class_slot()

C++ Interface: get_class_slot()

get_class_type()

C++ Interface: get_class_type()

get_volume()

C++ Interface: get_volume(AudioVolumeAttrib self)

/**
  • Returns the volume to be applied to sounds.

*/

hasVolume()

C++ Interface: has_volume(AudioVolumeAttrib self)

/**
  • Returns true if the AudioVolumeAttrib has a non-identity volume, false

  • otherwise (in which case it might be an off attrib or an identity attrib).

*/

has_volume()

C++ Interface: has_volume(AudioVolumeAttrib self)

/**
  • Returns true if the AudioVolumeAttrib has a non-identity volume, false

  • otherwise (in which case it might be an off attrib or an identity attrib).

*/

isOff()

C++ Interface: is_off(AudioVolumeAttrib self)

/**
  • Returns true if the AudioVolumeAttrib will ignore any color scales

  • inherited from above, false otherwise. This is not the same thing as

  • !has_scale(); a AudioVolumeAttrib may have the “off” flag set and also have

  • another scale specified.

*/

is_off()

C++ Interface: is_off(AudioVolumeAttrib self)

/**
  • Returns true if the AudioVolumeAttrib will ignore any color scales

  • inherited from above, false otherwise. This is not the same thing as

  • !has_scale(); a AudioVolumeAttrib may have the “off” flag set and also have

  • another scale specified.

*/

make()

C++ Interface: make(float volume)

/**
  • Constructs a new AudioVolumeAttrib object that indicates audio volume

  • should be scaled by the indicated factor.

*/

makeDefault()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

makeIdentity()

C++ Interface: make_identity()

/**
  • Constructs an identity audio volume attrib.

*/

makeOff()

C++ Interface: make_off()

/**
  • Constructs a new AudioVolumeAttrib object that ignores any

  • AudioVolumeAttrib inherited from above. You may also specify an additional

  • volume scale to apply to geometry below (using set_volume()).

*/

make_default()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

make_identity()

C++ Interface: make_identity()

/**
  • Constructs an identity audio volume attrib.

*/

make_off()

C++ Interface: make_off()

/**
  • Constructs a new AudioVolumeAttrib object that ignores any

  • AudioVolumeAttrib inherited from above. You may also specify an additional

  • volume scale to apply to geometry below (using set_volume()).

*/

setVolume()

C++ Interface: set_volume(AudioVolumeAttrib self, float volume)

/**
  • Returns a new AudioVolumeAttrib, just like this one, but with the volume

  • changed to the indicated value.

*/

set_volume()

C++ Interface: set_volume(AudioVolumeAttrib self, float volume)

/**
  • Returns a new AudioVolumeAttrib, just like this one, but with the volume

  • changed to the indicated value.

*/

volume