[Bug 1598309] Re: The aplay command doesn't work

2018-01-18 Thread Jamie Strandboge
FYI, Martin posted this to the forum recently that should make things
easier: https://forum.snapcraft.io/t/reusable-alsa-lib-part/3556

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1598309] Re: The aplay command doesn't work

2017-02-19 Thread Nikolay
No, I didn't...
After I ran
sudo snap connect alsa-utils:alsa :alsa
alsa-utils.speaker-test works for me. Thank you, Oliver.

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-02-15 Thread Oliver Grawert
did you connect the alsa interface to your snap ?

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-02-15 Thread Nikolay
Hello, sample(with alsa-util) in the begging of this thread doesnt work for me.
$ alsa-utils.speaker-test 

speaker-test 1.1.0

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

I added pulseaudio into stage packages and it doesn't work too.
$ alsa-utils.speaker-test 

speaker-test 1.1.0

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib conf.c:3357:(snd_config_hooks_call) Cannot open shared library 
libasound_module_conf_pulse.so
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory

I'm using snan on amd64 machine.
$ snap version
snap2.21
snapd   2.21
series  16
ubuntu  16.04

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-02-11 Thread Dev
Thanks @ads2!
Adding stage-package: "pulseaudio" fix this issue.

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-02-07 Thread Dev
I have an electron snap package deployed and when installing on a Ubuntu
14.04LTS, I have the same issue:

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
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 plug:default

snap.yaml is:
apps:
  bayam:
command: command-bayam.wrapper
plugs:
- home
- x11
- unity7
- browser-support
- network
- gsettings
- pulseaudio
- opengl

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-02-06 Thread Ads20000
I'm really sorry Jamie I missed that comment and so I didn't follow up, will 
bring it up on Rocket tomorrow. I'm working with Martin Wimpress to Snap that 
app now and he said just to use pulseaudio as a plug and a build-depend, that 
gets sound to work.
I guess it would be good if ALSA worked easily too so I will mention that to 
the Snapcraft team in Rocket tomorrow.

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-02-06 Thread Ads20000
*stage-package, not build-depend, I keep saying that...

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-01-12 Thread Jamie Strandboge
@Ads2, devmode won't help because /usr/share/alsa/alsa.conf isn't in
the core snap. See
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1598309/comments/5
for what you need to do to make ALSA look in the right place for its
configuration.

I think someone may have been working on a snapcraft part to make this
easier for people. Perhaps file a new bug about making it easier to use
ALSA and/or ask on the mailing list/rocket/irc on the status of that
work?

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2017-01-12 Thread Ads20000
Hi, I'm attempting to snap [Spotify Web Player for
Linux](https://github.com/Quacky2200/Spotify-Web-Player-for-Linux) using
Electron Builder (and making custom modifications to the snapcraft.yaml
file where necessary) and sound doesn't work and I still get the `ALSA
lib conf.c:3759:(snd_config_update_r) Cannot access file
/usr/share/alsa/alsa.conf` messages even after using devmode and adding
the pulseaudio and alsa plugs. The snapcraft.yaml I'm using (generated
by Electron Builder and then modified) is
[here](https://gist.github.com/Ads2/5685a7197bb94881878ad1d1beba62c2).

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-12-02 Thread Launchpad Bug Tracker
This bug was fixed in the package snapd - 2.18+17.04ubuntu3

---
snapd (2.18+17.04ubuntu3) zesty; urgency=medium

  * disable ppc64el autopkgtest for now, it never worked but for
some reason autopkgtest thinks it did at some point and asking
for correction of the DB was not successful so far

 -- Michael Vogt   Fri, 02 Dec 2016 16:27:34
+0100

** Changed in: snapd (Ubuntu)
   Status: Fix Committed => Fix Released

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-11-16 Thread Jamie Strandboge
A new alsa interface is now committed to trunk.

** Changed in: snapd (Ubuntu)
   Status: In Progress => Fix Committed

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-11-14 Thread Jamie Strandboge
@Bruno - I looked into this a little bit and ALSA doesn't allow you to
override the ALSA_CONFIG_DIR in the default configuration. However, your
snap can ship a configuration that you point ALSA_CONFIG_PATH at and
that configuration file can be setup to work. I'm not an ALSA developer
and have only sketched out the following snap so that I might develop
security policy for an alsa interface:
https://git.launchpad.net/~jdstrand/+git/alsa-utils?h=master

What it does is:
- ship a wrapper in files/bin/wrapper that sets 
ALSA_CONFIG_PATH="$SNAP/etc/alsa.conf"
- ship files/etc/alsa.conf that is a modified version of 
/usr/share/alsa/alsa.conf that substitutes references to datadir with values in 
/snap/alsa-utils/current. ALSA supports 'getenv' in the configuration files so 
it shouldn't be too much work for someone to getenv the $SNAP dir instead of 
hard-coding /snap/alsa-utils/current
- ships files/etc/alsa/cards/* that are modified versions of 
/usr/share/alsa/cards/* that replace 'confdir:pcm' with 
'/snap/alsa-utils/current/usr/share/alsa/pcm'

With the above, in devmode can:

$ alsa-utils.speaker-test
$ alsa-utils.aplay /snap/alsa-utils/current/usr/share/sounds/alsa/Noise.wav
$ alsa-utils.arecord ~/snap/alsa-utils/common/out.wav
$ alsa-utils.aplay ~/snap/alsa-utils/common/out.wav

I suspect a snapcraft part would be worthwhile for setting up the
wrapper, alsa.conf and sed'ing the /usr/share/alsa/cards/*.conf files?

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-11-14 Thread Jamie Strandboge
** Changed in: snapd (Ubuntu)
   Status: Confirmed => In Progress

** Changed in: snapd (Ubuntu)
 Assignee: (unassigned) => Jamie Strandboge (jdstrand)

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-07-27 Thread Alberto Salvia Novella
** Changed in: snapd (Ubuntu)
   Importance: Undecided => Medium

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-07-20 Thread Jamie Strandboge
Note that if the alsa packaging issues are resolved then direct access
to /dev/snd/* devices will be needed as well. These aren't (and
shouldn't) be included in pulseaudio because with pulseaudio snaps talk
to pulseaudio and it is pulseaudio that has direct hardware access (this
also happens to be a secure way of handling audio-- in general it is
much better when you don't have to hand out device files to snaps). In
other words, if direct alsa access is deemed worthwhile, it should be
its own interface.

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-07-18 Thread Daniel Holbach
** Tags added: snapd-interface

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-07-11 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: snapd (Ubuntu)
   Status: New => Confirmed

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-07-03 Thread Bruno Nova
Tried that now. There's a new error:

ALSA lib conf.c:3544:(snd_config_hook_load) cannot stat file/directory 
/usr/share/alsa/cards/aliases.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
aplay: main:722: audio open error: No such file or directory

The config file declares that path, along with other ones, relative to "{ @func 
datadir }".
This may require bundling custom alsa config files, or could that "datadir" be 
overridden by an environment variable?

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1598309] Re: The aplay command doesn't work

2016-07-02 Thread Oliver Grawert
did you try shipping libasound2-data in your stage-packages and set 
ALSA_CONFIG_PATH [1] in a wrapper ?
/usr/share/alsa/alsa.conf is a generic file, you do not necessarily need to 
access the one from the host machine.


[1] http://www.alsa-project.org/main/index.php/LibEnvVars

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

Title:
  The aplay command doesn't work

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs