MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ sink_audio()

template<typename Entity, typename... Args>
requires requires(Entity& entity, Buffers::BufferManager& manager, uint32_t channel, Args&&... args) { entity.sink_audio(manager, channel, std::forward<Args>(args)...); }
void MayaFlux::sink_audio ( const std::shared_ptr< Entity > & entity,
uint32_t channel,
Args &&... args )

Register an audio output for an Agent or Emitter on channel.

Forwards to the entity's sink_audio with the engine's buffer manager. args are the optional producer function and name.

Definition at line 66 of file Stagecraft.hpp.

67{
68 entity->sink_audio(*get_buffer_manager(), channel, std::forward<Args>(args)...);
69}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:148

References get_buffer_manager().

Here is the call graph for this function: