LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   my solution to no sound in flash (https://www.linuxquestions.org/questions/slackware-14/my-solution-to-no-sound-in-flash-330315/)

puffinman 06-04-2005 12:24 PM

my solution to no sound in flash
 
There have been several threads about sound working fine in everything except for flash. One solution that worked for some people was using artsdsp, but that never worked for me. My sound worked in flash when I first installed slack, but then at some point stopped working and I could never figure out what it was that had messed it up. While installing slack on my laptop (i'm now totally windows free!:D), I finally figured it out.

The gkrellm sound scope plugin.

I enabled it and flash lost its sound. I disabled it and restarted X (using fluxbox, if it matters), and it was back. I guess this isn't so much a solution as it is a diagnosis. I like the sound scope plugin but not as much as I like having sound in flash. Anyway, just wanted to share. I wonder if this is a bug in flash, in gkrell, in the plugin, in firefox, or in slack...:confused:

cccc828 06-05-2005 05:26 AM

I think the problem is that ALSA can only handle one sound source. As the gkrellm plugin "was there" first only it's sound could be heard and all other sounds were ignored. I have the same "problem" (I love that flash has no sound): When I run XMMS I can _only_ listen too XMMS. But I am very happy that I do not have to listen to useless flash sounds and often wished I could turn off the flash sound on Windows ( if I have to use it that is).
So for me it is no problem, as I usually only have one sound source (xmms or sometimes mplayer).

phil.d.g 06-05-2005 05:42 AM

firefox only supports OOS, so if you want to be able to play sound from firefox and say xmms then you need to use the alsa oos emulation and set up alsa as a software mixer

bmfan 06-06-2005 12:14 AM

alsa can handle as many sound sources as you can open up and run. it just needs to be configured properly
http://alsa.opensrc.org/index.php?page=AlsaSharing

all you need is an ".asoundrc" in your home directory similar to this
Code:

pcm.dmix0 {
    type dmix
    ipc_key 673138
    slave {
        pcm "hw:0,0"
        rate 48000
        period_time 80000
        buffer_time 320000
        period_size 4096
        buffer_size 16384
    }
    bindings {
        0 0
        1 1
    }
}
# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
    type plug
    slave.pcm "dmix0"
}
ctl.dsp0 {
    type hw
    card 0
}
pcm.!default {
    type plug
    slave.pcm "dmix0"
}
ctl.!default {
    type hw
    card 0
}


acidjuice 06-06-2005 04:00 AM

Quote:

Originally posted by phil.d.g
firefox only supports OOS, so if you want to be able to play sound from firefox and say xmms then you need to use the alsa oos emulation and set up alsa as a software mixer
yep, same here. had to recompile the kernel once to enable OSS for firefox & flash to properly work.

kodon 06-06-2005 08:00 AM

Quote:

I think the problem is that ALSA can only handle one sound source.
that is not an alsa problem...it is your card.


Quote:

yep, same here. had to recompile the kernel once to enable OSS for firefox & flash to properly work.
you could have just installed alsa-oss.


All times are GMT -5. The time now is 04:39 AM.