So I did two things to resolve this, I'm not sure if one of them was necessary, but...
1) I changed my app command to "env SDL_AUDIODRIVER=pulseaudio desktop-launch $SNAP/bin/[myprog]" 2) I changed the confinement from strict to devmode. It's probably the latter that solved the problem. If the snapcraft developers are interested in testing out why audio doesn't work in strict mode, they can use my program as an test case, if they cared to. On Sun, Sep 25, 2016 at 6:28 PM, Spencer Parkin <[email protected]> wrote: > Hi, > > I'm adding sound-fx to my snap-app and am running into the common problem > of "it works in my real system, but not in the confined system." I'm not > sure how to trouble-shoot this problem. I've added the "pulseaudio" plug > to my snapcraft.yaml file, "snap interface" reports that my snap-app is > using the "pulseaudio" plug, I've tried exporting the > "SDL_AUDIODRIVER=pulseaudio" environment variable before running my snap to > make sure that I'm using the appropriate audio back-end. Hmmm...maybe > snap-apps can't read environment variables? Maybe I need to configure some > env-vars in my snapcraft.yaml file? I'll try to see how to setup the > environment (env-vars) for snaps. > > Anyhow, I can hear my sound-fx when run on my real system, but not under > unbuntu core. > > Thanks for any ideas you may have, > --Sp >
-- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
