summaryrefslogtreecommitdiffstats
path: root/src/daemon/filter-chain/sink-dolby-surround.conf
blob: a53009f7cf56d17df9bcc6b6c285bb0e785be9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Dolby Surround encoder sink
#
# Copy this file into a conf.d/ directory such as
# ~/.config/pipewire/filter-chain.conf.d/
#
context.modules = [
    { name = libpipewire-module-filter-chain
        args = {
            node.description = "Dolby Surround Sink"
            media.name       = "Dolby Surround Sink"
            filter.graph = {
                nodes = [
                    {
                        type  = builtin
                        name  = mixer
                        label = mixer
                        control = { "Gain 1" = 0.5 "Gain 2" = 0.5 }
                    }
                    {
                        type   = ladspa
                        name   = enc
                        plugin = surround_encoder_1401
                        label  = surroundEncoder
                    }
                ]
                links = [
                    { output = "mixer:Out" input = "enc:S" }
                ]
                inputs  = [ "enc:L" "enc:R" "enc:C" null "mixer:In 1" "mixer:In 2" ]
                outputs = [ "enc:Lt" "enc:Rt" ]
            }
            capture.props = {
                node.name      = "effect_input.dolby_surround"
                media.class    = Audio/Sink
                audio.channels = 6
                audio.position = [ FL FR FC LFE SL SR ]
            }
            playback.props = {
                node.name      = "effect_output.dolby_surround"
                node.passive   = true
                audio.channels = 2
                audio.position = [ FL FR ]
            }
        }
    }
]