<div dir="ltr"><font face="arial, sans-serif">Stephane...</font><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Thanks I'd seen what you'd done in the Arkose .py code but I didn't know enough about</font></div>
<div><font face="arial, sans-serif">pulseaudio to understand it at the time.</font></div><div><font face="arial, sans-serif"><br></font></div><div><span style="font-family:arial,sans-serif;font-size:13px">> arkose basically runs:</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">> pactl load-module module-native-protocol-unix socket=/some/path auth-cookie-enabled=0</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">></span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">> The bind-mounts that socket inside the container and exports</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">> PULSE_SERVER=/some/path in the container's environment.</span><font face="arial, sans-serif"><br>
</font></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>Last night I spent several hours reading various pulseaudio writeups and ended up experimenting</div><div>with using the "tcp" vs "unix" variation the PACTL load-module command:</div>
<div><br></div><div>Just for testing...</div><div><br></div><div><div><span style="font-family:arial,sans-serif;font-size:13px">In my Container I f</span><span style="font-family:arial,sans-serif;font-size:13px">irst made sure PulseAudio module-native-protocol-tcp is loaded and </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><div>limited access to the <host_IP> address</div><div><br></div></span></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>
<span style="font-family:arial,sans-serif;font-size:13px"><div><b>pactl load-module module-native-protocol-tcp auth-ip-acl="<host_IP address"</b></div></span></div></div></blockquote><div><span style="font-family:arial,sans-serif;font-size:13px"><div>
<br></div><div>then.. logged in via terminal I did the following:</div><div><br></div></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><span style="font-family:arial,sans-serif;font-size:13px"><div>
<b>export PULSE_SERVER=<host IP>:4713</b></div></span></div></div><div><div><span style="font-family:arial,sans-serif;font-size:13px">note: 4713 is the pulseaudio port </span></div></div></blockquote><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">then... just used aplay to see if it worked and - This worked Great... and allows BOTH Host and Container to play sound concurrently...</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><b><span style="font-family:arial,sans-serif;font-size:13px">aplay /usr/share/</span><span class="" style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px">sounds</span><span style="font-family:arial,sans-serif;font-size:13px">/alsa/Front_</span><span style="font-family:arial,sans-serif;font-size:13px">Center.wav</span></b></div>
</blockquote><div><br></div><div>All of the above was after I'd already created the /dev/snd device files using the MKNOD script I'd described in my earlier email/document.</div><div><br></div><div><b>NOTE: the good part of using the above was that I had sound playing on my HOST OS </b><b> <u> simultaneously</u> with the LXC Container aplay doing sound in the container.</b></div>
<div><br></div><div>This was VERY simple once I understood the PulseAudio side better. I used the </div><div><b style="font-family:arial,sans-serif;font-size:13px"><br></b></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><b style="font-family:arial,sans-serif;font-size:13px">pactl load-module module-native-protocol-tcp</b></div><div>instead of the </div><div><b style="font-family:arial,sans-serif;font-size:13px">pactl load-module module-native-protocol-unix</b></div>
</blockquote><div><b style="font-family:arial,sans-serif;font-size:13px"><br></b></div><div><span style="font-family:arial,sans-serif;font-size:13px"><i>From what I read (tcp) was meant to allow sending Sound over a network/wan which in my longer term use-case with remote desktops to containers is what I want.</i></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I'll again try to re-write my previous doc as suggest by Serge into 2 different docs to make this all easier to follow. The overall sound setup side should be a lot shorter & simpler.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Brian Mullan</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><b style="font-family:arial,sans-serif;font-size:13px"><br></b></div><div><br></div><div><br></div><div><br></div></div>