File: lufs_integrated.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 (18 lines) | stat: -rw-r--r-- 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def f() =
  lufs_integrated = ref(0.)

  def process(s) =
    s = lufs(s)
    s.on_frame(synchronous=true, {lufs_integrated := s.lufs_integrated()})
    s
  end

  r = request.create("@wav[stereo].wav")

  request.process(process=process, r)

  test.almost_equal(digits=3, lufs_integrated(), -0.69)
  test.pass()
end

test.check(f)