LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Flash does not like pulseaudio (https://www.linuxquestions.org/questions/slackware-14/flash-does-not-like-pulseaudio-4175502291/)

Gumboherpy 04-19-2014 11:57 AM

Flash does not like pulseaudio
 
I get no sound from flash with pulse audio, it does not detect it, and I put the asoundrc in /etc and still no luck.

Youtube videos won't play at all and other sites play with no sound, pulse works with everything else though.

I need to use it to record internal audio and using the alsa loopback yeilds the same result.

Any suggestions? I use Slackware 14.1

asoundrc

Code:

    pcm.pulse {
        type pulse
    }

    ctl.pulse {
        type pulse
    }

    pcm.!default {
        type pulse
    }

    ctl.!default {
        type pulse
    }


Mark Pettit 04-19-2014 12:13 PM

Pulseaudio = Lennart Poettering. No-one like PulseAudio.

bartgymnast 04-19-2014 12:20 PM

Hi Gumboherpy,

pulseaudio is not supported in flash.

the following configuration file could solve the problem.

/etc/asound.conf

Code:

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:


ReaperX7 04-19-2014 06:01 PM

Unfortunately Flash was geared more with ALSA's dmix and OSS's ossmix in mind rather that pulseaudio. You'll have to use them if you want Flash audio media.

Gumboherpy 04-19-2014 08:53 PM

The above input did not help things at all, videos in youtube play now but still no sound. I am willing to ditch pulseaudio but I need somehow to record internal computer audio. (for gameplay recordings and such) I tried setting up an alsa loopback and that yeilded no results, same thing. Anyway you guys know on how to record computer audio? Thanks.

Cheesesteak 04-19-2014 09:31 PM

Check out AlienBob's blog posts:

A journey into recording sound & video in Slackware

Setting up Jack Audio in Slackware

genss 04-19-2014 09:34 PM

something like this
http://www.swview.org/blog/how-redir...sa-output-file



as for the PA problem
i read somewhere that flash is hardcoded to the first card, maybe PA causes that problem (?idk)

ReaperX7 04-20-2014 06:34 AM

JACK and ESounD work with ALSA directly via routing audio streams rather than against it trying to force it across an API layer. You might have better results with those. As Eric said in that blog, ESounD does take some work, but it works rather well. JACK is just dynamite however.

http://slackbuilds.org/repository/14.1/audio/jack2/

JACK2 is the more modernized version. And the JACK homepage has plenty or articles to set it up.

Gumboherpy 04-20-2014 09:38 PM

Okay so I tried following Alienbob's tutorial and everytime I try to run the alsa2jack loopback I get this error via terminal.

Code:

herpy ~
$ /usr/local/bin/loop2jack
--- start
ERROR:dbus.proxies:Introspect error on :1.66:/org/jackaudio/Controller: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
DBus exception: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.66 was not provided by any .service files
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Could not open component .so '/usr/lib/jack/jack_netone.so': /usr/lib/jack/jack_netone.so: undefined symbol: opus_custom_mode_create
Could not open component .so '/usr/lib/jack/jack_netone.so': /usr/lib/jack/jack_netone.so: undefined symbol: opus_custom_mode_create
jack_get_descriptor : dll jack_netone.so is not a driver
Could not open component .so '/usr/lib/jack/jack_netone.so': /usr/lib/jack/jack_netone.so: undefined symbol: opus_custom_mode_create
Could not open component .so '/usr/lib/jack/jack_netone.so': /usr/lib/jack/jack_netone.so: undefined symbol: opus_custom_mode_create
jack_get_descriptor : dll jack_netone.so is not a driver
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JACK server not running?
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JACK server not running?
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JACK server not running?
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JACK server not running?
herpy ~
$ Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
jack server not running?
jack server is not running or cannot be started
jack server not running?
$

aplay -l spits this out

Code:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 3: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 3: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice

This is what my asoundrc looks like

Code:

# ------------------------------------------------------
# hardware 0,0 : used for ALSA playback
pcm.loophw00 {
  type hw
  card Loopback
  device 0
  subdevice 0
  format S32_LE
  rate 44100
}

# ------------------------------------------------------
# hardware 0,1 : used for ALSA capture
pcm.loophw01 {
  type hw
  card Loopback
  device 0
  subdevice 1
  format S32_LE
  rate 44100
}

# ------------------------------------------------------
# playback PCM device: using loopback subdevice 0,0
pcm.amix {
  type dmix
  ipc_key 196101
  slave {
    pcm "loophw00"
    buffer_size 8192
    period_size 4096
    periods 2
  }
}

# capture PCM device: using loopback subdevice 0,1
pcm.asnoop {
  type dsnoop
  ipc_key 196102
  slave {
  pcm loophw01
  period_size 4096
  periods 2
  }
}

# ------------------------------------------------------
# software volume
pcm.asoftvol {
  type softvol
  slave.pcm "amix"
  control { name PCM }
  min_dB -51.0
  max_dB  0.0
}

# ======================================================

# ------------------------------------------------------
# duplex device combining our PCM devices defined above
pcm.aduplex {
  type asym
  playback.pcm "asoftvol"
  capture.pcm "loophw01"
  hint {
    description "ALSA->JACK Loop Bridge"
  }
}

# ======================================================

# ------------------------------------------------------
# Mixer control definitions to keep JACK and some other apps happy
ctl.amix {
    type hw
    card Loopback
}

ctl.asnoop {
    type hw
    card Loopback
}

ctl.aduplex {
    type hw
    card Loopback
}

# ======================================================

# ------------------------------------------------------
# for jack alsa_out: looped-back signal at other end
pcm.ploop {
  type hw
  card Loopback
  device 1
  subdevice 1
  format S32_LE
  rate 44100
}

# ------------------------------------------------------
# for jack alsa_in: looped-back signal at other end
pcm.cloop {
  type hw
  card Loopback
  device 1
  subdevice 0
  format S32_LE
  rate 44100
}

# ======================================================

# ------------------------------------------------------
# default device

pcm.!default {
  type plug
  slave.pcm "aduplex"
}

And this is what my jackdrc looks like

Code:

/usr/bin/jackd -r -m -dalsa -r44100 -p1024 -n2 -m -H -D -Chw:0 -Phw:0
What am I missing?

k3lt01 04-20-2014 10:27 PM

Quote:

Originally Posted by Gumboherpy (Post 5155587)
I get no sound from flash with pulse audio, it does not detect it, and I put the asoundrc in /etc and still no luck.

Youtube videos won't play at all and other sites play with no sound, pulse works with everything else though.

I need to use it to record internal audio and using the alsa loopback yeilds the same result.

Any suggestions? I use Slackware 14.1

In Debian with MATE 1.6 and MATE 1.8 I have no problems at all with Flash and PulseAudio working together. Do you have other systems you can use to confirm the problem or do you just use Slackware?


Quote:

Originally Posted by Mark Pettit (Post 5155593)
Pulseaudio = Lennart Poettering. No-one like PulseAudio.

It would be nice if people can get away from the "personality" thing. I actually do like PulseAudio, it "just-works" on my laptop when ALSA doesn't. Instead of bashing something because of the person behind it it would be great if you could actually offer help.

Gumboherpy 04-20-2014 11:20 PM

It works on debian so it is a slackware issue. My soundcard is hw:0'0. Thats what I'm trying to record sound from.

k3lt01 04-20-2014 11:36 PM

What browser are you using? Flash and Linux are slowly separating. Flash is up to version 13 while it is stuck at 11.2 in Linux so some flash sites won't work properly or at all in Firefox/Iceweasel and you will be forced to use Chrome (or Chromium with pepperflash extracted from Chrome) to actually use flash sites.

The other thing you can do is force YouTube to use HTML5 rather than flash or use a Firefox extension that converts Flash to a range of other video types that you can use.

linuxtinker 04-20-2014 11:50 PM

Quote:

Originally Posted by k3lt01 (Post 5156326)
you can do is force YouTube to use HTML5 rather than flash.

Dumb question.. How ?

k3lt01 04-21-2014 12:46 AM

Quote:

Originally Posted by linuxtinker (Post 5156331)
Dumb question.. How ?

Not Dumb, I had to look for it a while back. Go to this page and select HTML5 at the bottom. If you are signed in it will remember the setting, I'm not sure if it will remember it if you're not signed in.

linuxtinker 04-21-2014 01:12 AM

@k3lt01
Thanks I rather use the HTML 5 for my set up...


All times are GMT -5. The time now is 04:20 PM.