Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
sbk::engine::voice Class Reference

A runtime graph of nodes and busses, playing a sound or many. More...

#include <voice.h>

Inheritance diagram for sbk::engine::voice:
Collaboration diagram for sbk::engine::voice:

Public Member Functions

 voice (game_object *owningObject)
 
void play_container (container *container)
 
void update ()
 
bool playing_container (container *container) const noexcept
 
const std::vector< std::shared_ptr< node_instance > > get_voices () const noexcept
 
std::size_t num_voices () const
 
node_instancenode_instance_at (std::size_t index) const
 
bool is_playing () const
 
game_objectget_owning_game_object () const
 
- Public Member Functions inherited from sbk::core::object
object_ownerowner () const
 
template<typename T >
Ttry_convert_object () noexcept
 Gets the most derived type of this object and upcasts it to T.
 
template<typename T >
const Ttry_convert_object () const noexcept
 
rttr::type getType () const
 
void destroy ()
 
MulticastDelegate< object * > & get_on_destroy ()
 
- Public Member Functions inherited from sbk::core::object_owner
std::shared_ptr< objectcreate_runtime_object (const rttr::type &type)
 
std::shared_ptr< objectload_object (YAML::Node &node)
 
std::shared_ptr< database_objectcreate_database_object (const rttr::type &type, bool addToDatabase=true)
 
template<typename T >
std::shared_ptr< Tcreate_runtime_object ()
 
template<typename T >
std::shared_ptr< Tcreate_database_object ()
 
void remove_object (const std::shared_ptr< object > &object)
 
void destroy_all ()
 
std::vector< std::shared_ptr< object > > & get_objects ()
 
const std::vector< std::shared_ptr< object > > & get_objects () const
 

Detailed Description

A runtime graph of nodes and busses, playing a sound or many.


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