I've got a chroot environment with the same architecture as host environment. I'm trying to get apps from chroot be able to play sound with PulseAudio. I've tried the tutorial from Arch Wiki and http://blog.einval.com/2010/11/12, neither of them worked for me. My $HOME is set to /root, and I have root permissions in the chroot environment. I get the following error:
root@chroot:/# paplay -v /root/test.wav Opening a playback stream with sample specification 's16le 2ch 44100Hz' and channel map 'front-left,front-right'. Connection failure: Connection refused pa_context_connect() failed: Connection refused
EDIT: I've just been stupid and assumed /var/lib/dbus/ is mounted in chroot while it wasn't mounted. Following http://blog.einval.com/2010/11/12 carefully fixed everything. Thanks for your attention.