diff options
author | Chris Robinson <[email protected]> | 2020-06-15 14:07:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-06-15 14:07:21 -0700 |
commit | c142b49981b57bdd50f20b6e916ead92ca9f044d (patch) | |
tree | ec71762217393775d523a9ea253331fad45285d8 | |
parent | 6db6d1510a0c5404b65cbf6598615d173b9b374e (diff) |
Print the name of unhandled PulseAudio channels
-rw-r--r-- | alc/backends/pulseaudio.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp index 9281506c..f110af7d 100644 --- a/alc/backends/pulseaudio.cpp +++ b/alc/backends/pulseaudio.cpp @@ -102,6 +102,7 @@ namespace { MAGIC(pa_channel_map_snprint); \ MAGIC(pa_channel_map_equal); \ MAGIC(pa_channel_map_superset); \ + MAGIC(pa_channel_position_to_string); \ MAGIC(pa_operation_get_state); \ MAGIC(pa_operation_unref); \ MAGIC(pa_sample_spec_valid); \ @@ -165,6 +166,7 @@ PULSE_FUNCS(MAKE_FUNC) #define pa_channel_map_snprint ppa_channel_map_snprint #define pa_channel_map_equal ppa_channel_map_equal #define pa_channel_map_superset ppa_channel_map_superset +#define pa_channel_position_to_string ppa_channel_position_to_string #define pa_operation_get_state ppa_operation_get_state #define pa_operation_unref ppa_operation_unref #define pa_sample_spec_valid ppa_sample_spec_valid @@ -277,7 +279,7 @@ al::optional<Channel> ChannelFromPulse(pa_channel_position_t chan) case PA_CHANNEL_POSITION_TOP_REAR_CENTER: return al::make_optional(TopBackCenter); case PA_CHANNEL_POSITION_MAX: break; } - WARN("Unexpected channel enum %d\n", chan); + WARN("Unexpected channel enum %d (%s)\n", chan, pa_channel_position_to_string(chan)); return al::nullopt; } |