Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

How to leave artsd?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
miraceti
Apprentice
Apprentice
Posts: 165
Joined: Thu Oct 07, 2004 9:06 pm

How to leave artsd?

  • Quote

Post by miraceti » Thu Sep 01, 2005 3:13 pm

Hi!

I use KDE (which I like). I also use artsd (which I like less and less) with ALSA. I would like to migrate from artsd to something else. Jack seems to be an interesting choice. However, I would like to know how to switch between them quickly and without bigger problems and what all problems I can expect.

Can anybody help?
Top
SinoTech
Advocate
Advocate
Posts: 2579
Joined: Sat Mar 20, 2004 3:52 pm
Location: Neunkirchen / Saarland / Germany
Contact:
Contact SinoTech
Website

  • Quote

Post by SinoTech » Thu Sep 01, 2005 3:49 pm

Well, the 2.6.12 Kernel series supports SW-Mixing. So now multiple applications can access your sound devices at the same time (Until now arts (Or something similiar) has mixed all the stuff together).
Therefore you just have to set "-arts" in your USE-Flags, recompile all applications that has ARTS in their USE-Flags and after that unmerge "arts".

Add "-arts" to your USE-Falgs

Code: Select all

$ nano /etc/make.conf
Recompile all packages that currently use arts:

Code: Select all

$ emerge -N world
Unmerge arts

Code: Select all

$ emerge -C arts
Mfg

Sino
Top
Headrush
Watchman
Watchman
User avatar
Posts: 5597
Joined: Thu Nov 06, 2003 12:48 am
Location: Bizarro World

  • Quote

Post by Headrush » Thu Sep 01, 2005 4:02 pm

The problem is many KDE apps only use arts for sound. (aka Kopete, I need to know when someone comes online!)
What I have done is remove arts USE flag for all packages except the few packages in KDE that I must have sound. (The ones that only use arts) Then I run the artsd server, but have it use "play" as an external player.
Top
miraceti
Apprentice
Apprentice
Posts: 165
Joined: Thu Oct 07, 2004 9:06 pm

  • Quote

Post by miraceti » Tue Sep 13, 2005 8:31 pm

SinoTech wrote:Well, the 2.6.12 Kernel series supports SW-Mixing. So now multiple applications can access your sound devices at the same time (Until now arts (Or something similiar) has mixed all the stuff together).
What should I set up in a kernel configuration in order that it works? I have got 2.6.12 but when I want to play two sounds at the same time, I get a familiar response: "Can't open /dev/dsp!"

Thanks.
Top
SinoTech
Advocate
Advocate
Posts: 2579
Joined: Sat Mar 20, 2004 3:52 pm
Location: Neunkirchen / Saarland / Germany
Contact:
Contact SinoTech
Website

  • Quote

Post by SinoTech » Wed Sep 14, 2005 5:40 am

miraceti wrote:
SinoTech wrote:Well, the 2.6.12 Kernel series supports SW-Mixing. So now multiple applications can access your sound devices at the same time (Until now arts (Or something similiar) has mixed all the stuff together).
What should I set up in a kernel configuration in order that it works? I have got 2.6.12 but when I want to play two sounds at the same time, I get a familiar response: "Can't open /dev/dsp!"

Thanks.
Well, my kernel does it by default. I've got "gentoo-sources-2.6.12-r9" and used the kernel alsa-driver (Not the package "alsa-driver"). What's your settings ?

Mfg

Sino
Top
bssteph
l33t
l33t
User avatar
Posts: 653
Joined: Wed Feb 26, 2003 12:33 am
Location: Wisconsin
Contact:
Contact bssteph
Website

  • Quote

Post by bssteph » Wed Sep 14, 2005 7:03 am

miraceti wrote:
SinoTech wrote:Well, the 2.6.12 Kernel series supports SW-Mixing. So now multiple applications can access your sound devices at the same time (Until now arts (Or something similiar) has mixed all the stuff together).
What should I set up in a kernel configuration in order that it works? I have got 2.6.12 but when I want to play two sounds at the same time, I get a familiar response: "Can't open /dev/dsp!"

Thanks.
http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix

All my software mixing boxes have gone the way of the dodo (or the wooly mammoth, your choice) but what you are looking for is dmix, which is how you use software mixing with ALSA. The URL should help. And then you could do as one of the posts above said and have the KDE sound system use aplay or whatever.
Top
tomvollerthun
Guru
Guru
User avatar
Posts: 316
Joined: Sat Mar 19, 2005 2:56 pm

  • Quote

Post by tomvollerthun » Wed Sep 14, 2005 8:50 am

bssteph wrote:And then you could do as one of the posts above said and have the KDE sound system use aplay or whatever.
But isn't the dmix-setup intended exactly to have the kernel manage the mixing of concurrent access to the sound device? Why can't the "normal" artsd be one of these processes?
If another process, say amaroK with gstreamer, wants to play although artsd is playing already, doesn't the kernel manages the proper handling transparently for the applications?

So if I just want the nice things that jack or gstreamer provide, but don't really care what the remaining stuff does and just want "it to work", can't I simply configure dmix and everything works?

Damn, I'll never understand this pesky thing under my desk...

