LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-25-2005, 01:24 PM   #1
mihai451
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
hearing KDE sounds while playing mp3s in xmms or mplayer


Hi guys,

I'm not able to hear the KDE sounds or any other warnings while playing mp3s with xmms or mplayer. I searched around but I couldn't find a good solution. I tried playing with the sound output configurations of xmms and mplayer but no result. However, after closing the audio player all warnings are played. Also if one application uses the soundcard others cannot.

Does anybody know how to fix this?

btw i'm on suse9.2, last kernel, kde 3.3.2.

Any help would be greatly appreciated

______________ M.
 
Old 03-25-2005, 02:25 PM   #2
arjun_sh
LQ Newbie
 
Registered: Mar 2005
Location: Bangalore, India
Distribution: Ubuntu (Dapper Drake)
Posts: 25

Rep: Reputation: Disabled
I'm new to Linux, but I think you should see which sound system you are using. I use Fedora Core 2 and have a choice between ALSA, OSS, ESD ARts. Some of these allow multiplexing, and others do not ( some guy told me this, and I'm not sure myself ). Obviously, if your sound system does not multiplex, it will be unable to play more than one thing at a time. I've got OSS on and it seems to work. Of course I could be very wrong, but... no harm trying to change your sound system. Could someone shed some light here please?
 
Old 03-26-2005, 05:01 AM   #3
mihai451
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I've pretty much tried to change the sound system, however didn't work. I played with Mixer0, Mixer1, /dev/snd, etc, change rwx permissions to things in /dev ..., none worked. I thought someone already figured it out so can walk me through these things.

Actually, I also talked with some guys that know lots of linux tricks and they told me to do what I said above. Curiously though, on their computers multiplexing didn't work as well. They said they don't care. Go figure.
 
Old 03-28-2005, 06:36 AM   #4
arjun_sh
LQ Newbie
 
Registered: Mar 2005
Location: Bangalore, India
Distribution: Ubuntu (Dapper Drake)
Posts: 25

Rep: Reputation: Disabled
just curious to know what is your current sound system anyway.
 
Old 03-28-2005, 06:42 AM   #5
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
For me, setting the sound in xmms to ESD helped with a lot of sounds although there are still some problems.
 
Old 03-28-2005, 07:32 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
XMMS and other multimedia apps needs to be configured to use the alsa output plugin so that you can hear sounds from various apps at the same time.
 
Old 03-30-2005, 02:31 PM   #7
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
Use the Arts plugin.
Because although there is nothing wrong with using Alsa or OSS plugins, both do not allow you to play multiple sounds through the sound card at the same time (KDE sounds start to play when you press the stop button).
Also ESD or Esound has like a huge 300ms latency avoid esd at all costs.
 
Old 03-30-2005, 03:11 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 66
Quote:
Because although there is nothing wrong with using Alsa or OSS plugins, both do not allow you to play multiple sounds through the sound card at the same time
Gotta disagree with you there...

I am using ALSA and I can hear sounds from different apps at the same time. No I am not using Arts or ESD. (example, I can listen to music with xmms and still hear the audio from a game I am playing...)
 
Old 03-30-2005, 04:07 PM   #9
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
Quote:
Gotta disagree with you there...

I am using ALSA and I can hear sounds from different apps at the same time. No I am not using Arts or ESD. (example, I can listen to music with xmms and still hear the audio from a game I am playing...)
Cheers bulliver for pointing that out.

I think Alsa does work (multi sounds) in some distros. I've had no luck trying to make alsa play multiple sounds in Slackware. (Gentoo masked xmms-alsa so i'm forced to use OSS )

Also crappy Arts just keeps skipping in xmms when listening to digitally imported, and Gentoo masks xmms-alsa for some odd reason.
 
Old 03-30-2005, 04:14 PM   #10
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 66
xmms-alsa is stable on x86:
http://packages.gentoo.org/search/?sstring=xmms-alsa

You using amd64 or something? Edit: well it's stable for amd64 too, are you using ~x86 version of xmms?

I am using gentoo and have xmms-alsa installed no prob...

Last edited by bulliver; 03-30-2005 at 04:16 PM.
 
Old 03-31-2005, 02:07 AM   #11
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
To have alsa mix multiple audio streams: make a file '/etc/asound.conf' (global) or '$HOME/.asoundrc' (user specific) and put the following in it:

Code:
pcm.dmix0 {
  type                  dmix
  ipc_key               673138

  slave {
    pcm                 "hw:0,0"

    rate                48000

    period_time         80000
    buffer_time         320000

    period_size         4096
    buffer_size         16384
  }

  bindings {
    0                   0
    1                   1
  }
}

# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
  type                  plug
  slave.pcm             "dmix0"
}

ctl.dsp0 {
    type                hw
    card                0
}

pcm.!default {
  type                  plug
  slave.pcm             "dmix0"
}

ctl.!default {
    type                hw
    card                0
}

ctl.mixer {
    type hw
    card 0
}
Now you can use alsa, arts and esound all at the same time (but who would want that ). Not OSS though, OSS claims sole use of the device.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mplayer stopped playing my mp3s dr_zayus69 Linux - Software 7 05-26-2005 12:47 PM
RedHat 8.0, xmms playing wavs but not mp3s majam Red Hat 2 05-21-2005 05:01 PM
playing MP3s on XMMS (Fedora 3) lorry_driver Linux - Newbie 2 02-23-2005 05:18 AM
System and Gaim Sounds but no sound in XMMS, mplayer or totem. Horizon111 Linux - Software 1 04-20-2004 09:22 PM
mplayer makes weird beeping sounds when playing avi's gervin Linux - Newbie 0 03-25-2004 03:35 AM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration