diff options
author | Ilya Fedin <[email protected]> | 2021-03-18 04:16:09 +0400 |
---|---|---|
committer | Ilya Fedin <[email protected]> | 2021-03-18 04:34:57 +0400 |
commit | b7ff1de48efda9ad54e6a3b4c1526722c371e832 (patch) | |
tree | e02c868c9cf60b99dc64c30b537a52b31d3b3045 /alc/backends/pulseaudio.cpp | |
parent | 743f0931c60a814d959ec8f9546f8c3fcfc5ddba (diff) |
Don't force application name with pulseaudio
Diffstat (limited to 'alc/backends/pulseaudio.cpp')
-rw-r--r-- | alc/backends/pulseaudio.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp index 90f56968..448cce94 100644 --- a/alc/backends/pulseaudio.cpp +++ b/alc/backends/pulseaudio.cpp @@ -38,7 +38,6 @@ #include "alcmain.h" #include "alu.h" #include "alconfig.h" -#include "compat.h" #include "core/logging.h" #include "dynload.h" #include "strutils.h" @@ -497,19 +496,13 @@ public: pa_context *PulseMainloop::connectContext(std::unique_lock<std::mutex> &plock) { - const char *name{"OpenAL Soft"}; - - const PathNamePair &binname = GetProcBinary(); - if(!binname.fname.empty()) - name = binname.fname.c_str(); - if(!mMainloop) { mThread = std::thread{std::mem_fn(&PulseMainloop::mainloop_proc), this}; mCondVar.wait(plock, [this]() noexcept { return mMainloop; }); } - pa_context *context{pa_context_new(pa_mainloop_get_api(mMainloop), name)}; + pa_context *context{pa_context_new(pa_mainloop_get_api(mMainloop), nullptr)}; if(!context) throw al::backend_exception{al::backend_error::OutOfMemory, "pa_context_new() failed"}; |