7#include "../utility/utility.hpp"
8#include "../macros.hpp"
12hi_export_module(hikogui.audio.audio_device_state);
14hi_export
namespace hi {
inline namespace v1 {
16hi_export
enum class audio_device_state { uninitialized, active, disabled, not_present, unplugged };
19hi_export
constexpr auto audio_device_state_metadata = enum_metadata{
20 audio_device_state::uninitialized,
"uninitialized",
21 audio_device_state::active,
"active",
22 audio_device_state::disabled,
"disabled",
23 audio_device_state::not_present,
"not_present",
24 audio_device_state::unplugged,
"unplugged",
28hi_export [[nodiscard]]
constexpr std::string_view
to_string(audio_device_state
const& rhs)
noexcept
30 return audio_device_state_metadata[rhs];
37struct std::formatter<
hi::audio_device_state, char> : std::formatter<std::string_view, char> {
38 auto format(hi::audio_device_state
const& t,
auto& fc)
const
40 return std::formatter<std::string_view, char>::format(hi::audio_device_state_metadata[t], fc);
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20