LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-19-2014, 11:57 AM   #1
Gumboherpy
Member
 
Registered: Mar 2013
Posts: 41

Rep: Reputation: Disabled
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
    }
 
Old 04-19-2014, 12:13 PM   #2
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.1 64 Multi-Lib
Posts: 428

Rep: Reputation: 123Reputation: 123
Pulseaudio = Lennart Poettering. No-one like PulseAudio.
 
Old 04-19-2014, 12:20 PM   #3
bartgymnast
Member
 
Registered: Feb 2003
Location: Lelystad, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 258

Rep: Reputation: 87
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:
 
Old 04-19-2014, 06:01 PM   #4
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,175
Blog Entries: 15

Rep: Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823
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.
 
Old 04-19-2014, 08:53 PM   #5
Gumboherpy
Member
 
Registered: Mar 2013
Posts: 41

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-19-2014, 09:31 PM   #6
Cheesesteak
Member
 
Registered: Jun 2008
Distribution: Slackware
Posts: 101

Rep: Reputation: 24
Check out AlienBob's blog posts:

A journey into recording sound & video in Slackware

Setting up Jack Audio in Slackware
 
Old 04-19-2014, 09:34 PM   #7
genss
Member
 
Registered: Nov 2013
Posts: 190

Rep: Reputation: Disabled
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)
 
Old 04-20-2014, 06:34 AM   #8
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,175
Blog Entries: 15

Rep: Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823
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.

Last edited by ReaperX7; 04-20-2014 at 06:46 AM.
 
Old 04-20-2014, 09:38 PM   #9
Gumboherpy
Member
 
Registered: Mar 2013
Posts: 41

Original Poster
Rep: Reputation: Disabled
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?
 
Old 04-20-2014, 10:27 PM   #10
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,679

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
Quote:
Originally Posted by Gumboherpy View Post
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 View Post
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.
 
Old 04-20-2014, 11:20 PM   #11
Gumboherpy
Member
 
Registered: Mar 2013
Posts: 41

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-20-2014, 11:36 PM   #12
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,679

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
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.
 
Old 04-20-2014, 11:50 PM   #13
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 59

Rep: Reputation: 6
Quote:
Originally Posted by k3lt01 View Post
you can do is force YouTube to use HTML5 rather than flash.
Dumb question.. How ?
 
Old 04-21-2014, 12:46 AM   #14
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,679

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
Quote:
Originally Posted by linuxtinker View Post
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.
 
1 members found this post helpful.
Old 04-21-2014, 01:12 AM   #15
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 59

Rep: Reputation: 6
@k3lt01
Thanks I rather use the HTML 5 for my set up...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
PulseAudio snarled after sleep. May crash flash? brianpbarnes Linux - Software 5 09-22-2010 03:44 PM
Flash 10 not using pulseaudio on Firefox browny_amiga Linux - General 4 05-22-2010 12:38 AM
Flash and Pulseaudio push cpu to 100% Neruocomp Fedora 1 08-06-2009 11:07 PM
Problem with PulseAudio and Flash KenjiKinya Linux - Newbie 1 08-03-2009 02:31 AM


All times are GMT -5. The time now is 02:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration