Closed zhujisheng closed 4 years ago
When connecting to PulseAudio, the state may be PA_CONTEXT_FAILED, which means the connection failed, and shouldn't wait forever. If this happen, an assert error is raised.
Thank you very much for your pull request! This looks perfect!
Out of curiosity, did you find a definition for the sequence of pa_context_states beyond the enum names?
pa_context_state
https://freedesktop.org/software/pulseaudio/doxygen/def_8h.html#a892684c03cf9edaed1a95e609ec7573c
When connecting to PulseAudio, the state may be PA_CONTEXT_FAILED, which means the connection failed, and shouldn't wait forever. If this happen, an assert error is raised.