49 if (t == audio_device_id::none) {
51 }
else if (t == audio_device_id::win32) {
53 for (
auto i = 1_uz; i != size(rhs._v); ++i) {
54 if (
auto c = rhs._v[i]) {
76 hi_parse_check(size(rhs) <= size(r._v),
"win32-audio_device_id pickle size to large {}", rhs);
78 r._v[0] = audio_device_id::win32;
80 for (; i != size(rhs); ++i) {
83 if (i != size(r._v)) {
89 throw parse_error(std::format(
"audio_device_id pickle unknown type {}", t));
96 if (
auto *s = get_if<std::string>(rhs)) {
100 throw parse_error(std::format(
"audio_device_id must be encoded as a string, got {}", rhs));