Version 0.1 of the plugin uses pulseaudio 1.1 built by opensuse and the current version uses pulseaudio 13.0 built by me (so I was thinking there could be an issue with that build), but you can mix and match the libary dlls between versions of the plugin, the ABI is the same. I'm not sure why 0.1 won't connect, does it not connect with IP auth enabled either?
Ah, I overlooked the part where you said you got v13 to build! 0.1 works with IP auth. Without, the output looks more or less the same as your build.
Could you give me your distribution/version and wine version? Maybe I can try in a VM.
I'm certain you don't want to go there. I'm running gentoo. It would take considerable time and effort to set it all up. Wine version is wine-vanilla 5.0.1.
If you're willing, these are the kinds of changes I had in mind. I've made no attempt to run this through a compiler, so please forgive any syntax errors.
--- authkey.c.orig 2020-09-28 19:40:28.894629026 -0700
+++ authkey.c 2020-09-28 20:02:28.404587200 -0700
@@ -76,24 +76,29 @@
int unlock = 0, ret = -1;
ssize_t r;
+ pa_log("load() function, cookie filename: %s", fn);
pa_assert(fn);
pa_assert(data);
pa_assert(length > 0);
if (create)
+ pa_log("About to call pa_make_secure_parent_dir()");
pa_make_secure_parent_dir(fn, pa_in_system_mode() ? 0755U : 0700U, -1, -1, false);
+ pa_log("About to call pa_open_cloexec()");
if ((fd = pa_open_cloexec(fn, (create ? O_RDWR|O_CREAT : O_RDONLY)|O_BINARY, S_IRUSR|S_IWUSR)) < 0) {
-
if (!create || errno != EACCES || (fd = open(fn, O_RDONLY|O_BINARY)) < 0) {
- pa_log_warn("Failed to open cookie file '%s': %s", fn, pa_cstrerror(errno));
+ pa_log("Failed to open cookie file '%s': %s", fn, pa_cstrerror(errno));
goto finish;
} else
+ pa_log("pa_open_cloexec() else condition");
writable = 0;
}
+ pa_log("About to call pa_lock_fd()");
unlock = pa_lock_fd(fd, 1) >= 0;
+ pa_log("About to call pa_loop_read()");
if ((r = pa_loop_read(fd, data, length, NULL)) < 0) {
pa_log("Failed to read cookie file '%s': %s", fn, pa_cstrerror(errno));
goto finish;
@@ -168,21 +173,26 @@
ssize_t r;
char *p;
+ pa_log("pa_authkey_save() function, cookie filename: %s", fn);
pa_assert(fn);
pa_assert(data);
pa_assert(length > 0);
if ((ret = normalize_path(fn, &p)) < 0)
return ret;
+ pa_log("Normalized path: %s", fn);
+ pa_log("About to call pa_open_cloexec()");
if ((fd = pa_open_cloexec(p, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
- pa_log_warn("Failed to open cookie file '%s': %s", fn, pa_cstrerror(errno));
+ pa_log("Failed to open cookie file '%s': %s", fn, pa_cstrerror(errno));
ret = -1;
goto finish;
}
+ pa_log("About to call pa_lock_fd()");
unlock = pa_lock_fd(fd, 1) >= 0;
+ pa_log("About to call pa_loop_write()");
if ((r = pa_loop_write(fd, data, length, NULL)) < 0 || (size_t) r != length) {
pa_log("Failed to read cookie file '%s': %s", fn, pa_cstrerror(errno));
ret = -1;