AudioVolumeAttrib
from panda3d.core import AudioVolumeAttrib
- class AudioVolumeAttrib
Bases:
Bases:
RenderAttribApplies a scale to audio volume for positional sounds in the scene graph.
Inheritance diagram
- static getClassType() TypeHandle
- hasVolume() bool
Returns true if the
AudioVolumeAttribhas a non-identity volume, false otherwise (in which case it might be an off attrib or an identity attrib).
- isOff() bool
Returns true if the
AudioVolumeAttribwill ignore any color scales inherited from above, false otherwise. This is not the same thing as !has_scale(); aAudioVolumeAttribmay have the “off” flag set and also have another scale specified.
- static make(volume: float) RenderAttrib
Constructs a new
AudioVolumeAttribobject that indicates audio volume should be scaled by the indicated factor.
- static makeDefault() RenderAttrib
Returns a
RenderAttribthat corresponds to whatever the standard default properties for render attributes of this type ought to be.
- static makeIdentity() RenderAttrib
Constructs an identity audio volume attrib.
- static makeOff() RenderAttrib
Constructs a new
AudioVolumeAttribobject that ignores anyAudioVolumeAttribinherited from above. You may also specify an additional volume scale to apply to geometry below (usingsetVolume()).
- setVolume(volume: float) RenderAttrib
Returns a new
AudioVolumeAttrib, just like this one, but with the volume changed to the indicated value.
