7#include "../utility/utility.hpp"
8#include "../macros.hpp"
12hi_export_module(hikogui.audio.audio_device_state);
14namespace 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];
35template<
typename CharT>
36struct std::formatter<
hi::audio_device_state, CharT> : std::formatter<std::string_view, CharT> {
37 auto format(hi::audio_device_state
const& t,
auto& fc)
const
39 return std::formatter<std::string_view, CharT>::format(hi::audio_device_state_metadata[t], fc);
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377