LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mpd (Music Player) and GAIM sound together. (https://www.linuxquestions.org/questions/linux-software-2/mpd-music-player-and-gaim-sound-together-328536/)

MikeyCarter 05-30-2005 09:49 AM

mpd (Music Player) and GAIM sound together.
 
I'm currently running mpd so I can play music while I work... Problem is when it's running my GAIM client doesn't have any sound. (at least till I hit the stop button) Does anyone know how I can configure these two apps so they both can send sound?

Thanks,
Michael

acid_kewpie 05-30-2005 12:11 PM

you need to both make them use decent sound outputs. try either arts for kde, or esd for gnome. the best solution would actually be to configure alsa, which lies underneath esd and arts to directly accept multiple connections via the dmix plugin, but that's a little more complicated (but not much)

MikeyCarter 05-30-2005 12:23 PM

Managed to solve my own problem looking at another post on linuxquestions.org.

The big problem I had is gaim runs as one user and mpd runs as another. I needed to modify the following file:

File: /etc/asound.conf
Code:

    pcm.!default {
        type plug
        slave.pcm "dmixer"
    }
    pcm.dmixer  {
        type dmix
        ipc_key 1024
        ipc_perm 0666
        slave {
            pcm "hw:0,0"
            period_time 0
            period_size 1024
            buffer_size 4096
            rate 44100
        }
        bindings {
            0 0
            1 1
        }
    }
    ctl.dmixer {
        type hw
        card 0
    }


acid_kewpie 05-30-2005 12:37 PM

cool, i never know wether "modern" distro's set up alsa nicely or not, they never used to... good to know it should be a safe bet now.


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