Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

  1. #1
    Join Date
    May 2005
    Beans
    13
    Distro
    Ubuntu Breezy 5.10

    HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    This will get you software mixing (multiple sounds at the same time), and lets you play MP3s in xmms on your surround boxes, not just on your front left and right boxes.

    First, create a .asoundrc file in your home directory, and put this into it:

    Code:
    pcm.dmix51 {
      type dmix
      ipc_key 1024
      slave {
        pcm "hw:0,1"
        rate 48000
        channels 6
        period_time 0
        period_size 1024
        buffer_time 0
        buffer_size 4096
      }
    }
    pcm.stereo {
      type plug
      slave.pcm "dmix51"
      ttable.0.0 1
      ttable.1.1 1
    }
    pcm.!default {
      type plug
      slave.pcm "stereo"
    }
    pcm.duplicate {
      type plug
      slave.pcm "dmix51"
      slave.channels 6
      route_policy duplicate
    }
    Then, change the output plugin in xmms to the alsa plugin (press CTRL-P), and then click configure. Set the output device to "duplicate".
    If you also want software mixing in xine, set the alsa_surround51_device in the xine configuration to "dmix51".
    With this setting, for all applications that use the default output get outpont on front left and front right speakers. All that have 5.1 sound should use the dmix51 device.
    Last edited by BeeRockxs; May 5th, 2005 at 02:37 PM.

  2. #2
    Join Date
    Dec 2004
    Beans
    5

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    Thank you!

  3. #3
    Join Date
    May 2005
    Beans
    13
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    I'm glad I could help, I've been fighting ALSA quite some time to get this working

  4. #4
    Join Date
    Apr 2005
    Beans
    7

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    Finally the centerbox works. Thanks a lot...

  5. #5
    Join Date
    May 2005
    Beans
    1

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    Have some problems with getting 5.1 too. Is there any kind of script that would fix this while I'm using an usb-audio-device (Terratec Aureon 5.1 USB MKII)?
    I only get sound on the right and left front box, neither on subwoofer, center or rear and all those tips posted in several forums didn't work for me.
    So I hope there is another useful script THX

  6. #6
    Join Date
    Aug 2005
    Beans
    6

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    Hello,

    I have some problem with the script
    I have followed your instructions with few exceps: I didn't find 'Output device' (in the xmms, Ctrl+P, Alsa plugin, Configure). In the Audio device section I have 'default'.
    Then I try to play smth. XMMS Says "Coundn't open audio" and outputs:

    "ALSA lib pcm_dmix.c:868: (snd_pcm_dmix_open) unable to open slave"

    Do you have any ideas?

  7. #7
    Join Date
    Sep 2005
    Beans
    5

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    How could you ? Why me ?
    I just paid 30 bucks for a sound blaster and now i got my old card to work full 5.1. Bastard!




    kidding .(well i did buy a new card , but who cares )
    Cheers man , i owe you a beer !
    (you can't eaven imagine how long i've tryed to make this work !You'r just pure genius )

    ...dose anyone know why xmms stops when i "pause" it ? (it's like i pressed stop , and resume dose not work)
    Last edited by MrJack; September 3rd, 2005 at 06:08 PM.

  8. #8
    Join Date
    Apr 2005
    Location
    Germany
    Beans
    20
    Distro
    Kubuntu 6.10 Edgy

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    Quote Originally Posted by sukker
    Have some problems with getting 5.1 too. Is there any kind of script that would fix this while I'm using an usb-audio-device (Terratec Aureon 5.1 USB MKII)?
    I only get sound on the right and left front box, neither on subwoofer, center or rear and all those tips posted in several forums didn't work for me.
    So I hope there is another useful script THX
    using that asoundrc as it is doesn't work for my terratec aureon 5.1 usb mkII. i had to change hw:0,1 to hw:1,0. now i hear sound on all 6 channels, but it is distorted and always overlaid by a sharp buzzing.
    any ideas on how to get this fixed?

  9. #9
    Join Date
    Apr 2005
    Location
    Germany
    Beans
    20
    Distro
    Kubuntu 6.10 Edgy

    Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    search arround in the www and finally put together this asoundrc file:

    Code:
    pcm.dmix51 {
    	type dmix
    	ipc_key 1024
    	ipc_key_add_uid false
    	ipc_perm 0666 
    	slave {
    		pcm "hw:1,0"
    		channels 6
    		period_time 0
    		period_size 1024
    		buffer_size 8192
    		rate 44100
    	}
    }
    
    ctl.dmix51 {
    	type hw
    	card 1
    }
    
    pcm.stereo {
    	type plug
    	slave.pcm "dmix51"
    	ttable.0.0 1
    	ttable.1.1 1
    }
    
    pcm.!default {
    	type route
    	slave.pcm "dmix51"
    	slave.channels 6
    	ttable.0.0 1
    	ttable.1.1 1
    	ttable.0.2 1
    	ttable.1.3 1
    	ttable.0.4 1
    	ttable.1.4 1
    	ttable.0.5 1
    	ttable.1.5 1
    }
    
    pcm.duplicate {
    	type plug
    	slave.pcm "dmix51"
    	slave.channels 6
    	route_policy duplicate
    }
    it is working excellent with my terratec aureon 5.1 usb mkII.

  10. #10
    Join Date
    Oct 2005
    Location
    Den Haag
    Beans
    42
    Distro
    Ubuntu 6.06

    Cool Re: HOWTO: CMI8378, Alsa, software mixing and 5.1 sound in xmms

    Well I do have 6 channels. but unfortunately it's added enormous static to my sound as well... to the point where all you hear is static.

    Any suggestions?
    Last edited by Vlammetje; October 24th, 2005 at 10:08 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •