HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
v1::audio_system_aggregate Class Reference
Inheritance diagram for v1::audio_system_aggregate:
v1::audio_system

Public Types

using super = audio_system
Public Types inherited from v1::audio_system
using notifier_type = notifier<>
using callback_token = notifier_type::callback_token
using callback_proto = notifier_type::callback_proto

Public Member Functions

generator< audio_device & > devices () noexcept override
 The devices that are part of the audio system.
void add_child (std::unique_ptr< audio_system > new_child)
Public Member Functions inherited from v1::audio_system
 audio_system (audio_system const &)=delete
 audio_system (audio_system &&)=delete
audio_system & operator= (audio_system const &)=delete
audio_system & operator= (audio_system &&)=delete
callback_token subscribe (forward_of< callback_proto > auto &&func, callback_flags flags=callback_flags::synchronous) noexcept
 Subscribe a function to be called when the device list changes.
auto operator co_await () noexcept

Additional Inherited Members

Static Public Member Functions inherited from v1::audio_system
static std::unique_ptr< audio_system > make_unique () noexcept
 Create an audio system object specific for the current operating system.

Member Function Documentation

◆ devices()

generator< audio_device & > v1::audio_system_aggregate::devices ( )
inlinenodiscardoverridevirtualnoexcept

The devices that are part of the audio system.

Due to complicated threading and callback function interactions audio devices are not destroyed until application shutdown.

Returns
A generator-coroutine object that can be iterated over.

Implements v1::audio_system.


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