LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mozilla/flash sound problem (https://www.linuxquestions.org/questions/linux-software-2/mozilla-flash-sound-problem-57197/)

digsby0007 04-28-2003 04:11 PM

mozilla/flash sound problem
 
I have red hat 8.0 installed on my AMD board 256megs of ram, and a 950 duron processor. I have installed the flash/shockwave patch and I can vierw those types of web pages, but there is no sound. I can, however, hear all other types of sounds; Gaim, system sounds, mp3's, movies...etc but now web sites will have any sound. I am using mozilla to browse.

Any Thoughts?
Digsby

static_drc 03-15-2004 11:24 AM

Sound in Flash
 
SOLUTION

I have the Mozilla Flash plugin and I have the stand alone Flash player. (gflashplayer) Both would play flash animations, neither would play sound. It was driving me bonkers.

The solution was for me to:

1) su
2) cd /dev/snd
3) chmod 666 pcm*

I found this out because sound would play for the root user but not for a normal user, and because the solution is very similar to an old 'no sound' fix for older versions of Slackware.

Sound and Flash work great now!

Keep in mind that this is written specifically about Slackware 9.1 (and it's ALSA sound setup). If you are having the same problem but are using a different distribution, you may need to tweak the solution. Good luck!

Dave

=================
Slackware 9.1
Transmeta Crusoe - Fujitsu P2110 notebook
Firefox 0.8 / Mozilla 1.5
ALSA sound (default in Slackware 9.1)
Flash plugin and player 6v79

Calinate 04-05-2004 11:32 PM

I'm having the same problem but I'm using Debian and OSS. I have esd running but I can't hear any flash animations. Any ideas?

alienDog 04-10-2004 12:41 PM

The above trick also seems to work for old OSS with the difference of course that you should chmod 666 /dev/dsp0 (or whatever your dsp device is). I had the same problem with Slackware 9.1 and OSS, but now it works. You could try that (I'm not sure if Flash can use ESD at all?)

Calinate 04-10-2004 01:08 PM

Yep that did it! Thank you!

alienDog 04-20-2004 04:54 PM

Chmod is obviously not the best possible solution because of potential security risks involved. What also seems to work is joining desired users to group sys (edit /etc/group and add appropriate usernames separated by comma to the line that says "sys::3:root,bin,adm"). That way you don't have to touch the permissions of /dev/dsp?.

win32sux 05-23-2004 08:53 PM

hello guys! i've been trying to get sound to work on my flash plugin for months with my alsa system...

i ran into this thread a few minutes ago, and i tried the chmod 666 /dev/snd/pcm* thing but still no luck...

i'm wondering if perhaps you'd have an idea of something else i could try...

i'm running slackware 9.1 (full install)...

sound works fine on everything except the flash plugin, i'm using mozilla firefox 0.8...

here's what my lsmod looks like:

Module Size Used by Tainted: P
nvidia 1965152 6 (autoclean)
snd-pcm-oss 37092 0
snd-mixer-oss 12016 0 [snd-pcm-oss]
parport_pc 14724 1 (autoclean)
lp 6752 0 (autoclean)
parport 23264 1 (autoclean) [parport_pc lp]
ipt_MASQUERADE 1304 1 (autoclean)
ipt_limit 856 3 (autoclean)
ipt_LOG 3448 6 (autoclean)
ipt_state 504 7 (autoclean)
iptable_mangle 2072 0 (autoclean) (unused)
iptable_filter 1644 1 (autoclean)
ip_conntrack_irc 3024 0 (unused)
ip_conntrack_ftp 3856 1 (autoclean)
ip_nat_ftp 2704 0 (unused)
iptable_nat 15800 2 [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack 19944 2 [ipt_MASQUERADE ipt_state ip_conntrack_irc ip_conntrack_ftp ip_nat_ftp iptable_nat]
ip_tables 12480 9 [ipt_MASQUERADE ipt_limit ipt_LOG ipt_state iptable_mangle iptable_filter iptable_nat]
usb-ohci 19048 0 (unused)
usbcore 58976 1 [usb-ohci]
sis900 12684 1
8139too 14472 1
mii 2304 0 [8139too]
crc32 2880 0 [sis900 8139too]
snd-cmipci 17972 0
gameport 1452 0 [snd-cmipci]
snd-pcm 56064 0 [snd-pcm-oss snd-cmipci]
snd-page-alloc 6004 0 [snd-pcm]
snd-opl3-lib 5764 0 [snd-cmipci]
snd-hwdep 4864 0 [snd-opl3-lib]
snd-timer 13444 0 [snd-pcm snd-opl3-lib]
snd-mpu401-uart 3136 0 [snd-cmipci]
snd-rawmidi 12672 0 [snd-mpu401-uart]
snd-seq-device 3920 0 [snd-opl3-lib snd-rawmidi]
snd 29956 0 [snd-pcm-oss snd-mixer-oss snd-cmipci snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3332 7 [snd]
ide-scsi 9424 0
agpgart 44100 3
apm 9640 2


any input you can give me to help me through this "silent nightmare" would be ever so greatly appreciated... thank you so much in advance...

mr_bod 05-29-2004 02:14 PM

Thankyou for this thread. It's fixed my problem. Help from the community is one of the things I love about GNU.
So cheers!

PaulFrields 05-29-2004 03:57 PM

alienDog,

An even better way to do this is to use PAM. The /etc/security/console.perms file shows what devices the console user inherits over device files, so that the physical console user gets to use floppies, CD's, etc. Add /dev/snd to this list (it should be pretty apparent how when you look at the file, or use the man pages). When the user logs out, the ownership can be set to revert to, for example, a mode of 600 owned by root.root.

alienDog 06-09-2004 08:27 AM

There is no /etc/security/console.perms in slackware and I have no idea how PAM works in it ;) Furthermore it causes problems. Consider this:

You don't use graphical login program (xdm, gdm, kdm or whatever) but instead you login via text console.

You have an autologout feature on your shell enabled and you start X (which will result in console-session being closed after a specified time since you're most likely not using the console anymore) OR you like to close the console manually after starting X.

What will happen is that once the autologout kicks in or you log out, you also lose your ownership on the device files and they stop working for you. I remember this being a problem for me when I was using RedHat. It's a matter of taste to some extent of course...

Another potential problem with this approach is that since only one user can own the devices at a time, only one user can access them at a time (at least I think so, correct me if I'm wrong). If you have several user accounts on your machine and you use them for different tasks, it could become really annoying...

It would also be possible to have /etc/login.defs to add the user to a number of groups upon login (like floppy, cdrom and whatever). This doesn't seem to be a problem with autologout/logout as the user will remain a member of these groups even if the original console is closed. At the moment this is the approach I'm using.

win32sux 06-12-2004 09:35 PM

i finally got the sound on my flash plugin working... all i did was change the permissions of /dev/dsp0 from crw-rw--w- to crw-rw-rw- using:

chmod o+r /dev/dsp0

a chmod 666 /dev/dsp0 (as suggested on one of the posts above) would have also worked...

just thought i'd share this in case it could benefit anybody else also...

by the way, i'm on slackware 9.1 with mozilla firefox 0.8...

worker.ant 07-09-2004 12:20 PM

help with flash sound
 
Hello. I'm having trouble with mozilla and flash animations. THe sound does not work. I got the latest Mozilla (1.7) on RH9, and just figured out how to get the Flash to work. However, there is no sound. At this point, I'm stuck. Help?

win32sux 07-10-2004 07:07 AM

it's usually a permissions issue...

try doing something like chmod 666 /dev/dsp0


zapotek 07-22-2004 01:11 PM

I have the same problem... but in suse 9.0. I really can't figure out why mozilla 1.4 even realplayer8 don't play sounds, but the image is very well. I'm sure now, that's not a problem with file permissions, because I can't hear the sound even if I'm logged as root.

alienDog 07-29-2004 03:46 PM

Can you hear sounds from any program? Have you checked your mixer settings? At least slackware leaves sound levels to zero by default when using alsa (silly...)


All times are GMT -5. The time now is 12:30 AM.