From: Ralph Katz on
On 07/17/2010 02:02 PM, Ron Johnson wrote:
> Sound plays fine from local sources but not from Flash/Iceweasel. (Yes,
> Flash *video* works.)

I sure remember struggling with flash audio issues over the years!
While I am clueless to offer additional hints on possible solutions, I
do have a trusty workaround for many (not all) flash renditions and
confess to using this regularly for playback navigation and speed control:

Pause playback in flashplayer. The file will continue to download.
Launch mplayer, play the file. Enjoy the movie.
ralph(a)spike ~$ cd /tmp;ls |grep Flash |xargs mplayer

Regards and good luck,
Ralph

P.S. Please cc: on replies as I'm not currently subscribed to d-u.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C437513.6020408(a)rcn.com
From: Ron Johnson on
On 07/18/2010 04:05 PM, Florian Kulzer wrote:
> On Sun, Jul 18, 2010 at 12:44:10 -0500, Ron Johnson wrote:
>> On 07/18/2010 03:54 AM, Florian Kulzer wrote:
>>> On Sat, Jul 17, 2010 at 18:41:35 -0500, Ron Johnson wrote:
>>>> On 07/17/2010 05:57 PM, Camale�n wrote:
>>>>> On Sat, 17 Jul 2010 17:13:35 -0500, Ron Johnson wrote:
>>>>>> On 07/17/2010 04:30 PM, Camale�n wrote:
>>>>>
>>>>>>> Run "alsamixer" and check the volume for all the channels :-?
>>>>>>>
>>>>>>>
>>>>>> First thing I did.
>>>>>>
>>>>>> Note, though, that for USB Audio there are only three channels: Bass,
>>>>>> Treble, PCM.
>>>>>>
>>>>>> No "Master". That may very well be the problem, but I don't know what
>>>>>> to do about it.
>
> [...]
>
>>>>> Maybe is not just Flash the only app having no sound in Iceweasel.
>>>>>
>>>>
>>>> MP3s play just fine.
>>>
>>> Knowing which audio devices are grabbed by which processes might shed
>>> some light on the situation; I would be interested to see the output of
>>>
>>> lsof +c0 $(find /dev/ -group audio)
>>>
>>> both when flashplayer tries and fails to play sound and when other
>>> plugins of iceweasel do so successfully.
>>>
>>
>> Attached are 3 files.
>>
>> I'm sure it's relevant (and I deeply apologize for forgetting about
>> this) that sound only plays *at all* when I've got this ~/.asoundrc
>> file:
>>
>> $ cat .asoundrc
>> pcm.!default {
>> type hw
>> card Device
>> }
>
> Strace shows that the plugin does try to access ~/.asoundrc, but I don't
> know what it makes of the information in that file. (I don't use
> ~/.asoundrc at the moment.)
>
>>> Another test would be if killing the pulseaudio daemon makes the sound
>>> devices accessible to flashplayer.
>>
>> I don't use PA.
>
> OK, I misinterpreted your earlier remark about PA.
>
>>> Also, which value of ICEWEASEL_DSP is set in /etc/iceweasel/iceweaselrc?
>>
>> "none"
>
> That has been working for me for years.
>

As it does on "my" computer, which is 64-bit, Flash 1.0.r45 but with
a "real" sound card.

>> $ lsof +c0 $(find /dev/ -group audio)
>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
>> mixer_applet2 2193 ron 21r CHR 116,9 0t0 3204 /dev/snd/controlC0
>> aqualung 3251 ron mem CHR 116,8 3201 /dev/snd/pcmC0D0p
>> aqualung 3251 ron 4r CHR 116,8 0t0 3201 /dev/snd/pcmC0D0p
>
>> $ lsof +c0 $(find /dev/ -group audio)
>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
>> mixer_applet2 2193 ron 21r CHR 116,9 0t0 3204 /dev/snd/controlC0
>
>> $ cat dsp.quiet.txt
>> lsof +c0 $(find /dev/ -group audio)
>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
>> mixer_applet2 2193 ron 21r CHR 116,9 0t0 3204 /dev/snd/controlC0
>
> Everything is normal with aqualung, but it looks like flashplayer does
> not even try to play audio. On my Sid systems it is not bothered at all
> by the fact that kmix has /dev/snd/controlC0 open, it simply uses
> /dev/snd/pcmC0D0p and /dev/snd/timer as needed.
>
> You could run iceweasel under strace:
>
> strace -f -efile -o iceweasel-flash.strace iceweasel
>
> Let a flash video play silently for a few seconds and then close the
> browser. Afterwards you can check what has been accessed:
>
> grep -E 'a(lsa|sound)|/dev/(a?dsp|audio|mixer|snd)' iceweasel-flash.strace
>

