File: metadata_cache.liq

package info (click to toggle)
liquidsoap 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,372 kB
  • sloc: ml: 71,806; javascript: 27,320; ansic: 398; xml: 114; sh: 99; lisp: 96; makefile: 26
file content (38 lines) | stat: -rw-r--r-- 589 bytes parent folder | download
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
s = sine()
thread.run(
  every=1.,
  {
    begin
      print(
        "Inserting metadata"
      )
      s.insert_metadata(new_track=true, [("foo", "bla")])
    end
  }
)

s =
  compress.multiband(
    s,
    [
      {
        frequency=200.,
        attack=10.,
        release=30.,
        ratio=2.,
        threshold=-4.,
        gain=0.
      },
      {
        frequency=20000.,
        attack=10.,
        release=40.,
        ratio=2.,
        threshold=-2.,
        gain=-2.
      }
    ]
  )

s.on_metadata(synchronous=true, fun (_) -> test.pass())
output.dummy(fallible=true, s)