[JavaGame] A snap question for audio.

Zygmunt Krynicki zygmunt.krynicki at canonical.com
Thu Aug 11 11:00:37 UTC 2016


> El 11 ago 2016, a las 7:37, Howy Wang <howy.wang at canonical.com> escribió:
> 
> Hi there,
> 
> I made a snap, javagame and it works well.
> Now the snap upload for javagame.howy to the Ubuntu Store has been approved.
> But I found something wrong with audio, the following is the wrong message during running the snap.

Do you see any denials in the system log? You can check for them using journalctl -f when you start the game.

> 
> [MUSIC][11:39:29] Playing song: Towards The End
> [ERROR][11:39:29] Problem playing file sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream at 61ab49d
> [ERROR][11:39:29]javazoom.jl.decoder.JavaLayerException: Cannot create AudioDevice
> [MUSIC][11:39:29] Playing song: yoshi song
> [ERROR][11:39:29] Problem playing file sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream at 35104da8
> [ERROR][11:39:29]javazoom.jl.decoder.JavaLayerException: Cannot create AudioDevice
> 
> I have checked my snapcraft.yaml has "plugs" with pulseaudio and "$ snap interfaces" has ":pulseaudio javagame:, too.
> This is the $ snap interfaces 
> 
> howy at howy-Vostro-14-5480:~/examples/java$ snap interfaces 
> Slot                 Plug
> :camera              -
> :cups-control        -
> :firewall-control    -
> :gsettings           -
> :hardware-observe    -
> :home                atom-cwayne,javagame,jtiledownloader,openjdk-demo,qtclocks,wallpaperdownloader
> :locale-control      -
> :log-observe         snappy-debug
> :modem-manager       -
> :mount-observe       -
> :network             jtiledownloader,openjdk-demo
> :network-bind        javagame,jtiledownloader,wallpaperdownloader
> :network-control     -
> :network-manager     -
> :network-observe     -
> :opengl              game-2048
> :optical-drive       -
> :ppp                 -
> :pulseaudio          javagame
> :snapd-control       -
> :system-observe      -
> :timeserver-control  -
> :timezone-control    -
> :unity7              game-2048,openjdk-demo,qtclocks
> :x11                 game-2048,javagame,jtiledownloader,qtclocks,wallpaperdownloader
> 
> Any suggestions or examples can help to solve audio issue? 
> Thank you.
> 
> -- 
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160811/5fda5103/attachment.html>


More information about the Snapcraft mailing list