Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Yet another firefox/flash/sound problem [SOLVED]
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
Ahri
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2004
Posts: 126
Location: Manchester/UK

PostPosted: Thu Jan 11, 2007 7:29 pm    Post subject: Yet another firefox/flash/sound problem [SOLVED] Reply with quote

I'm aware of how many of these sorts of posts there are, but I've been unable to fix the problem despite reading a lot of them and following alsa/firefox/etc wiki posts.

I'm running amd64 and have opera and mozilla-firefox-bin (1.5.whatnot) installed - so they're both 32 bit browsers. I have flash7 installed and it works ok in opera (after messing around directly linking the .so and .xpt files so that it wasn't detected as netscape by youtube - whatever). Unfortunately the sound lags horribly for youtube et al. so it's fairly unusable.

So I tried firefox instead, and although flash appears to work I get no sound. Now there are a lot of posts about this issue, most of which deal with artsd grabbing the oss /dev/dsp and flash only using oss, so ending up queuing for it. This is not my issue. I don't have artsd running, I don't have esd running either. I have alsa, I have alsa-oss, I followed part of the alsa howto on the gentoo wiki and have a .asoundrc file in my home directory that hopefully means that programs accessing the oss device get mixed in with those directly accessing the alsa system. Just in case that's something to do with it;
Code:
pcm.dsp0 {
  type plug
  slave.pcm "dmix"
}

ctl.mixer0 {
  type hw
  card 0
}

pcm.!default {
  type plug
  slave.pcm "dmix"
}
- this doesn't work though as I tried the following whilst watching a youtube video in opera;
Code:
$ cat /dev/urandom >> /dev/dsp
bash: /dev/dsp: Device or resource busy


I also tried both `aoss firefox' and `aoss32 firefox' - still no sound.

So I have 2 issues;

1) opera/flash grabs the oss device and my dmix setup appears not to work at all.
2) firefox/flash doesn't even try to grab a sound device, it doesn't work when the oss device is free, and while a flash video with sound is playing I can still pipe through some white noise to /dev/dsp.

Apologies in advance for the rant;

It's infuriatingly weird, and in all my years of using linux (ok not that many, maybe 4-6) I think that sound mixing problems have been the absolute worst example of how annoying being a user of linux can be. I've not had this problem for a while as on my desktop I've been using the deprecated nvsound driver for an nforce2 soundstorm card with onboard mixing - pure heaven! One oss device, full mixing, no problems ever! Deprecated.


Last edited by Ahri on Fri Jan 12, 2007 2:43 am; edited 1 time in total
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Thu Jan 11, 2007 9:21 pm    Post subject: Reply with quote

Before you go crazy, my advice would be to install flash9 beta. It uses alsa for sound, meaning works perfectly with dmix, and the a/v sync issues have been solved.
Back to top
View user's profile Send private message
Ahri
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2004
Posts: 126
Location: Manchester/UK

PostPosted: Thu Jan 11, 2007 10:07 pm    Post subject: Reply with quote

Installed flash9 beta, now at least I have uniformity; both firefox and opera will play youtube vids but without sound. While either of them are playing a vid I can get white noise out of /dev/dsp should I so choose. So it seems like they're not even trying to output sound...
Back to top
View user's profile Send private message
Ahri
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2004
Posts: 126
Location: Manchester/UK

PostPosted: Fri Jan 12, 2007 1:42 am    Post subject: Reply with quote

So does anyone know how I might go about debugging this?
Back to top
View user's profile Send private message
Ahri
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2004
Posts: 126
Location: Manchester/UK

PostPosted: Fri Jan 12, 2007 2:42 am    Post subject: Reply with quote

[SOLVED]

I removed alsa-oss and stripped all oss use flags from my system.
I forced an upgrade of app-emulation/emul-linux-x86-soundlibs to the latest unstable version (currently 2.5-r1).
I bit-hacked /opt/netscape/plugins/libflashplayer.so as described here.

Now flash9 works on both firefox 1.5 and 2.0 (both -bin ie. 32bit versions).
Unfortunately it's somewhat broken on opera as it gets stuck on the "loading" screen for youtube videos.

This will have to do I guess, I'll see what I can do about fixing opera up seperately.
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