http://members.cox.net/ron.l.johnson/iceweasel-flash.strace.grep.txt

This might not be useful, since v3.6.4 uses plugin process separation.

> Before you break out the big guns, though, you can try to set
> ICEWEASEL_DSP to "aoss" (assuming you have "oss-compat" installed), or

Didn't work.
members.cox.net/ron.l.johnson/iceweasel-flash.aoss.strace.grep.txt

> maybe installing flashplugin-nonfree-extrasound will help, or switching

Didn't work either.

http://members.cox.net/ron.l.johnson/iceweasel-flash.aoss.extra.strace.grep.txt

> from flashplugin-nonfree to flashplayer-mozilla, or vice versa. (I did
> not read the entire thread, maybe some of these things were already
> suggested.)
>

flashplayer-mozilla has never worked for me.

--
Seek truth from facts.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C437950.50602(a)cox.net
From: Rob Owens on
On Sat, Jul 17, 2010 at 10:37:21PM -0700, Jimmy Johnson wrote:
> Ron Johnson wrote:
>> On 07/17/2010 04:09 PM, Jimmy Johnson wrote:
>
>>> Ron I've had that problem a couple times before, what I found was one of
>>> my channels was "not" selected in the volume control in Kmix.
>>
>> That's kinda where my thoughts have been leaning, since USB Audio only
>> have Bass, Treble and PCM in it's mixer. But I don't know what to do
>> about it.
>
>
> I hate sound problems, for me the channel was there, I only had to
> select it. Good luck.

I've found that sometimes gnome-alsamixer has channels/options that
regular alsamixer does not have. Maybe give it a try.

-Rob


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100718225313.GB19495(a)aurora.owens.net
From: Florian Kulzer on
On Sun, Jul 18, 2010 at 16:59:44 -0500, Ron Johnson wrote:
> On 07/18/2010 04:05 PM, Florian Kulzer wrote:
> >On Sun, Jul 18, 2010 at 12:44:10 -0500, Ron Johnson wrote:

[...]

> >>$ lsof +c0 $(find /dev/ -group audio)
> >>COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> >>mixer_applet2 2193 ron 21r CHR 116,9 0t0 3204 /dev/snd/controlC0
> >>aqualung 3251 ron mem CHR 116,8 3201 /dev/snd/pcmC0D0p
> >>aqualung 3251 ron 4r CHR 116,8 0t0 3201 /dev/snd/pcmC0D0p
> >
> >>$ lsof +c0 $(find /dev/ -group audio)
> >>COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> >>mixer_applet2 2193 ron 21r CHR 116,9 0t0 3204 /dev/snd/controlC0
> >
> >>$ cat dsp.quiet.txt
> >> lsof +c0 $(find /dev/ -group audio)
> >>COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> >>mixer_applet2 2193 ron 21r CHR 116,9 0t0 3204 /dev/snd/controlC0
> >
> >Everything is normal with aqualung, but it looks like flashplayer does
> >not even try to play audio. On my Sid systems it is not bothered at all
> >by the fact that kmix has /dev/snd/controlC0 open, it simply uses
> >/dev/snd/pcmC0D0p and /dev/snd/timer as needed.
> >
> >You could run iceweasel under strace:
> >
> > strace -f -efile -o iceweasel-flash.strace iceweasel
> >
> >Let a flash video play silently for a few seconds and then close the
> >browser. Afterwards you can check what has been accessed:
> >
> > grep -E 'a(lsa|sound)|/dev/(a?dsp|audio|mixer|snd)' iceweasel-flash.strace
> >
>
> http://members.cox.net/ron.l.johnson/iceweasel-flash.strace.grep.txt
>
> This might not be useful, since v3.6.4 uses plugin process separation.

The "-f" should take care of that. I use iceweasel 3.6.4 (from
experimental), too, so we can compare:

The first difference that I notice is that after reading your
~/.asoundrc, no further configuration is taken into account:

