LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   can listen music but not all applications sound... (https://www.linuxquestions.org/questions/debian-26/can-listen-music-but-not-all-applications-sound-465002/)

hgb 07-17-2006 06:36 PM

can listen music but not all applications sound...
 
Hi there, I can listen music from xmms also the cliks and failures do sound, but for example, I cant listen the sound of flash via web pages... like google videos :(... what to do???

For example, amsn dosent make sounds when a message come. But Im listening music in xmms.

jens 07-17-2006 07:26 PM

For flash, try running:
"modprobe snd_pcm_oss" (as root) if you're using only alsa.
Depending on your setup, you might have close every other app that uses sound first.

As for multi sound channels, what DE(GNOME or KDE) and mixer (esound, arts, dmix) are you using?

hgb 07-17-2006 07:43 PM

I see that I need first open firefox and the video... and later it dont let me open xmms and play :P...

Im using KDE (also other times I use GNOME)...

That is.... why I cannot open xmms then open a video in google????


I guess the same happend with amsn???... tought running amsn from console say something about dsp bussy or some like that...

jens 07-17-2006 08:05 PM

In KDE, aRts should do the mixing (It's really bad though and never really worked for me either, it will be removed in KDE4).
Are you sure aRts is enabled?
I personally recommend to use alsa with dmix instead (arts will still need to be installed for dependencies).

See:
http://alsa.opensrc.org/index.php?page=DmixPlugin

Dutch Master 07-17-2006 08:07 PM

It's simple: there is only one mixer and it's already in use, thus blocking other sound apps. A program checks wether it has access to the soundsystem when it starts up, if not it won't play sound during the whole session! So, in order to hear flash, you'd have to shutdown xmms before you open your browser, otherwise you won't hear anything! AFAIK there is no workaround.

jens 07-17-2006 08:15 PM

Quote:

Originally Posted by Dutch Master
AFAIK there is no workaround.

It works fine for me (using alsa and dmix only) ;)
As for a workaround, you could also use a wrapper to start the app itself.
Personally, I would rather use alsa all the way (and a 2.6 kernel)...

hgb 07-17-2006 09:36 PM

Quote:

3. configure .asoundrc for aoss-testing:

# cat ~/.asoundrc:
pcm.dsp0 {
type plug
slave.pcm "hw:0"
}
# or:
# pcm.dsp0 pcm.default
# if "default" hasn't been redefined
ctl.mixer0 {
type hw
card 0
}
I guess I need create the ".asoundrc" file in "/home/myuser/"... but what mean

Quote:

# or:
# pcm.dsp0 pcm.default
# if "default" hasn't been redefined
There is 2 options for this... what is "default"??? wich I use? lol...

I have done to steps 1, 2, skipped 3 and do 4... it work great :D... hope feedback about 3 for continue...




And, should I do to step all the way until step 7????

jens 07-17-2006 10:19 PM

Quote:

Originally Posted by hgb
I have done to steps 1, 2, skipped 3 and do 4... it work great :D... hope feedback about 3 for continue...
And, should I do to step all the way until step 7????

3 And 4 are only to test if aoss works.
If "aoss mpg123 some.mp3" works, continue with step 5(the easy way, should work for most systems). Those other steps are only needed if it doesn't work for your hardware. Skip them and continue with configuring your apps.

hgb 07-18-2006 04:36 PM

Hi there, Im able to open 2 or more times the mpg123 (and mpg321) app and listen the music.

But I still unable to listen the video googles when I have already open the xmms.. also the sounds of amsn dosent do sound...

Quote:

~$ amsn
sox: Can't open output file '/dev/dsp': Device or resource busy
You say after step 5 you need configure your apps... what to configure for amsn and for listen the video googles...




About the first thing... about snd_pcm_oss about the flash player... here is the output of the command (without run the anterior modprobe).

Quote:

~$ lsmod |grep pcm
snd_pcm_oss 46112 0
snd_mixer_oss 16576 1 snd_pcm_oss
snd_pcm 77704 3 snd_cmipci,snd_pcm_oss
snd_page_alloc 9992 1 snd_pcm
snd_timer 21444 3 snd_pcm,snd_opl3_lib
snd 48740 14 snd_cmipci,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_ra wmidi,snd_seq_device
xmms have alsa output...

jens 07-19-2006 11:02 PM

I use gaim (as explained in that gentoo link). Never tried AMSN, but's it reported to work with dmix (google did show some problems and solutions trough).
The "modprobe snd_pcm_oss" is to activate OSS(emulation) streaming via ALSA, I needed this for get any sound in Flash (Debian Etch).

You can find some other information about "problematic" hardware on that gentoo link: http://gentoo-wiki.com/HOWTO_ALSA_so...Configurations

hgb 07-21-2006 02:08 PM

Aparently I have configured now my apps... but what about apps...

When I down the volume in xmms it also low the volume in amsn sounds??? anyway, now I can listen the sounds... also now I listen google videos.





Im interested in 1 app now, I will like to know if you know how to configure it... or how to configure my config files???

Code:

~$ festival --tts hola.txt
Linux: can't open /dev/dsp
Linux: can't open /dev/dsp


I will like to activate it for amsn... and Im targetting some friends/and family that can't see (invidents).


All times are GMT -5. The time now is 10:25 PM.