cu, tom
Computer science is no more about computers than astronomy is about telescopes.
Dijsktra
---------------
Don't believe my "Guru" status!
Top
bssteph
l33t
l33t
User avatar
Posts: 653
Joined: Wed Feb 26, 2003 12:33 am
Location: Wisconsin
Contact:
Contact bssteph
Website

  • Quote

Post by bssteph » Wed Sep 14, 2005 9:23 pm

tomvollerthun wrote:But isn't the dmix-setup intended exactly to have the kernel manage the mixing of concurrent access to the sound device? Why can't the "normal" artsd be one of these processes?
If another process, say amaroK with gstreamer, wants to play although artsd is playing already, doesn't the kernel manages the proper handling transparently for the applications?

So if I just want the nice things that jack or gstreamer provide, but don't really care what the remaining stuff does and just want "it to work", can't I simply configure dmix and everything works?
You're right. I was a bit inaccurate above. You configure the KDE System Notifications (technically, not the Sound Server) to play through aplay (or whatever) and for the most part, you can do without arts. If there were anything that used only arts, you'd be forced to use it (of course). And if you had two such things that demanded to use arts at the same time, you'd be stuck. It'd work, but AFAIK arts would mix those two sources before alsa/dmix were applied.

dmix will let gstreamer + artsd, gstreamer + aplay, aplay + aplay, etc., work fine via software mixing.

EDIT: And if you're asking why there can't just be two artsd processes, well, that's exactly what artsd is supposed to not do, by design. Although that design is undesirable behavior in most situations when you have dmix working.

On that note, is anyone aware of anything that uses ONLY arts?
Top
tomvollerthun
Guru
Guru
User avatar
Posts: 316
Joined: Sat Mar 19, 2005 2:56 pm

  • Quote

Post by tomvollerthun » Thu Sep 15, 2005 8:08 am

bssteph wrote:EDIT: And if you're asking why there can't just be two artsd processes, well, that's exactly what artsd is supposed to not do, by design. Although that design is undesirable behavior in most situations when you have dmix working.
In all honesty, I wasn't thinking so far: it was just that I planned to use gstreamer but can't be bothered to recompile KDE without arts, so I basically want to use everything (read: arts) as before and gstreamer on top of it -- in this situation there's really only one artsd.
bssteph wrote:On that note, is anyone aware of anything that uses ONLY arts?
Since juk integrated gstreamer-support in the last release, the only thing I can think of is the internal stuff like knotify or artsdsp (that's obivous, isn't it?).
Other than that the KDE-world seems to be quite prepared for getting rid of arts.

BTW: I never really had a problem with arts. Only recently when I starting enjoying amarok, I recognized that the program didn't restart arts, when artsd was deactivated due to a pause or so. Although I might have configured arts to not be deactivated after a time of silence, I wanted to take the opportunity to try something else.
And it works like a charm indeed: even with amarok outputting to gstreamer and juk outputting to arts (at the same time) everything works without skips and I didn't need to recompile KDE ;)
Computer science is no more about computers than astronomy is about telescopes.
Dijsktra
---------------
Don't believe my "Guru" status!
Top
miraceti
Apprentice
Apprentice
Posts: 165
Joined: Thu Oct 07, 2004 9:06 pm

dmix is working...

  • Quote

Post by miraceti » Sun Sep 18, 2005 8:26 am

Hi,
I managed to setup dmix, so it is working now and mixing sound for example from aplay applications. I also use Amarok with gstreamer-alsasink out of the artsd. However, several applications still needs artsd.

Firstly, I would like to change an external player in KDE System Notifications. Now, I use artsplay, which can play wavs, oggs etc. Aplay cannot play oggs. I tried "alsaplayer -i text" but it did not work and I did not find why. In console, it works quite fine and jsut "alsaplayer" works fine too (just itds GUI is launched at each time). Can you recommend me any light player using alsa which can play wav, ogg, mp3,...?

Secondly, I would like to stop using artsdsp wrapper for applications which want to access /dev/dsp. I thought that this could be set up in ~/.asoundrc but it does not work.

My ~/.asoundrc

Code: Select all

pcm.ossmix {
    type dmix
    ipc_key 1024          # must be unique!
    ipc_perm 0660         # sound for everybody (at least in your group)
    slave {
        pcm "hw:0,0"      # you cannot use a "plug" device here, darn.
        period_time 0
        period_size 1024  # must be power of 2
        buffer_size 8192  # dito. It
        #format "S32_LE"
        #periods 128      # dito.
        #rate 8000        # with rate 8000 you *will* hear,
                          # if ossmix is used :)
    }
}
# bindings are cool. This says, that only the first
# two channels are to be used by dmix, which is enough for
# (most) oss apps and also lets multichannel chios work
# much faster:

bindings {
    0 0   # from 0 => to 0
    1 1   # from 1 => to 1
}

pcm.dsp0 {
    type plug
    slave.pcm "ossmix"     # use our new PCM here
}

# mixer0 like above
ctl.mixer0 {
    type hw
    card 0
}
I also found that there is no /dev/dsp0 among my devices. What is wrong?
Top
Post Reply

10 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic