7#include "audio_device.hpp"
8#include "../unfair_recursive_mutex.hpp"
9#include "../generator.hpp"
13namespace hi::inline v1 {
46 token_type subscribe(callback_flags flags,
std::invocable<> auto&& func) noexcept
48 return _notifier.subscribe(flags,
hi_forward(func));
55 token_type
subscribe(std::invocable<>
auto&& func)
noexcept
57 return subscribe(callback_flags::synchronous,
hi_forward(func));
60 auto operator co_await()
noexcept
62 return _notifier.operator
co_await();
#define hi_forward(x)
Forward a value, based on the decltype of the value.
Definition required.hpp:29
A set of audio channels which can be rendered and/or captures at the same time.
Definition audio_device.hpp:31
Definition audio_system.hpp:18
static std::unique_ptr< audio_system > make_unique() noexcept
Create an audio system object specific for the current operating system.
token_type subscribe(std::invocable<> auto &&func) noexcept
Subscribe a function to be called when the device list changes.
Definition audio_system.hpp:55
A return value for a generator-function.
Definition generator.hpp:28
A notifier which can be used to call a set of registered callbacks.
Definition notifier.hpp:24