Public bug reported:

I have a snap which when installed in devmode does not produce any audio
output, yet does when run without confinement.

https://code.launchpad.net/~popey/+junk/godot

Steps to reproduce:-

bzr branch lp:~popey/+junk/godot
cd godot
snap install godot_2.1.2_amd64.snap --dangerous --devmode

git clone https://github.com/godotengine/godot-demo-projects.git
cd godot-demo-projects/2d/platformer
godot

Game loads, no audio.

However, if you launch godot via:-

/snap/godot/current/Godot_v2.1.2-stable_x11.64

You do get audio.

I have tried with adding pulseaudio / libasound2 / libpulse0 to the
stage-packages, but that makes no difference.

Launching godot in an empty (as in, don't load and run a game, but load
the editor) directory results in:-

$ godot
PulseAudio ERR: Connection refused
ERROR: init: Condition ' pulse == __null ' is true. returned: ERR_CANT_OPEN
   At: drivers/pulseaudio/audio_driver_pulseaudio.cpp:80.
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file 
/usr/share/alsa/alsa.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
ERROR: init: Condition ' status<0 ' is true. returned: ERR_CANT_OPEN
   At: drivers/alsa/audio_driver_alsa.cpp:70.
ERROR: initialize: Initializing audio failed.
   At: platform/x11/os_x11.cpp:289.
WARNING: create: Config file does not exist, creating.
   At: tools/editor/editor_settings.cpp:337.

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1667746

Title:
  No (pulse) audio when in devmode or confined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1667746/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to