Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
SB::Engine::Bus Class Reference
Inheritance diagram for SB::Engine::Bus:
Collaboration diagram for SB::Engine::Bus:

Public Member Functions

void onLoaded () override
 
bool canAddChild (const SB::Core::DatabasePtr< NodeBase > &child) const override
 
void setMasterBus (bool isMaster)
 
bool isMasterBus () const
 
void lock ()
 
void unlock ()
 
std::shared_ptr< NodeInstancelockAndCopy ()
 
- Public Member Functions inherited from SB::Engine::Node
virtual void gatherParameters (GlobalParameterList &parameters)
 Gathers all parameters on this and child nodes that can effect the runtime output.
 
void addEffect (sc_dsp_type type)
 
- Public Member Functions inherited from SB::Engine::NodeBase
virtual void setParentNode (const SB::Core::DatabasePtr< NodeBase > &parent)
 
virtual void setOutputBus (const SB::Core::DatabasePtr< NodeBase > &bus)
 
SB_NODE_STATUS getNodeStatus () const noexcept
 
NodeBaseparent () const
 
NodeBaseoutputBus () const
 
void addChild (const SB::Core::DatabasePtr< NodeBase > &child)
 
void removeChild (const SB::Core::DatabasePtr< NodeBase > &child)
 
std::vector< NodeBase * > getChildren () const
 
std::size_t getChildCount () const
 
bool hasChild (const SB::Core::DatabasePtr< NodeBase > &test) const
 
void gatherAllDescendants (std::vector< NodeBase * > &descendants) const
 
void gatherAllParents (std::vector< NodeBase * > &parents) const
 
- Public Member Functions inherited from SB::Core::DatabaseObject
SB_ID getDatabaseID () const
 
void setDatabaseID (SB_ID id)
 
std::string_view getDatabaseName () const
 
void setDatabaseName (std::string_view name)
 
bool getEditorHidden () const
 
void setEditorHidden (bool hidden)
 
 operator SB_ID () const
 
- Public Member Functions inherited from SB::Core::Object
template<typename T >
TtryConvertObject () noexcept
 Gets the most derived type of this object and upcasts it to T.
 
template<typename T >
const TtryConvertObject () const noexcept
 
rttr::type getType () const
 
- Public Member Functions inherited from SB::Core::ObjectUtilities
SB::Engine::SystemgetSystem () const
 
sc_systemgetChef () const
 
ma_enginegetMini () const
 
- Public Member Functions inherited from SB::Core::DatabaseObjectUtilities
virtual void onProjectLoaded ()
 
virtual void onDestroy ()
 

Protected Attributes

std::shared_ptr< NodeInstancem_busInstance
 
- Protected Attributes inherited from SB::Engine::NodeBase
SB::Core::DatabasePtr< NodeBasem_parentNode
 
SB::Core::DatabasePtr< NodeBasem_outputBus
 
std::unordered_set< SB::Core::DatabasePtr< NodeBase > > m_childNodes
 

Additional Inherited Members

- Public Attributes inherited from SB::Engine::Node
SB::Core::FloatProperty m_volume = SB::Core::FloatProperty(1.0f, 0.0f, 1.0f)
 
SB::Core::FloatProperty m_pitch = SB::Core::FloatProperty(1.0f, 0.0f, 1.0f)
 
SB::Core::FloatProperty m_lowpass = SB::Core::FloatProperty(1.0f, 0.0f, 100.0f)
 
SB::Core::FloatProperty m_highpass = SB::Core::FloatProperty(1.0f, 0.0f, 100.0f)
 
std::vector< SB::Core::DatabasePtr< EffectDescription > > m_effectDescriptions
 
- Public Attributes inherited from SB::Core::ObjectUtilities
std::string m_debugName
 
- Protected Member Functions inherited from SB::Engine::Node
virtual void gatherParametersFromThis (GlobalParameterList &parameters)
 Appends parameters from this node that are relevant to the runtime output.
 

Member Function Documentation

◆ canAddChild()

bool SB::Engine::Bus::canAddChild ( const SB::Core::DatabasePtr< NodeBase > &  child) const
inlineoverridevirtual

Reimplemented from SB::Engine::NodeBase.

◆ onLoaded()

void Bus::onLoaded ( )
overridevirtual

Reimplemented from SB::Core::DatabaseObjectUtilities.


The documentation for this class was generated from the following files: