Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound in some apps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Thu Feb 04, 2010 8:08 pm    Post subject: No sound in some apps Reply with quote

I recently installed Gentoo and everything has worked great except for sound. I have sound in Songbird but no other applications. Also, when I go to System > Preferences > Sound in Gnome, a window comes up that says 'Waiting for sound system to respond" and it doesn't go away until I cancel it.

I tried following the instructions at http://en.gentoo-wiki.com/wiki/PulseAudiobut I'm missing /etc/init.d/pulseaudio. I did notice that if I reemerge pulseaudio I get sound back in other apps, but as soon as I run Songbird it stops working again.

I've tried emerge --newuse world but that didn't fix anything. I'm not sure what else to do! Any help would be appreciated.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Feb 04, 2010 8:41 pm    Post subject: Reply with quote

Major part of that wiki page is too outdated to bother with following it.
If you're running Gnome session manager, you most probably don't need that scrict
-pulseaudio should run for your user.
Back to top
View user's profile Send private message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Sat Feb 06, 2010 6:33 pm    Post subject: Adobe Flash sound Reply with quote

Thanks for the reply! I finally managed to get pulseaudio working by commenting out load-module module-console-kit in /etc/pulse/default.pa. Now everything works how I want except for audio in Flash 10. It doesn't show up in the PulseAudio Volume control at all.

For example, if I'm listening to a song in VLC, while using Firefox and decide to watch a Flash video, I have to close Firefox and VLC and then reopen Firefox or I won't get sound in Flash videos. If I try to restart the music before closing Firefox, the song will load but play without sound. As soon as I close Firefox, the music starts playing.

Edit: Just noticed this error in syslog but not sure what it means:
Code:
pulseaudio[3791]: alsa-sink.c: Error opening PCM device front:0: Device or resource busy
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Feb 07, 2010 10:48 am    Post subject: Re: Adobe Flash sound Reply with quote

crazymonito wrote:
Thanks for the reply! I finally managed to get pulseaudio working by commenting out load-module module-console-kit in /etc/pulse/default.pa. Now everything works how I want except for audio in Flash 10. It doesn't show up in the PulseAudio Volume control at all.

For example, if I'm listening to a song in VLC, while using Firefox and decide to watch a Flash video, I have to close Firefox and VLC and then reopen Firefox or I won't get sound in Flash videos. If I try to restart the music before closing Firefox, the song will load but play without sound. As soon as I close Firefox, the music starts playing.

Edit: Just noticed this error in syslog but not sure what it means:
Code:
pulseaudio[3791]: alsa-sink.c: Error opening PCM device front:0: Device or resource busy


Try this one:

www-plugins/libflashsupport

It's description says: Adds pulseaudio/esd/oss audio output and HTTPS/RTMPS support to Adobe Flash 9

These kind of dependency's made me wonder whether it's worth installing and using pulseaudio 8O
Back to top
View user's profile Send private message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Sun Feb 07, 2010 10:15 pm    Post subject: Reply with quote

Unfortunately, installing libflashsupport didn't help. These dependencies are definitely making using pulseaudio a pain, but so far it's working with everything else. Flash/Firefox seems to be the only issue, but according to some research I've done, Flash 10 is supposed to work with pulseaudio out of the box. I'm not particularly attached to Pulseaudio if you know of a good alternative. I don't need any fancy effects; I just want to be able to hear sound in different programs without having to close one to hear the other.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Mon Feb 08, 2010 7:47 am    Post subject: Reply with quote

crazymonito wrote:
Unfortunately, installing libflashsupport didn't help. These dependencies are definitely making using pulseaudio a pain, but so far it's working with everything else. Flash/Firefox seems to be the only issue, but according to some research I've done, Flash 10 is supposed to work with pulseaudio out of the box. I'm not particularly attached to Pulseaudio if you know of a good alternative. I don't need any fancy effects; I just want to be able to hear sound in different programs without having to close one to hear the other.


Auch... (it was worth a try though :p )
http://macromedia.mplug.org/:
8. Remove libflashsupport as it is no longer needed for anything with Flash 10, and it might even be the cause of crashes.

Yes, you were right about the out of the box support:

http://en.gentoo-wiki.com/wiki/PulseAudio#Flash_support:
Flash Player 10: Flash 10 should work well with PulseAudio out-of-the-box, if the alsa device named "default" is configured to use the pulse plugin, as instructed in the ALSA section above on this page.

Is your device correctly configured?
Back to top
View user's profile Send private message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Sat Feb 13, 2010 4:29 am    Post subject: Reply with quote

No luck so far, but I'm still working on it. I tried using that Pulseaudio wiki that the page recommends for Alsa but I can't find the file that it mentions because it's not in those locations on my computer. Here are the instructions that it gives:

Quote:
To activate the driver edit /etc/asound.conf or ~/.asoundrc and add:

pcm.pulse {
type pulse
}

ctl.pulse {
type pulse
}


Any idea where that file might be? I have Alsa installed and all of the plugins that it says are needed. Using locate doesn't find either file either, but that hasn't been super reliable in the past either...
Back to top
View user's profile Send private message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Sat Feb 13, 2010 5:11 am    Post subject: Reply with quote

If it helps, here's my /etc/pulse/default.pa. I noticed a section that mentions alsa, but I don't want to mess with it since I'm not completely sure what it does.

Quote:

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.nofail

### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Load audio drivers statically (it's probably better to not load
### these drivers manually, but instead use module-hal-detect --
### see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Alternatively use the static hardware detection module (for systems that
### lack udev support)
load-module module-detect
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

### Automatically restore the default sink/source when changed by the user during runtime
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
#load-module module-console-kit

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music streams when a phone stream is active
load-module module-cork-music-on-phone

# X11 modules should not be started from default.pa so that one daemon
# can be shared by multiple sessions.

### Load X11 bell module
#load-module module-x11-bell sample=bell-windowing-system

### Register ourselves in the X11 session manager
#load-module module-x11-xsmp

### Publish connection data in the X11 root window
#.ifexists module-x11-publish.so
#.nofail
#load-module module-x11-publish
#.fail
#.endif

### Make some devices default
#set-default-sink output
#set-default-source input
Back to top
View user's profile Send private message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Mon Feb 22, 2010 5:45 pm    Post subject: Reply with quote

Yay! I managed to solve it! All I had to do was create the alsasound.conf file and add the text that the tutorial said to add. Not sure why I waited so long before just trying that, but better late than never, right? Thanks for the help!
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 838
Location: Cape Town, South Africa

PostPosted: Wed Mar 03, 2010 3:00 pm    Post subject: Reply with quote

crazymonito wrote:
Yay! I managed to solve it! All I had to do was create the alsasound.conf file and add the text that the tutorial said to add. Not sure why I waited so long before just trying that, but better late than never, right? Thanks for the help!


Um, where would you create alsasound.conf, and the text from which tutorial?

Have similar sound issues but on KDE4.

thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Wed Mar 03, 2010 5:05 pm    Post subject: Reply with quote

Ian,
The instructions I found are here:
http://www.pulseaudio.org/wiki/PerfectSetup#ALSAApplications

It worked for a few days but then went back to how it was, so I'm not sure if it was just coincidence or if I just messed it up by doing something else. I've since had to reinstall Gentoo for other reasons and this time I decided to try it without PA or the pulseaudio USE tag. Everything is working perfectly now. Let me know if that works out for you though!
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 838
Location: Cape Town, South Africa

PostPosted: Wed Mar 03, 2010 6:01 pm    Post subject: Reply with quote

crazymonito wrote:
I've since had to reinstall Gentoo for other reasons and this time I decided to try it without PA or the pulseaudio USE tag. Everything is working perfectly now. Let me know if that works out for you though!


I don't have pulseaudio installed, nor a pulseaudio use flag.

Everything was working perfectly until I upgraded from KDE 3.10 to the 4 series (stable releases).

Other people have the same problem and since you are on gnome maybe we've been looking in the wrong place for the problem.

thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Wed Mar 03, 2010 7:29 pm    Post subject: Reply with quote

crazymonito ... why not just use plain old alsa and no sound system. If you don't need "fancy effects" just plain old also works for me for everything from music (exaile), movies (mplayer), firefox (flash, last.fm, etc...), and whatever else .. all at the same time if you like too ;)
_________________
Increasingly becoming a 2 channel audio nut!
Back to top
View user's profile Send private message
crazymonito
n00b
n00b


Joined: 01 Feb 2010
Posts: 68
Location: Boulder, CO

PostPosted: Wed Mar 03, 2010 10:58 pm    Post subject: Reply with quote

bobspencer123 That's what I ended up doing and it's working exactly how I want! I was originally trying to get PA installed because I was under the impression that it was required to have sound work in different programs at the same time. Living up to my n00b status! :P

ian Installing without PA fixed the issue for me but since you're having the same issue on KDE, do you think it might be something that PA pulled in when I installed it? It could be something that we both have. I'm not sure what else PA pulls in though, and I'm not at home to check.
Back to top
View user's profile Send private message
sam.reader
n00b
n00b


Joined: 04 Mar 2010
Posts: 20

PostPosted: Thu Mar 04, 2010 8:37 am    Post subject: Reply with quote

What codecs have you installed in your PC?
Have you tried real player or VLC?
Did you install the codecs before you have installed the audio drivers?
Check these and get back here
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 838
Location: Cape Town, South Africa

PostPosted: Thu Mar 04, 2010 9:03 am    Post subject: Reply with quote

sam.reader wrote:
What codecs have you installed in your PC?
Have you tried real player or VLC?
Did you install the codecs before you have installed the audio drivers?
Check these and get back here


If you can advise an easy way to check which codecs I'd be happy to oblige :-)

Here's the (hopefully) relevant flags from make.conf
Code:

USE="aac alsa ffmpeg flac gstreamer mmx mp3 mpeg mplayer nsplugin ogg quicktime raw timidity v4l v4l2 vcd vorbis win32codecs wmf xine"


However when K3B starts up it bitches about missing mp3 decoding stuff (which it never did in KDE 3.10). Have been unable to resolve this as well.

As explained in other threads, it is difficult to have sound from more than one application.

If I start up Kmail, no other sounds work. If I shut down Kmail, then kill any hanging threads (kio_pop3), then start up Amarok or VLC or ffplay or YouTube in Firefox, then I will have sound. If Kmail was running, there will be no sound in those apps.

If Amarok is playing and I view a video on YouTube, there will be no sound from the video.

This stuff all worked fine in KDE 3.

thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum