ALSA: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
Created page with '== 5.1 surround test == speaker-test -Dplug:surround51 -c6'
 
Tgurr (talk | contribs)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== 5.1 surround test ==
== 5.1 Surround Sound through S/PDIF-Output (preparation for PulseAudio) ==
speaker-test -Dplug:surround51 -c6
 
{{File|/etc/asound.conf|
<pre>
# Encode AC3 -> Directly on hardware
pcm.a52 {
    @args [CARD]
    @args.CARD { 
        type string
    }
    type rate
    slave { 
        pcm {
            type a52 
            bitrate 448
            channels 6
            card $CARD
        }
        rate 48000 # Otherwise nothing happens in PulseAudio
    }
}
# Default ALSA Device is pulse (for Flash Player etc.)
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
</pre>
}}

Latest revision as of 15:17, 27 July 2011

5.1 Surround Sound through S/PDIF-Output (preparation for PulseAudio)

File: /etc/asound.conf
# Encode AC3 -> Directly on hardware
pcm.a52 {
    @args [CARD]
    @args.CARD {   
        type string
    }
    type rate 
    slave {  
        pcm {
            type a52   
            bitrate 448
            channels 6
            card $CARD
        }
        rate 48000 # Otherwise nothing happens in PulseAudio
    }
}
# Default ALSA Device is pulse (for Flash Player etc.)
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}