HikoGUI
A low latency retained GUI
|
#include <hikogui/audio/audio_system.hpp>
Public Member Functions | |
audio_system (audio_system const &)=delete | |
audio_system (audio_system &&)=delete | |
audio_system & | operator= (audio_system const &)=delete |
audio_system & | operator= (audio_system &&)=delete |
virtual generator< audio_device & > | devices () noexcept=0 |
The devices that are part of the audio system. | |
template<forward_of< void()> Func> | |
callback< void()> | subscribe (Func &&func, callback_flags flags=callback_flags::synchronous) noexcept |
Subscribe a function to be called when the device list changes. | |
auto | operator co_await () const noexcept |
Static Public Member Functions | |
static audio_system & | global () noexcept |
Create an audio system object specific for the current operating system. | |
An system of audio devices. Systems are for example: Window Audio Session API (WASAPI), ASIO, Apple CoreAudio
|
pure virtualnoexcept |
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.
Implemented in hi::v1::audio_system_aggregate, and hi::v1::audio_system_win32.
|
inlinestaticnoexcept |
Create an audio system object specific for the current operating system.
|
inlinenoexcept |
Subscribe a function to be called when the device list changes.