LinHES Forums
http://forum.linhes.org/

Flash Player Audio Over Digital Soundcard?
http://forum.linhes.org/viewtopic.php?f=21&t=23999
Page 1 of 2

Author:  opel70 [ Mon May 12, 2014 12:49 pm ]
Post subject:  Flash Player Audio Over Digital Soundcard?

I know I have this issue way back when I set up my R7.1 computer. Of course, I didn't print out any steps and I am not seeing anything in these forums about this. I have my R8.1 setup mostly working, but ran into one issue yesterday. I went to watch a video from the CBS site (for a show that didn't record while I was fixing my setup). The video played fine in the installed Chrome browser, but there was no audio. Then I remembered that I had to do something special to get the audio from flash to go out over my SPDIF connection on my Chaintech AV710 soundcard. Does anyone here know what that something special is?

Author:  brfransen [ Mon May 12, 2014 1:28 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

You need to create a /etc/asound.conf (or ~/.asoundrc) to set SPDIF as default. If you have a backup from your R7.x install the same settings you used there should work in R8.x.

BTW, in testing (which will become R8.2) the asound.conf will be created when setting the default audio device in LinHES Settings --> Audio Settings. See http://linhes.org/issues/960

Author:  opel70 [ Mon May 12, 2014 5:59 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

Thanks, as soon as I read it, it all came rushing back. I had my asound.conf in my backup, once I placed the file and rebooted, sound was once again working in flash.

Author:  mattbatt [ Mon May 12, 2014 10:22 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

opel70 wrote:
sound was once again working in flash.


Pun intended?

Author:  Girkers [ Sat May 24, 2014 11:15 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

As my problem is exactly this I thought I would continue on in this thread instead of starting a new one with virtually the same title.

When I first install v8 sound in Chromium and Apple Trailers worked and then over time something happened and then suddenly they didn't. I went through the update from v8 to v8.1 and I still have the problem. No sound on apple trailers and no sound in Google Chrome. Yes I do get sound in normal operation of MythTV.

I have created a /etc/asound.conf
Code:
pcm.!default {
    type plug
    slave.pcm {
        type hw
        card 0
        device 7
    }
}


MythTV audio setting for output device is
Code:
ALSA:hdmi:CARD=NVidia,DEV=1


aplay -L
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output


aplay -l
Code:
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Yet I can't get it to work.

I just put the aforementioned /etc/asound.conf on my frontend computer and it works a treat. So can anyone offer up some wisdom as to what is going on so that I can get sound on my main FE for Apple Trailers and Google Chrome, as this is really affecting my WAF.

Thanks

Author:  brfransen [ Sun May 25, 2014 7:23 am ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

Try this in your /etc/asound.conf:
Code:
pcm.!default "plughw:0,7"
Also make sure you don't have a ~/.asoundrc as I think that would take precedence over /etc/asound.conf.

Author:  Girkers [ Mon Jun 02, 2014 2:45 am ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

From memory I had tried that but for giggles (and other things) I tried it again, but no change.

Any other suggestions?

Author:  brfransen [ Mon Jun 02, 2014 6:55 am ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

Did you try device 3 or 9? All my current nVidia cards are device 7 but I use to have one that I could only get sound on device 3.

Author:  Girkers [ Mon Jun 02, 2014 2:51 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

Okay this is my bad, Flash audio is working. Using chrome I was able to watch and hear a youtube clip.

It is Apple trailers that are not playing sound, my bad for not defining the problem correctly. I will start a new thread for this problem.

Author:  opel70 [ Mon Nov 24, 2014 9:15 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

Ok, all of the sudden I am back to having this issue. Everything had been working without issues, and then one day we stopped having audio in Flash again. The only thing that happened is the power went out, so my frontend PC just was powered off. I don't know if this issue started right after that, but it is the only thing that has happened. I just upgraded to 8.2, to see if that would resolve the issue since it should write the asound.conf file properly. But still nothing.

The asound.conf that always used to work is:
Code:
pcm.spdifdmix {
        type dmix
        ipc_key 1337
        slave {
                pcm "hw:0,1"
      format S32_LE
      period_time 0
      period_size 1024
      buffer_size 8096
      rate 44100
        }
}

pcm.!default {
        type plug
        slave {
      pcm spdifdmix
        }
}

Any other ideas?

Author:  mattbatt [ Mon Nov 24, 2014 9:29 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

I had problems with cards taking priority differently if they the system was powered off or just rebooted (it was weird). Have you tried rebooting the system?

Author:  opel70 [ Mon Nov 24, 2014 9:31 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

I've rebooted. Though now I just deleted the asound.conf again and gone through the LinHES Settings / Audio and had it recreate the file (one more time) and it is working again.

Too strange.

Author:  mattbatt [ Tue Nov 25, 2014 4:08 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

yay!! MythTv settings can be correct and work even if LinHES settings are wrong.

Author:  mattbatt [ Mon Dec 08, 2014 10:22 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

So here is a weird thing. My audio settings in LinHES have been set correctly since the upgrade. I had an AVI file that the internal player didn't like so I tried playing it with Mplayer. There was no audio. Because of this post I went into LinHES settings and found that the settings had been changed from Digital and HDMI 1,9 to Analog and Analog device (number whatever). The weird thing is that Chrome and YouTube were working fine. It's weird that we had the same problem.

Author:  nicom [ Tue Jan 06, 2015 9:56 pm ]
Post subject:  Re: Flash Player Audio Over Digital Soundcard?

My system has also developed a problem playing digital audio from the browser and I have not been able to solve it. Everything else is working fine. I originally had neither a ~/.asoundrc nor a /etc/asound.conf. I also checked me 7.4 setup which is still sitting on a partition and it also had neither.

I went through the LinHES Settings-->Audio Settings again including loading ALSA drivers but no files were generated. I tried creating a ~/.asoundrc as follows
Code:
$ cat .asoundrc
pcm.!default {
        type hw
        card 0
        device 1
}
based on a output from aplay -l of
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
and still no joy.

I've tried to read the ALSA web page about asoundrc but cannot see anything particularly relevant. Does anyone have any ideas? When I first started investigating, analogue sound was still available through the headphone jack but now even that has gone.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/