MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
BroadcastEvents.hpp File Reference
#include "Awaiters/BroadcastAwaiter.hpp"
#include "MayaFlux/Vruta/BroadcastSource.hpp"
#include "BroadcastEvents.inl"
+ Include dependency graph for BroadcastEvents.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Kriya::WindowFrame
 

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Core
 
namespace  MayaFlux::Kriya
 
namespace  MayaFlux::Vruta
 

Functions

std::shared_ptr< Vruta::BroadcastSource< bool > > MayaFlux::Kriya::audio_output_tick ()
 Create a BroadcastSource<bool> ticking once per audio output cycle.
 
template<typename T >
void MayaFlux::Kriya::frame_results (Vruta::TaskScheduler &scheduler, const std::shared_ptr< Vruta::BroadcastSource< T > > &source, std::function< std::optional< T >()> fn, const std::string &name="")
 Signal what fn returns into source once per graphics frame.
 
template<typename T >
std::shared_ptr< Vruta::BroadcastSource< T > > MayaFlux::Kriya::frame_results (Vruta::TaskScheduler &scheduler, std::function< std::optional< T >()> fn, const std::string &name="")
 Broadcast of what fn returns, taken once per graphics frame.
 
template<typename T , typename Callback >
Vruta::Event MayaFlux::Kriya::on_signal (std::shared_ptr< Vruta::BroadcastSource< T > > source, Callback callback)
 Creates an Event coroutine that fires on every signal from a BroadcastSource.
 
template<typename T , typename Predicate , typename Callback >
Vruta::Event MayaFlux::Kriya::on_signal_matching (std::shared_ptr< Vruta::BroadcastSource< T > > source, Predicate predicate, Callback callback)
 Creates an Event coroutine that fires only when a predicate matches.
 
template<typename T , typename Callback >
std::shared_ptr< Vruta::Event > MayaFlux::Kriya::subscribe (Vruta::EventManager &events, std::shared_ptr< Vruta::BroadcastSource< T > > source, Callback callback, const std::string &name="")
 Call callback with every value source signals, registered on events.
 
std::shared_ptr< Vruta::BroadcastSource< WindowFrame > > MayaFlux::Kriya::window_frame_tick (const std::shared_ptr< Core::Window > &window)
 Create a BroadcastSource<bool> ticking once per captured window frame.