SoSoundElement(3)
π SoSoundElement β straight from the Library Functions Manual, bestie π
okay so picture this: it's the Library Functions Manual, and today's main character is SoSoundElement(3). she's lowkey a behind-the-scenes queen β she doesn't do the loud stuff, she just makes your audio not be a whole mess. let's get into it π
πΈ NAME πΈ
SoSoundElement β bestie, she's the element that handles optimizing audio rendering and turning off inactive SoVRMLSound nodes. that's her whole thing. periodt. β¨
π¦ SYNOPSIS π¦
#include <Inventor/elements/SoSoundElement.h>
she inherits SoReplacedElement. yes, it's giving family tree energy. π³
π Public Member Functions
virtual void init (SoState *state)virtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)virtual void print (FILE *file) constβ Prints contents of element (not implemented) π
Public Member Functions inherited from SoReplacedElement
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo () constuint32_t getNodeId () const
Public Member Functions inherited from SoElement
const SoType getTypeId (void) constint getStackIndex (void) constvoid setDepth (const int depth)int getDepth (void) constvirtual ~SoElement ()
π Static Public Member Functions
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void * createInstance (void)static void initClass (void)static void set (SoState *const state, SoNode *const node, SbBool scenegraphhassoundnode, SbBool soundnodeisplaying, SbBool ispartofactivescenegraph)static SbBool setSceneGraphHasSoundNode (SoState *const state, SoNode *const node, SbBool flag)static SbBool sceneGraphHasSoundNode (SoState *const state)static SbBool setSoundNodeIsPlaying (SoState *const state, SoNode *const node, SbBool flag)static SbBool soundNodeIsPlaying (SoState *const state)static SbBool setIsPartOfActiveSceneGraph (SoState *const state, SoNode *const node, SbBool flag)static SbBool isPartOfActiveSceneGraph (SoState *const state)
Static Public Member Functions inherited from SoReplacedElement
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)
Static Public Member Functions inherited from SoElement
static void initClass (void)static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initElements (void)static int getNumStackIndices (void)static SoType getIdFromStackIndex (const int stackIndex)
π§ Protected Member Functions
virtual ~SoSoundElement ()void setDefaultValues ()
Protected Member Functions inherited from SoReplacedElement
virtual ~SoReplacedElement ()
Protected Member Functions inherited from SoElement
SoElement (void)void capture (SoState *const state) constvirtual void captureThis (SoState *state) constvoid setTypeId (const SoType typeId)void setStackIndex (const int index)SoElement * getNextInStack (void) constSoElement * getNextFree (void) const
π Protected Attributes
SbBool scenegraphhassoundnodeSbBool soundnodeisplayingSbBool ispartofactivescenegraph
Protected Attributes inherited from SoReplacedElement
uint32_t nodeId
Protected Attributes inherited from SoElement
SoType typeIdint stackIndexint depth
π«Ά Additional Inherited Members
Static Protected Member Functions inherited from SoReplacedElement
static SoElement * getElement (SoState *const state, const int stackIndex, SoNode *const node)
Static Protected Member Functions inherited from SoElement
static SoElement * getElement (SoState *const state, const int stackIndex)static const SoElement * getConstElement (SoState *const state, const int stackIndex)static int createStackIndex (const SoType id)
Static Protected Attributes inherited from SoElement
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
okay so SoSoundElement is used for optimizing audio rendering and for turning off inactive SoVRMLSound nodes. that's the mission. no cap. π₯
Since
Coin 2.0 β¨ (she's been around, she's iconic, respect her.)
π Constructor & Destructor Documentation π
SoSoundElement::~SoSoundElement (void ) [protected], [virtual]
The destructor. she's saying bye bestie π that's literally all it is.
π Member Function Documentation π
void * SoSoundElement::createInstance (void ) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π so like, not your business bestie, no offense, she's just built different internally.
void SoSoundElement::initClass (void ) [static]
This static method initializes static data for the SoSoundElement class. setting up the vibes. β¨
void SoSoundElement::init (SoState * state) [virtual]
Initializes the element to it's default value.
Reimplemented from SoReplacedElement.
void SoSoundElement::set (SoState *const state, SoNode *const node, SbBool scenegraphhassoundnode, SbBool soundnodeisplaying, SbBool ispartofactivescenegraph) [static]
Sets the flags. π© all of them. at once. slay.
SbBool SoSoundElement::setSceneGraphHasSoundNode (SoState *const state, SoNode *const node, SbBool flag) [static]
Sets the sceneGraphHasSoundNode flag.
SbBool SoSoundElement::sceneGraphHasSoundNode (SoState *const state) [static]
The sceneGraphHasSoundNode flag is used to stop the SoAudioRenderAction in SoSeparator and SoVRMLGroup nodes for cases where the sub-graph doesn not contain any SoVRMLSound nodes.
Returns the value of the sceneGraphHasSoundNode flag. π§
SbBool SoSoundElement::setSoundNodeIsPlaying (SoState *const state, SoNode *const node, SbBool flag) [static]
Sets the soundNodeIsPlaying flag.
SbBool SoSoundElement::soundNodeIsPlaying (SoState *const state) [static]
The soundNodeIsPlaying flag is currently unused. π literally sitting there, iconic but unemployed.
Returns the value of the soundNodeIsPlaying flag.
SbBool SoSoundElement::setIsPartOfActiveSceneGraph (SoState *const state, SoNode *const node, SbBool flag) [static]
Sets the isPartOfActiveSceneGraph flag.
SbBool SoSoundElement::isPartOfActiveSceneGraph (SoState *const state) [static]
The isPartOfActiveSceneGraph flag is used to make SoVRMLSound that are below inactive parts of the scenegraph (i.e. below a SoSwitch or SoLOD node) stop playing. π
Returns the value of the isPartOfActiveSceneGraph flag.
void SoSoundElement::push (SoState * state) [virtual]
Calls the superclass' push method. Initializes the element to the default values. Uses previous element's isPartOfActiveSceneGraph flag.
Reimplemented from SoElement.
void SoSoundElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]
Calls the superclass' pop method.
Reimplemented from SoElement.
void SoSoundElement::print (FILE * file) const [virtual]
Prints contents of element (not implemented) π she simply did not do it.
Reimplemented from SoReplacedElement.
void SoSoundElement::setDefaultValues () [protected]
Initializes the element to the default values. The default values for the sceneGraphHasSoundNode is FALSE. The default value for the isPartOfActiveSceneGraph flag is TRUE. the default value for the soundNodeIsPlaying flag is FALSE.
note bestie:FALSEforsceneGraphHasSoundNode,TRUEforisPartOfActiveSceneGraph,FALSEforsoundNodeIsPlaying. write that down. π
β Author β
Generated automatically by Doxygen for Coin from the source code. so nobody's out here signing their name, it's just the robot doing its thing. π
and that's the whole page, bestie!! Coin, Version 3.1.3 β that's the version and the source, love that for her. π mwah, go optimize some audio, you got this π«Άβ¨
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms