Skip to content

Commit

Permalink
More fixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 11, 2023
1 parent 413fc09 commit da09ed0
Show file tree
Hide file tree
Showing 7 changed files with 1,659 additions and 41 deletions.
8 changes: 6 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
all:
@dune build @gendune --auto-promote
all: dune
@dune build @doc

test:
@dune build @doctest

dune:
@dune build @gendune --auto-promote

.PHONY: dune
2 changes: 1 addition & 1 deletion doc/content/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Receiver:

## Scheduling

```{.liquidsoap include="content/liq/scheduling.liq"}
```{.liquidsoap include="content/liq/scheduling.liq" from=1 to=-1}
```

Expand Down
4 changes: 4 additions & 0 deletions doc/content/liq/check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
# shellcheck disable=SC2068

../../../liquidsoap --check $@
4 changes: 2 additions & 2 deletions doc/content/liq/re-encode.liq
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
input = "/tmp/input.mp3"

# The output file
output = "/tmp/output.ogg"
target = "/tmp/output.ogg"

# A source that plays the file once
source = once(single(input))
Expand All @@ -11,4 +11,4 @@ source = once(single(input))
clock.assign_new(sync="none", [source])

# Finally, we output the source to an ogg/vorbis file
output.file(%vorbis, output, fallible=true, on_stop=shutdown, source)
output.file(%vorbis, target, fallible=true, on_stop=shutdown, source)
7 changes: 4 additions & 3 deletions doc/content/liq/scheduling.liq
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
night=sine() day=sine()
# A fallback switch
fallback([playlist("http://my/playlist"),
single("/my/jingle.ogg")])

# A scheduler,
# assuming you have defined the night and day sources
switch([ ({0h-7h}, night), ({7h-24h}, day) ])
# A scheduler, assuming you have defined the night and day sources
s = switch([ ({0h-7h}, night), ({7h-24h}, day) ])
output.dummy(fallible=true,s)
Loading

0 comments on commit da09ed0

Please sign in to comment.