LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Command to restart sound server? (https://www.linuxquestions.org/questions/slackware-14/command-to-restart-sound-server-617190/)

Melkor 01-29-2008 12:37 PM

Command to restart sound server?
 
I'm trying to script something on my Slackware machine to restart the sound server. I've been doing it manually via the KDE Control Center sound screen, but is there a command line way of doing this that I could incorporate into a script?

I haven't had much luck in my searching the web and LQ for that.

Thanks. :)

Alien_Hominid 01-29-2008 03:02 PM

Do you mean artsd?

Then take a look at artsshell

Melkor 01-29-2008 03:12 PM

Nope, sorry I should have mentioned, I'm running alsa.

Alien_Hominid 01-29-2008 03:14 PM

Why do you need to restart alsa? It's inside the kernel (afaik, kernel service) and I don't think it can be simply restarted.

Melkor 01-29-2008 03:20 PM

Quote:

Originally Posted by Alien_Hominid (Post 3039137)
Why do you need to restart alsa? It's inside the kernel (afaik, kernel service) and I don't think it can be simply restarted.

How does KDE do it from the Control Center then, I wonder?

I'm wanting to script this so I don't have to do it manually before starting another app.

Alien_Hominid 01-29-2008 03:30 PM

kde restarts arts, which is the kde sound mixer

Melkor 01-29-2008 04:00 PM

Quote:

Originally Posted by Alien_Hominid (Post 3039157)
kde restarts arts, which is the kde sound mixer

Even if in the KDE Control Center I'm specifying ALSA?

That seems goofy to me. :scratch:

Alien_Hominid 01-29-2008 04:14 PM

Ok, I'll try to explain a bit. There are several audio layers. OSS (deprecated) or/and alsa provides drivers for your audio chipsets and that's why you enable their drivers in the kernel. You run kernel and so you run alsa, which requires your audio chipset module modprobed. There is an interaction between userspace alsa (you can configure it, adjust sound levels) and kernelspace alsa server. As well, there are esd and arts. Esd is used by gnome and arts is used by kde. Those are software mixers provided by mentioned desktop environments. You may not use esd or arts and use alsa asoundrc instead. Those mixers just mix the sound and send combined digital soundwave to alsa, which works with your soundcard and lets your hear it.

Melkor 01-29-2008 04:49 PM

Quote:

Originally Posted by Alien_Hominid (Post 3039213)
Ok, I'll try to explain a bit. There are several audio layers. OSS (deprecated) or/and alsa provides drivers for your audio chipsets and that's why you enable their drivers in the kernel. You run kernel and so you run alsa, which requires your audio chipset module modprobed. There is an interaction between userspace alsa (you can configure it, adjust sound levels) and kernelspace alsa server. As well, there are esd and arts. Esd is used by gnome and arts is used by kde. Those are software mixers provided by mentioned desktop environments. You may not use esd or arts and use alsa asoundrc instead. Those mixers just mix the sound and send combined digital soundwave to alsa, which works with your soundcard and lets your hear it.

Ahhhh, okay. Thanks for the explanation, I've always had a hard time grokking how this worked on different levels.

I'll give that a try. Thanks again! :D

Alien_Hominid 01-29-2008 11:42 PM

There are more than this, especially if you work in sound production area. You could read those projects web pages too for better understanding.


All times are GMT -5. The time now is 10:03 AM.