Pulseaudio surround with a52 (Dolby Digital)
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Pulseaudio surround with a52 (Dolby Digital)

    Hi all.

    I'm amazed not to find any post with the keyword "a52" in this forum!

    So, I'd like to invite everyone trying this setup or those who had successfully got it working to this discussion.

    Goals:
    • First and the mother of all problems: Output encoded 5.1 to the digital out of the sound card, to a DTS/Dolby Digital capable receiver.
    • Have a52 encoded sound like DD (Dolby Digital) Live working on Windows
    • Be as compatible as possible for multiple programs (alsa dmix style)
    • Achieve a successful setup with both ALSA and Pulseaudio if possible


    First Notes:
    • The a52 plugin requires access to the sound hardware
    • Pulseaudio already handles the mixing and rate conversion over alsa
    • My setup is with an ALC883(HDA-Intel) (Gigabyte GA-EP45-UD3P)


    Let's begin with my current setup (for testing):
    .asoundrc
    Code:
    pcm.pulseaudio {
      type pulse
    }
    ctl.pulseaudio {
      type pulse
    }
    
    pcm.pulsea52enc {
      type a52
      @args.0 {
        type integer
        default 0
      }
    }
    ctl.pulsea52enc {
    type hw
    card 0
    }
    pcm.pulseaudioplug {
      type plug
      slave.pcm "pulsea52enc"
    }
    
    pcm.!default {
      type upmix
      slave.pcm "pulsea52enc"
    #  slave.pcm "pulseaudioplug"
      channels 6
    }
    ctl.!default {
        type pulse
    }
    The tail of my default.pa
    Code:
    load-module module-alsa-sink device=pulsea52enc rate=48000 channels=6 tsched=0 sink_name=alsa_a52
    set-default-sink alsa_a52
    My changes into default.pa (by default, everything is commented)
    Code:
    realtime-scheduling = yes
    disable-lfe-remixing = no
    default-fragments = 5
    default-fragment-size-msec = 25
    Linux, ALSA, programs just don't cease to amuse me...
    Testing using xine with alsa as sound plugin and into pcm.!default I use slave.pcm "pulsea52enc", the sound distorts a bit, but if i change the slave to slave.pcm "pulseaudioplug" the "distortion" isn't there any more.
    Changing the audio plugin to pulseudio, quality is good for both slaves.

    If you get a message that audio device is no available, wait 2sec and try playing again.

    Some notes:
    • mpg321 with -ao alsa09 is unable to spawn pulseaudio
    • audacious simply doesn't work (sound is "pausing"), using either pulse or alsa as output plugin
    • xmms works with pulseaudio plugin only; alsa plugin seems to try to use direct hardware access (damn ool unmaintained codes!)
    • Looks like amarok works fine!
    • Xine works fine, both stereo, ac3, dts, all works fine.
    • Totem didn't work
    • Not sure, but it looks like xine doesn't remember volume!?
    • I'm still trying to get pulseaudio device chooser/volume manager to work
    • Will try later with 4 channels instead of 6


    I believe that pulseaudio already creates a 6 channel stream with this config, thus, making the pulseaudioplug and upmix pcms useless or might be guilty to some extent.

    That's it for the moment, I hope those who want the same setup participate, so we may find the guilty for all this a52 mess... any component might be buggy: alsa-a52-plugin, pulseaudio or alsa. And surely there will still remain bugs in the programs we use.

    Later, I will upload some audio samples recorded from my cell phone for you to compare with your results.
    Last edited by msilveira; 2nd October 2009 at 10:32 PM. Reason: fix descriptions

  2. #2
    Join Date
    Nov 2010
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pulseaudio surround with a52 (Dolby Digital)

    can someone confirm if workaround from msilviera working? thanks

  3. #3
    Join Date
    Apr 2014
    Location
    Raleigh, NC
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pulseaudio surround with a52 (Dolby Digital)

    Hey folks -- I'm bringing this ancient thread back from the dead. Some items in the original post appear to be outdated and I'd like to see if we could revive this. I'd like to get surround sound primarily for games in Steam. Does anyone have experience with this?

    I have the a52 plugin installed, but I've tried this and other guides online and am getting nowhere. My goal is to get my Realtek chipset onboard sound output to produce DD / DTS over spdif and have it function like Dolby Digital Live does in Windows. I can currently get this to work in Windows.

    Can anyone point me (and hopefully others) in the right direction? Some of the info out there indicates that you need to recompile the a52 plugin, but most instructions are for Ubuntu / Debian based distributions and I'm having trouble 'translating' it to an RPM based system.

    Thanks!

  4. #4
    Join Date
    Apr 2014
    Location
    Raleigh, NC
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pulseaudio surround with a52 (Dolby Digital)

    I also found this:

    http://aepatrakov.narod.ru/index/0-2

    I'd be happy with DTS too, but I can't even figure out how to compile the source using the install instructions. I get stuck at './configure', which is basically the first step.

    I think to get all of this working I need a better understanding of compiling source and how to use alsa plugins and if I can figure it out I'll post my results here.

Similar Threads

  1. Lenovo Y530 Dolby Surround Sound Problem
    By larende in forum Hardware & Laptops
    Replies: 2
    Last Post: 24th April 2009, 11:33 PM
  2. ALSA, pulseaudio and 5.1 surround
    By alarm9k in forum Using Fedora
    Replies: 1
    Last Post: 12th March 2008, 04:29 PM
  3. Dolby Digital Play back Fedora 5
    By tseufert in forum Using Fedora
    Replies: 1
    Last Post: 1st June 2006, 06:21 PM
  4. DVD playback and Dolby Digital 5.1 on Linux
    By F for Fragging in forum Using Fedora
    Replies: 5
    Last Post: 26th October 2005, 06:04 AM
  5. Sound Fusion CS46xxx Dolby Surround
    By ichiko in forum Hardware & Laptops
    Replies: 8
    Last Post: 23rd June 2005, 11:23 AM

Tags for this Thread

Posting Permissions

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