LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-18-2018, 06:23 PM   #1
mathwhiz
LQ Newbie
 
Registered: Nov 2018
Posts: 26

Rep: Reputation: Disabled
Freshplayer not using alsa default speaker


I have a Dell optiplex running Slackware 14.2. I have installed
freshplayerplugin-0.3.9.tar.gz
so that firefox can use
flash_player_ppapi_linux.i386.tar.gz

Recently I bought a Dell USB soundbar. When it is plugged in, "alist -l"
shows that it is card 1 (card 0 is the built-in Intel speaker).
I created $HOME/.asoundrc containing
pcm.!default {type hw card 1}
ctl.!default {type hw card 1}

vlc uses card 1, in particular if it is started using an "m3u" button at
"www.internet-radio.com". So do audacious, mocp, xmms.

Many other music websites use flashplyer. I'll use "www.accuradio.com" as an
example. Activating a stream causes it to be played on the Intel speaker.
I looked at the html for the page with the player control. I didn't try to
wade through it, but it contains a line with the text "AccuRadio requires
Adobe Flash".

For another example, "www.radio.pervii.com/en/Classical/245695.htm" contains
a player, which plays to the Intel speaker. Right clicking on the control
pops up a menu with a "copy audio location" button. This can be pasted,
and is "http://79.111.14.76:9113/;". Invoking vlc from a terminal window
with this as an argument plays the stream on card 1. The html source contains
the snippet init('yt_player_show'), so this might use yt_player.

Is there some method for configuring freshplayer to use card 1?
 
Old 11-19-2018, 09:26 PM   #2
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
You should ask that your post be moved to the Slackware section so that it gets more attention/possible solutions.
 
1 members found this post helpful.
Old 11-20-2018, 01:21 AM   #3
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
I suggest you look at pavucontrol or kmix and see if you can change which device the stream is going to.

Last edited by RadicalDreamer; 11-20-2018 at 01:29 AM.
 
Old 11-20-2018, 07:10 PM   #4
mathwhiz
LQ Newbie
 
Registered: Nov 2018
Posts: 26

Original Poster
Rep: Reputation: Disabled
more info

I would like to move the thread to Slackware, but the LQ FAQs don't mention
anything about how to do this.

Slackware doesn't have USE flags or systemd. "pactl list" shows that
pulseaudio is running. It also shows that Sink #0 is the SoundBar, and
Sink #1 is the built-in speaker. I don't know if freshplayer uses pulseaudio.
https://docs.slackware.com/howtos:multimediaulseaudio
suggests that Slackware has a tendency to avoid it.

I don't like desktops and am a died in the wool fwvm2 user. As a Slackware
fan, I subscribe to the philosophy that if any distro can do it then
Slackware can, even if it takes a while.

https://bbs.archlinux.org/viewtopic.php?id=182850
solved the problem in 2014 by modifying "/etc/adobe/mms.cfg".
This doesn't exist in the freshplayer installation. I read on
another web page that it has been replaced by "settings.sol".
There is such a file in
"~/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys".
It is a binary file, and there doesn't seem to be a command line utility
to edit it.

The problem might be connected with flashplayer using Intel
graphics acceleration.
 
Old 11-21-2018, 12:35 PM   #5
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Quote:
Originally Posted by mathwhiz View Post
I would like to move the thread to Slackware, but the LQ FAQs don't mention
anything about how to do this.

I don't like desktops and am a died in the wool fwvm2 user. As a Slackware
fan, I subscribe to the philosophy that if any distro can do it then
Slackware can, even if it takes a while.
I just "reported" this thread and asked that it be moved to the Slackware forums. Shouldn't take too long.

I'm a fvwm2 user as well, only on Gentoo. (Former and sometimes Slackware user)
 
Old 11-21-2018, 01:29 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moderator note: to move a thread, just report it as JWJones did. It will be then moved by one of the mods. Thanks for the effort to have posts in their most relevant forum!
 
1 members found this post helpful.
Old 11-21-2018, 02:39 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by mathwhiz View Post
I don't know if freshplayer uses pulseaudio.
https://docs.slackware.com/howtos:multimedia:pulseaudio
suggests that Slackware has a tendency to avoid it.
This was the case before 14.2, however, it was added during that development cycle and is the default sound server/daemon/etc (not sure the proper name for it). Unless you changed your system's defaults, it is likely running pulseaudio.

Now, I haven't used freshplayer, but the first thing I would check is to run pavucontrol and verify that the correct sound card is selected for the output.
 
Old 11-21-2018, 04:30 PM   #8
mathwhiz
LQ Newbie
 
Registered: Nov 2018
Posts: 26

Original Poster
Rep: Reputation: Disabled
Using pavucontrol to select the SoundBar as the fallbacck device solved the
problem. The relevant documentation can be found at
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/DefaultDevice/

In accordance with
https://superuser.com/questions/1157370/how-to-configure-pulseaudio-to-input-output-via-alsa
I changed ~/.asoundrc to contain
pcm.!default pulse
ctl.!default pulse
first, although this might no longer be necessary.
 
Old 11-21-2018, 05:16 PM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Congrats on getting it fixed!

Quote:
Originally Posted by mathwhiz View Post
In accordance with
https://superuser.com/questions/1157370/how-to-configure-pulseaudio-to-input-output-via-alsa
I changed ~/.asoundrc to contain
pcm.!default pulse
ctl.!default pulse
first, although this might no longer be necessary.
This shouldn't be needed as it is in the system /etc/asound.conf. You should be able to remove that file without issue (assuming you didn't change /etc/asound.conf).
 
1 members found this post helpful.
Old 11-25-2018, 11:00 AM   #10
mathwhiz
LQ Newbie
 
Registered: Nov 2018
Posts: 26

Original Poster
Rep: Reputation: Disabled
I subsequently discovered that this already was on the web:
https://www.math.lsu.edu/comp/resources/dellsoundbar
 
  


Reply



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] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
[SOLVED] Need help building FreshPlayer moisespedro Slackware 5 03-24-2015 08:17 PM
how to adjust speaker balance/ volume using ALSA APIs varun12598 Programming 1 04-08-2008 03:09 AM
How could I make USB speaker as default/master speaker ? czy11421 Linux - Hardware 1 09-02-2007 10:59 AM
Left speaker does not speak - not speaker issue. Hardware or software issue? Svip Linux - Hardware 3 05-03-2006 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration