Unix Technical Forum

Sound problem in 10.0 - only one program can play sounds

This is a discussion on Sound problem in 10.0 - only one program can play sounds within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Actually I had the same problem om Slack 9.1 on another computer, but didn't bother to do any research ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 06:19 PM
Geir G Pettersen
 
Posts: n/a
Default Sound problem in 10.0 - only one program can play sounds

Actually I had the same problem om Slack 9.1 on another computer, but
didn't bother to do any research back then (just for the record..)

When i start KDE from runlevel 3 (startkde) XMMS and other programs
that tries to use OSS (ALSA emulates OSS, right? at least I have a
snd-pcm-oss module loaded by default) can't play music at all, and
programs that can use ALSA have no problems except that only ONE sound
can be played at a time, the other programs just have to queue up and
wait for their turn to play.

Googled at bit around and learned about artsd. Tried to start artsd
manually before starting kde which fixed the latter problem (many sound
sources), but still XMMS would not play (even though i changed output
plugin to ALSA).

When i started KDE from runlevel 4 (GDM login screen) KDE complained
about no permission to /dev/dsp and said that all sound output was
redirected to null. XMMS and other programs using oss (iTunes with
Crossover Office) now worked perfectly, but still only one source could
play sound.

Anyone has an idea about what could be wrong?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 06:19 PM
Cristian
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

#alsaconf


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 06:19 PM
Jakub Jankowski
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

On Wed, 15 Dec 2004 16:36:20 -0800, Geir G Pettersen wrote:

[...]
> programs that can use ALSA have no problems except that only ONE sound
> can be played at a time, the other programs just have to queue up and
> wait for their turn to play.


That's what you get with cheap soundcards that don't support playing
multiple streams simultaneously.

> Googled at bit around and learned about artsd. Tried to start artsd
> manually before starting kde which fixed the latter problem (many sound
> sources), but still XMMS would not play (even though i changed output
> plugin to ALSA).


How about using xmms' arts output plugin?

--
Jakub Jankowski
shasta AT spam DOT atn DOT pl

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 06:20 PM
Geir G Pettersen
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

Jakub Jankowski wrote:
> On Wed, 15 Dec 2004 16:36:20 -0800, Geir G Pettersen wrote:
>
> [...]
> > programs that can use ALSA have no problems except that only ONE

sound
> > can be played at a time, the other programs just have to queue up

and
> > wait for their turn to play.

>
> That's what you get with cheap soundcards that don't support playing
> multiple streams simultaneously.


Don't know if it is a cheap soundcard or not, but I didn't have these
problems in Fedora so i guess it is just a matter of configuration.

> > Googled at bit around and learned about artsd. Tried to start artsd
> > manually before starting kde which fixed the latter problem (many

sound
> > sources), but still XMMS would not play (even though i changed

output
> > plugin to ALSA).

>
> How about using xmms' arts output plugin?


Haven't tried that one yet. There is no arts output plugin in my xmms
so i guess i have to recompile xmms in order to use arts output.


I tried running alsaconf as Cristian mentioned in the other post. It
detected my soundcard (intel8x0 "Intel Corp. 82801DB (ICH4) AC'97 Audio
Controller (rev 03)") and set up /etc/modules.conf, but that didn't fix
my problems either.
Any more ideas out there? Thanx for all answers so far.

Geir

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 06:20 PM
Jakub Jankowski
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

On Wed, 15 Dec 2004 18:47:16 -0800, Geir G Pettersen wrote:

> Jakub Jankowski wrote:
>> On Wed, 15 Dec 2004 16:36:20 -0800, Geir G Pettersen wrote:
>>
>> [...]
>>> programs that can use ALSA have no problems except that only ONE sound
>>> can be played at a time, the other programs just have to queue up and
>>> wait for their turn to play.

>>
>> That's what you get with cheap soundcards that don't support playing
>> multiple streams simultaneously.

>
> Don't know if it is a cheap soundcard or not,


It is. Unfortunately, I own such one too.

> but I didn't have these
> problems in Fedora so i guess it is just a matter of configuration.


You probably had software mixing 'out-of-the-box'.

>>> Googled at bit around and learned about artsd. Tried to start artsd
>>> manually before starting kde which fixed the latter problem (many sound
>>> sources), but still XMMS would not play (even though i changed output
>>> plugin to ALSA).

>>
>> How about using xmms' arts output plugin?

>
> Haven't tried that one yet. There is no arts output plugin in my xmms
> so i guess i have to recompile xmms in order to use arts output.


No need to, it comes with Slackware:

$ grep -i arts /var/log/packages/xmms-1.2.10-i486-2
usr/bin/xmms-arts-helper
usr/doc/xmms-1.2.10/arts_output-0.7.1/
usr/doc/xmms-1.2.10/arts_output-0.7.1/NEWS
usr/doc/xmms-1.2.10/arts_output-0.7.1/README
usr/doc/xmms-1.2.10/arts_output-0.7.1/AUTHORS
usr/doc/xmms-1.2.10/arts_output-0.7.1/INSTALL
usr/doc/xmms-1.2.10/arts_output-0.7.1/COPYING
usr/lib/xmms/Output/libarts.la
usr/lib/xmms/Output/libarts.so
$

--
Jakub Jankowski
shasta AT spam DOT atn DOT pl

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 06:20 PM
Chris Sorenson
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

Geir G Pettersen wrote:
> Any more ideas out there? Thanx for all answers so far.
>


When all else fails:

chmod a+rw /dev/dsp0

Yeah!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 06:20 PM
MikeyD
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

Geir G Pettersen wrote:

> Actually I had the same problem om Slack 9.1 on another computer, but
> didn't bother to do any research back then (just for the record..)
>
> When i start KDE from runlevel 3 (startkde) XMMS and other programs
> that tries to use OSS (ALSA emulates OSS, right? at least I have a
> snd-pcm-oss module loaded by default) can't play music at all, and
> programs that can use ALSA have no problems except that only ONE sound
> can be played at a time, the other programs just have to queue up and
> wait for their turn to play.


If you want to change that, you can set up dmix. Put a section like this in
your /etc/asound.conf
pcm.!default {
type plug
slave.pcm "dmix"
}
That will let you play multiple sounds through alsa. However, it will also
use up more cpu.
>
> Googled at bit around and learned about artsd. Tried to start artsd
> manually before starting kde which fixed the

latter problem (many sound
> sources), but still XMMS would not play (even though i changed output
> plugin to ALSA).


As someone else said, change the output plugin to arts. And you can install
it separately if you're using a newer/custom version of xmms, it's on the
xmms website.
>
> When i started KDE from runlevel 4 (GDM login screen) KDE complained
> about no permission to /dev/dsp and said that all sound output was
> redirected to null.


chmod 666 /dev/dsp

> XMMS and other programs using oss (iTunes with
> Crossover Office) now worked perfectly, but still only one source could
> play sound.
>
> Anyone has an idea about what could be wrong?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 06:21 PM
Thomas Overgaard
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds


Jakub Jankowski wrote :

> $ grep -i arts /var/log/packages/xmms-1.2.10-i486-2


Slackware 10.0 comes with xmms-1.2.10-i486-1. The package on your
computer must come from Slackware current.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 06:21 PM
Jakub Jankowski
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

On Thu, 16 Dec 2004 18:16:21 +0100, Thomas Overgaard wrote:

> Jakub Jankowski wrote :
>
>> $ grep -i arts /var/log/packages/xmms-1.2.10-i486-2

>
> Slackware 10.0 comes with xmms-1.2.10-i486-1. The package on your
> computer must come from Slackware current.


Indeed. Arts output plugin came with xmms-1.2.10-i486-2, as stated in the
ChangeLog:

Mon Oct 4 11:57:38 PDT 2004
[...]
xap/xmms-1.2.10-i486-2.tgz: Added arts_output-0.7.1 aRts output plugin.

Sorry for inconvience.

--
Jakub Jankowski
shasta AT spam DOT atn DOT pl

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 06:22 PM
Max
 
Posts: n/a
Default Re: Sound problem in 10.0 - only one program can play sounds

On 12-16-2004, in alt.os.linux.slackware,
MikeyD <m_donaghy50@hotmail.com> wrote:

[...]

>> When i started KDE from runlevel 4 (GDM login screen) KDE
>> complained about no permission to /dev/dsp and said that all
>> sound output was redirected to null.

>
> chmod 666 /dev/dsp


Would it not be better for the OP to shove his user/users into group
"audio", instead of mucking around with a root based 'chmod'
command?

>> XMMS and other programs using oss (iTunes with Crossover Office)
>> now worked perfectly, but still only one source could play sound.
>>
>> Anyone has an idea about what could be wrong?

>


Put your user(s) into group "audio" and see what happens? [shrug]

Good luck!

Max

--
If Bill Gates had a dime for every time Windows crashed...
Oh wait a minute, he already does.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com