You are not logged in.
Hi guys.
I don't know where to start looking for a solution so I post it here. Whenever I use flash in Firefox or Epiphany (I installed Epiphany to check if it was Firefox specific) I lose sound in all other apps - it's not enough to close the site with flash to get sound back. I have to switch Firefox/Epiphany off altogether.
The curious thing is: I use liferea (the gtk+ RSS reader). It comes with an internal web browser - and this one can play flash without muting all the other apps.
Any ideas?
Edit: weird: it seems that it doesn't happen all the time - I just tried to reproduce the error to show you the output sonata gives me and everything worked this time
Last edited by JeremyTheWicked (2008-10-04 20:06:22)
arch(3) adj amused because you think you understand something better than other people ;P
Offline
You have an issue with software mixing.
Normally when a program use sound it tells the soundcard what it wants.
Some card are able to do hardware mixing, managing multiple sound input, but the majority can't relying on a software to do it
For alsa, it's dmix that does the software mixing, if the program don't use it, you will have no sound in it, or in every other apps (depending on who was first)
So firefox and epiphany + flash don't use dmix. so alsa can't software-mix those apps
Also Epiphany and firefox share the same libraries (xulrunner) so you have to try with another browser like opera
Do you have a file named /etc/asound.conf ? or in your home directory ~/.asoundrc ? (the second one is hidden)
if not you can try this, it should fix the problem for every app, even oss only
create a file asound.conf in you /etc directory for a system wide configuration, or ~/.asound.conf for user-specific one
and paste the following code
############### Configuring the sound output for every applications, using dmix to allow software mixing
pcm.dmixed {
type dmix
slave {
pcm "hw:0,0"
rate "48000" ### in case some sound is not 48kHz, this will make it 48kHz
}
}
############### This is for sound input
pcm.dsnooped {
type dsnoop
slave.pcm "hw:0,0"
}
############### This tells alsa what to use for Input/Output
pcm.asymed {
type asym
playback.pcm "dmixed"
capture.pcm "dsnooped"
}
############### This makes alsa use dmix output and dsnoop input by default
pcm.!default {
type plug
slave.pcm "asymed"
}
ctl.!default {
type hw
card 0
device 0
}
###############
#OSS only apps use the /dev/dsp0 directory for sound, preventing software mix : the following code links the directory to alsa and dmix, #allowing OSS only apps to software mix. This way you don't need aoss
pcm.dsp0 {
type plug
slave.pcm "asymed"
}
ctl.mixer0 { ##### this is used for midi playback, should be obsolete but well
type hw
card 0
device 0
}
################
#For Java Java try to use the hardware directly, if you need sound in java, you have to tell him that the sound card is free
pcm.!plughw {
type plug
slave.pcm "asymed"
}
########################################################
#This is the normal spdif output profile (optical, toslink). If you have one, uncomment
#
#pcm.!spdif {
# type plug
# slave.pcm "hw:0,1"
#}Some explications are in the code,
the "!" !default, !plughw means overwrite the existing configuration because those variable are already set by alsa
restart alsa and try again
Hope it helps
Last edited by ChoK (2008-10-07 19:29:24)
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline
I tried it. Unfortunately, to no avail...
arch(3) adj amused because you think you understand something better than other people ;P
Offline