3470 access("/home/ron/.asoundrc", R_OK) = 0
3470 open("/home/ron/.asoundrc", O_RDONLY) = 17
3470 open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 17

In my case, without ~/.asoundrc, more configuration files are read:

6066 access("/home/florian/.asoundrc", R_OK) = -1 ENOENT (No such file or directory)
6066 open("/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 17
6066 open("/usr/share/alsa/pcm/default.conf", O_RDONLY) = 18
6066 open("/usr/share/alsa/pcm/dmix.conf", O_RDONLY) = 18
6066 open("/usr/share/alsa/pcm/dsnoop.conf", O_RDONLY) = 18
6066 open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 17

Maybe you should try to include these other configuration files in your
~/.asoundrc. I would also be tempted to test the effect of temporarily
removing your ~/.asoundrc. (You already said that this breaks all other
sound, but what does it do to flashplayer?)

After that, your flashplayer repeats this over and over:

3470 open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 17
3470 open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 17
3470 open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 17
3470 open("/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = 18
3470 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=8967, ...}) = 0

In my case, it opens some chipset-specific configuration files:

6066 open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 17
6066 stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=8967, ...}) = 0
6066 open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 17
6066 open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 17
6066 access("/usr/share/alsa/cards/ICH4.conf", R_OK) = 0
6066 open("/usr/share/alsa/cards/ICH4.conf", O_RDONLY) = 17
6066 open("/usr/share/alsa/pcm/front.conf", O_RDONLY) = 18
6066 open("/usr/share/alsa/pcm/surround40.conf", O_RDONLY) = 18
6066 open("/usr/share/alsa/pcm/surround41.conf", O_RDONLY) = 18
6066 open("/usr/share/alsa/pcm/surround50.conf", O_RDONLY) = 18
6066 open("/usr/share/alsa/pcm/surround51.conf", O_RDONLY) = 18
6066 open("/usr/share/alsa/pcm/iec958.conf", O_RDONLY) = 18

Then my flashplayer tries to open all other controls (controlCxx),
probably to check for further soundcards, and finally it accesses
controlC0, pcmC0D0p and timer.

It seems that your flashplayer does access the correct device and there
are no indications of problems with permissions or lockout by another
process, but it just does not know how to configure and use your
hardware properly. (Further thoughts from real ALSA experts would be
appreciated...)

> >Before you break out the big guns, though, you can try to set
> >ICEWEASEL_DSP to "aoss" (assuming you have "oss-compat" installed), or
>
> Didn't work.
> members.cox.net/ron.l.johnson/iceweasel-flash.aoss.strace.grep.txt
>
> >maybe installing flashplugin-nonfree-extrasound will help, or switching
>
> Didn't work either.
>
> http://members.cox.net/ron.l.johnson/iceweasel-flash.aoss.extra.strace.grep.txt

Indeed, neither of these changes seems to make a difference.

> >from flashplugin-nonfree to flashplayer-mozilla, or vice versa. (I did
> >not read the entire thread, maybe some of these things were already
> >suggested.)
> >
>
> flashplayer-mozilla has never worked for me.

My strace was from using flashplayer-mozilla, so maybe it is time to
give it another try. I am not too optimistic, though; the player seems
to have a fundamental problem with the configuration of your hardware.

--
Regards, |
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100718224349.GA7039(a)isar.localhost
From: Ron Johnson on
On 07/18/2010 05:53 PM, Rob Owens wrote:
> On Sat, Jul 17, 2010 at 10:37:21PM -0700, Jimmy Johnson wrote:
>> Ron Johnson wrote:
>>> On 07/17/2010 04:09 PM, Jimmy Johnson wrote:
>>
>>>> Ron I've had that problem a couple times before, what I found was one of
>>>> my channels was "not" selected in the volume control in Kmix.
>>>
>>> That's kinda where my thoughts have been leaning, since USB Audio only
>>> have Bass, Treble and PCM in it's mixer. But I don't know what to do
>>> about it.
>>
>>
>> I hate sound problems, for me the channel was there, I only had to
>> select it. Good luck.
>
> I've found that sometimes gnome-alsamixer has channels/options that
> regular alsamixer does not have. Maybe give it a try.
>

Is that System->Properties->Sound?

--
Seek truth from facts.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C438CAF.4040608(a)cox.net