LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-17-2006, 06:36 PM   #1
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Rep: Reputation: 15
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.

Last edited by hgb; 07-17-2006 at 06:38 PM.
 
Old 07-17-2006, 07:26 PM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
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?

Last edited by jens; 07-17-2006 at 07:30 PM.
 
Old 07-17-2006, 07:43 PM   #3
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
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...
 
Old 07-17-2006, 08:05 PM   #4
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
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
 
Old 07-17-2006, 08:07 PM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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.
 
Old 07-17-2006, 08:15 PM   #6
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
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)...

Last edited by jens; 07-17-2006 at 08:29 PM.
 
Old 07-17-2006, 09:36 PM   #7
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
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 ... hope feedback about 3 for continue...




And, should I do to step all the way until step 7????
 
Old 07-17-2006, 10:19 PM   #8
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by hgb
I have done to steps 1, 2, skipped 3 and do 4... it work great ... 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.
 
Old 07-18-2006, 04:36 PM   #9
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
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...
 
Old 07-19-2006, 11:02 PM   #10
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
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

Last edited by jens; 07-19-2006 at 11:06 PM.
 
Old 07-21-2006, 02:08 PM   #11
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Listen to music on my laptop from my server... pAn1k Linux - Networking 4 12-31-2004 02:03 PM
Unable to listen/watch music/videos at various websites webwolf70 Linux - General 1 10-27-2004 06:37 AM
using Xine to listen to music=good slackist Linux - Software 2 05-11-2004 09:04 AM
listen live music.. mahamkali Linux - General 1 12-06-2003 02:34 PM
i just want to listen to music airWave Slackware 9 04-29-2003 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration