|
HikoGUI
A low latency retained GUI
|
#include <hikogui/audio/audio_system.hpp>
Public Types | |
| using | notifier_type = notifier<> |
| using | callback_token = notifier_type::callback_token |
| using | callback_proto = notifier_type::callback_proto |
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. | |
| 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 |
Static Public Member Functions | |
| static std::unique_ptr< audio_system > | make_unique () 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 v1::audio_system_aggregate, and v1::audio_system_win32.
|
staticnoexcept |
Create an audio system object specific for the current operating system.
|
inlinenoexcept |
Subscribe a function to be called when the device list changes.