codemirror-lang-liquidsoap 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +20 -0
- package/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/cli.js +162 -0
- package/dist/index.js +44 -0
- package/dist/liquidsoap-0dac1347.js +232 -0
- package/dist/liquidsoap-18e69476.js +232 -0
- package/dist/liquidsoap-826221b5.js +232 -0
- package/dist/liquidsoap-897c55ac.js +232 -0
- package/dist/liquidsoap-a11e5e7f.js +232 -0
- package/dist/liquidsoap-c12c37dd.js +232 -0
- package/dist/liquidsoap-c4fc76fd.js +232 -0
- package/dist/liquidsoap-f8672f59.js +232 -0
- package/package.json +45 -0
- package/rollup.config.js +13 -0
- package/src/cli.ts +166 -0
- package/src/index.ts +43 -0
- package/src/liquidsoap.grammar +788 -0
- package/src/liquidsoap.grammar.d.ts +3 -0
- package/src/parser.js +19 -0
- package/src/parser.terms.js +84 -0
- package/src/tokens.js +207 -0
- package/tests/liquidsoap/.codespellignore +14 -0
- package/tests/liquidsoap/.gitattributes +2 -0
- package/tests/liquidsoap/.github/FUNDING.yml +12 -0
- package/tests/liquidsoap/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
- package/tests/liquidsoap/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- package/tests/liquidsoap/.github/ISSUE_TEMPLATE/question.md +13 -0
- package/tests/liquidsoap/.github/alpine/APKBUILD-minimal.in +29 -0
- package/tests/liquidsoap/.github/alpine/APKBUILD.in +28 -0
- package/tests/liquidsoap/.github/alpine/liquidsoap.pre-install +7 -0
- package/tests/liquidsoap/.github/debian/compat +1 -0
- package/tests/liquidsoap/.github/debian/control.in +118 -0
- package/tests/liquidsoap/.github/debian/dirs +4 -0
- package/tests/liquidsoap/.github/debian/install +3 -0
- package/tests/liquidsoap/.github/debian/manpages +1 -0
- package/tests/liquidsoap/.github/debian/postinst +40 -0
- package/tests/liquidsoap/.github/debian/postrm +11 -0
- package/tests/liquidsoap/.github/debian/rules +29 -0
- package/tests/liquidsoap/.github/debian/rules-minimal +30 -0
- package/tests/liquidsoap/.github/debian/source/format +1 -0
- package/tests/liquidsoap/.github/docker/Dockerfile-armhf.production +35 -0
- package/tests/liquidsoap/.github/docker/Dockerfile.production +35 -0
- package/tests/liquidsoap/.github/docker/Dockerfile.production-alpine +16 -0
- package/tests/liquidsoap/.github/docker/Dockerfile.website +63 -0
- package/tests/liquidsoap/.github/opam/liquidsoap-core-windows.opam +181 -0
- package/tests/liquidsoap/.github/opam/packages/duppy/duppy.0.9.3/opam +37 -0
- package/tests/liquidsoap/.github/opam/packages/ssl/ssl.0.7.0/opam +40 -0
- package/tests/liquidsoap/.github/opam/repo +1 -0
- package/tests/liquidsoap/.github/scripts/add-local-opam-packages.sh +17 -0
- package/tests/liquidsoap/.github/scripts/build-apk.sh +102 -0
- package/tests/liquidsoap/.github/scripts/build-deb.sh +109 -0
- package/tests/liquidsoap/.github/scripts/build-details.sh +84 -0
- package/tests/liquidsoap/.github/scripts/build-doc.sh +12 -0
- package/tests/liquidsoap/.github/scripts/build-docker-alpine.sh +32 -0
- package/tests/liquidsoap/.github/scripts/build-docker.sh +40 -0
- package/tests/liquidsoap/.github/scripts/build-posix.sh +99 -0
- package/tests/liquidsoap/.github/scripts/build-website.sh +15 -0
- package/tests/liquidsoap/.github/scripts/build-win32.sh +82 -0
- package/tests/liquidsoap/.github/scripts/checkout-deps.sh +18 -0
- package/tests/liquidsoap/.github/scripts/export-metrics.sh +17 -0
- package/tests/liquidsoap/.github/scripts/push-docker.sh +72 -0
- package/tests/liquidsoap/.github/scripts/stats-posix.sh +20 -0
- package/tests/liquidsoap/.github/scripts/test-posix.sh +16 -0
- package/tests/liquidsoap/.github/stale.yml +22 -0
- package/tests/liquidsoap/.github/win32/log/.keep +0 -0
- package/tests/liquidsoap/.github/win32/run/.keep +0 -0
- package/tests/liquidsoap/.github/win32/test.liq +26 -0
- package/tests/liquidsoap/.github/workflows/ci.yml +704 -0
- package/tests/liquidsoap/.ocamlformat +10 -0
- package/tests/liquidsoap/.pre-commit-config.yaml +60 -0
- package/tests/liquidsoap/CHANGES.md +2300 -0
- package/tests/liquidsoap/COPYING +340 -0
- package/tests/liquidsoap/Makefile +4 -0
- package/tests/liquidsoap/README.md +121 -0
- package/tests/liquidsoap/RELEASING +19 -0
- package/tests/liquidsoap/ROADMAP.md +69 -0
- package/tests/liquidsoap/doc/content/beets.md +179 -0
- package/tests/liquidsoap/doc/content/blank.md +50 -0
- package/tests/liquidsoap/doc/content/book.md +11 -0
- package/tests/liquidsoap/doc/content/build.md +112 -0
- package/tests/liquidsoap/doc/content/clocks.md +312 -0
- package/tests/liquidsoap/doc/content/complete_case.md +81 -0
- package/tests/liquidsoap/doc/content/cookbook.md +518 -0
- package/tests/liquidsoap/doc/content/crossfade.md +98 -0
- package/tests/liquidsoap/doc/content/custom-path.md +77 -0
- package/tests/liquidsoap/doc/content/documentation.md +88 -0
- package/tests/liquidsoap/doc/content/dynamic_sources.md +72 -0
- package/tests/liquidsoap/doc/content/encoding_formats.md +279 -0
- package/tests/liquidsoap/doc/content/external_decoders.md +215 -0
- package/tests/liquidsoap/doc/content/external_encoders.md +60 -0
- package/tests/liquidsoap/doc/content/external_streams.md +49 -0
- package/tests/liquidsoap/doc/content/faq.md +224 -0
- package/tests/liquidsoap/doc/content/ffmpeg.md +324 -0
- package/tests/liquidsoap/doc/content/ffmpeg_cookbook.md +211 -0
- package/tests/liquidsoap/doc/content/ffmpeg_encoder.md +175 -0
- package/tests/liquidsoap/doc/content/ffmpeg_filters.md +251 -0
- package/tests/liquidsoap/doc/content/flows_devel.md +39 -0
- package/tests/liquidsoap/doc/content/frequence3.md +13 -0
- package/tests/liquidsoap/doc/content/geekradio.md +43 -0
- package/tests/liquidsoap/doc/content/gstreamer_encoder.md +154 -0
- package/tests/liquidsoap/doc/content/harbor.md +126 -0
- package/tests/liquidsoap/doc/content/harbor_http.md +263 -0
- package/tests/liquidsoap/doc/content/help.md +135 -0
- package/tests/liquidsoap/doc/content/hls_output.md +162 -0
- package/tests/liquidsoap/doc/content/http_input.md +17 -0
- package/tests/liquidsoap/doc/content/icy_metadata.md +75 -0
- package/tests/liquidsoap/doc/content/in_production.md +25 -0
- package/tests/liquidsoap/doc/content/index.md +61 -0
- package/tests/liquidsoap/doc/content/install.md +113 -0
- package/tests/liquidsoap/doc/content/json.md +333 -0
- package/tests/liquidsoap/doc/content/ladspa.md +42 -0
- package/tests/liquidsoap/doc/content/language.md +1382 -0
- package/tests/liquidsoap/doc/content/memory.md +135 -0
- package/tests/liquidsoap/doc/content/metadata.md +118 -0
- package/tests/liquidsoap/doc/content/migrating.md +475 -0
- package/tests/liquidsoap/doc/content/multitrack.md +357 -0
- package/tests/liquidsoap/doc/content/on2.md +28 -0
- package/tests/liquidsoap/doc/content/on2_part1.md +301 -0
- package/tests/liquidsoap/doc/content/on2_part2.md +849 -0
- package/tests/liquidsoap/doc/content/on2_part3.md +321 -0
- package/tests/liquidsoap/doc/content/phases.md +23 -0
- package/tests/liquidsoap/doc/content/playlist_parsers.md +58 -0
- package/tests/liquidsoap/doc/content/presentations.md +30 -0
- package/tests/liquidsoap/doc/content/profiling.md +33 -0
- package/tests/liquidsoap/doc/content/prometheus.md +146 -0
- package/tests/liquidsoap/doc/content/protocols-presentation.md +59 -0
- package/tests/liquidsoap/doc/content/publications.md +28 -0
- package/tests/liquidsoap/doc/content/quick_start.md +240 -0
- package/tests/liquidsoap/doc/content/radiopi.md +342 -0
- package/tests/liquidsoap/doc/content/reference-header.md +15 -0
- package/tests/liquidsoap/doc/content/release-assets.md +9 -0
- package/tests/liquidsoap/doc/content/replay_gain.md +85 -0
- package/tests/liquidsoap/doc/content/request_sources.md +99 -0
- package/tests/liquidsoap/doc/content/requests.md +53 -0
- package/tests/liquidsoap/doc/content/rolling-release.md +10 -0
- package/tests/liquidsoap/doc/content/script_loading.md +29 -0
- package/tests/liquidsoap/doc/content/seek.md +86 -0
- package/tests/liquidsoap/doc/content/server.md +265 -0
- package/tests/liquidsoap/doc/content/shoutcast.md +39 -0
- package/tests/liquidsoap/doc/content/sources.md +138 -0
- package/tests/liquidsoap/doc/content/split-cue.md +36 -0
- package/tests/liquidsoap/doc/content/stereotool.md +54 -0
- package/tests/liquidsoap/doc/content/stream_content.md +208 -0
- package/tests/liquidsoap/doc/content/strings_encoding.md +18 -0
- package/tests/liquidsoap/doc/content/video-static.md +35 -0
- package/tests/liquidsoap/doc/content/video.md +269 -0
- package/tests/liquidsoap/doc/content/yaml.md +29 -0
- package/tests/liquidsoap/doc/dune +46 -0
- package/tests/liquidsoap/doc/dune.inc +1677 -0
- package/tests/liquidsoap/doc/gen_dune.ml +130 -0
- package/tests/liquidsoap/doc/liquidsoap.1.md +142 -0
- package/tests/liquidsoap/doc/no-pandoc +1 -0
- package/tests/liquidsoap/doc/orig/css/homepage.css +148 -0
- package/tests/liquidsoap/doc/orig/css/style.css +258 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/clock.png +0 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/index.html +612 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/logo.png +0 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/radio.gif +0 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/remark.js +28221 -0
- package/tests/liquidsoap/doc/orig/images/basic-radio-graph.png +0 -0
- package/tests/liquidsoap/doc/orig/images/design/background.png +0 -0
- package/tests/liquidsoap/doc/orig/images/design/background_page.png +0 -0
- package/tests/liquidsoap/doc/orig/images/design/logo.png +0 -0
- package/tests/liquidsoap/doc/orig/images/grab.png +0 -0
- package/tests/liquidsoap/doc/orig/images/graph_clocks.png +0 -0
- package/tests/liquidsoap/doc/orig/images/liqgraph.png +0 -0
- package/tests/liquidsoap/doc/orig/images/schema-webradio-inkscape.png +0 -0
- package/tests/liquidsoap/doc/orig/images/stream.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_API.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_about.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_developers.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_docs.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_snippets.png +0 -0
- package/tests/liquidsoap/doc/subst_md.ml +13 -0
- package/tests/liquidsoap/doc/template.html +67 -0
- package/tests/liquidsoap/dune +33 -0
- package/tests/liquidsoap/dune-project +199 -0
- package/tests/liquidsoap/liquidsoap +6 -0
- package/tests/liquidsoap/liquidsoap-core.opam +132 -0
- package/tests/liquidsoap/liquidsoap-js.opam +37 -0
- package/tests/liquidsoap/liquidsoap-lang.opam +35 -0
- package/tests/liquidsoap/liquidsoap-libs-extra.opam +32 -0
- package/tests/liquidsoap/liquidsoap-libs.opam +31 -0
- package/tests/liquidsoap/liquidsoap-mode.opam +40 -0
- package/tests/liquidsoap/liquidsoap-mode.opam.template +9 -0
- package/tests/liquidsoap/liquidsoap.opam +66 -0
- package/tests/liquidsoap/liquidsoap.opam.template +26 -0
- package/tests/liquidsoap/prometheus-liquidsoap.opam +33 -0
- package/tests/liquidsoap/scripts/bash-completion +41 -0
- package/tests/liquidsoap/scripts/dune +29 -0
- package/tests/liquidsoap/scripts/gen_emacs_completion.ml +8 -0
- package/tests/liquidsoap/scripts/liquidsoap-mode.el +88 -0
- package/tests/liquidsoap/scripts/liquidsoap.xml +140 -0
- package/tests/liquidsoap/sdl-liquidsoap.opam +34 -0
- package/tests/liquidsoap/src/bin/dune +24 -0
- package/tests/liquidsoap/src/bin/instruments.plist +1 -0
- package/tests/liquidsoap/src/bin/liquidsoap.ml +1 -0
- package/tests/liquidsoap/src/build/build_tools.ml +3 -0
- package/tests/liquidsoap/src/build/dune +4 -0
- package/tests/liquidsoap/src/config/irc_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.default.ml +25 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.mli +13 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.posix.ml +13 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.standalone.ml +14 -0
- package/tests/liquidsoap/src/config/mem_usage_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/noop.disabled.ml +5 -0
- package/tests/liquidsoap/src/config/noop.enabled.ml +2 -0
- package/tests/liquidsoap/src/config/osc_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/sdl_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/stereotool_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/tls_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/console/console.ml +83 -0
- package/tests/liquidsoap/src/console/console.mli +42 -0
- package/tests/liquidsoap/src/console/dune +5 -0
- package/tests/liquidsoap/src/core/alsa_settings.ml +61 -0
- package/tests/liquidsoap/src/core/builtins/builtins_callbacks.ml +53 -0
- package/tests/liquidsoap/src/core/builtins/builtins_clock.ml +129 -0
- package/tests/liquidsoap/src/core/builtins/builtins_cry.ml +123 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_base.ml +27 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_bitstream_filters.ml +336 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_decoder.ml +512 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_encoder.ml +582 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_filters.ml +925 -0
- package/tests/liquidsoap/src/core/builtins/builtins_files.ml +635 -0
- package/tests/liquidsoap/src/core/builtins/builtins_harbor.ml +140 -0
- package/tests/liquidsoap/src/core/builtins/builtins_harbor_ssl.ml +31 -0
- package/tests/liquidsoap/src/core/builtins/builtins_http.ml +231 -0
- package/tests/liquidsoap/src/core/builtins/builtins_irc.ml +112 -0
- package/tests/liquidsoap/src/core/builtins/builtins_jemalloc.ml +136 -0
- package/tests/liquidsoap/src/core/builtins/builtins_lastfm.ml +110 -0
- package/tests/liquidsoap/src/core/builtins/builtins_lo.ml +195 -0
- package/tests/liquidsoap/src/core/builtins/builtins_lo.mli +0 -0
- package/tests/liquidsoap/src/core/builtins/builtins_magic.ml +34 -0
- package/tests/liquidsoap/src/core/builtins/builtins_mem_usage.ml +84 -0
- package/tests/liquidsoap/src/core/builtins/builtins_metadata.ml +39 -0
- package/tests/liquidsoap/src/core/builtins/builtins_optionals.ml +61 -0
- package/tests/liquidsoap/src/core/builtins/builtins_osc.ml +207 -0
- package/tests/liquidsoap/src/core/builtins/builtins_process.ml +333 -0
- package/tests/liquidsoap/src/core/builtins/builtins_prometheus.ml +237 -0
- package/tests/liquidsoap/src/core/builtins/builtins_request.ml +227 -0
- package/tests/liquidsoap/src/core/builtins/builtins_resolvers.ml +186 -0
- package/tests/liquidsoap/src/core/builtins/builtins_runtime.ml +237 -0
- package/tests/liquidsoap/src/core/builtins/builtins_server.ml +69 -0
- package/tests/liquidsoap/src/core/builtins/builtins_settings.ml +343 -0
- package/tests/liquidsoap/src/core/builtins/builtins_socket.ml +577 -0
- package/tests/liquidsoap/src/core/builtins/builtins_source.ml +265 -0
- package/tests/liquidsoap/src/core/builtins/builtins_srt.ml +335 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ssl.ml +234 -0
- package/tests/liquidsoap/src/core/builtins/builtins_string_extra.ml +150 -0
- package/tests/liquidsoap/src/core/builtins/builtins_sys.ml +481 -0
- package/tests/liquidsoap/src/core/builtins/builtins_thread.ml +122 -0
- package/tests/liquidsoap/src/core/builtins/builtins_time.ml +227 -0
- package/tests/liquidsoap/src/core/builtins/builtins_tls.ml +287 -0
- package/tests/liquidsoap/src/core/builtins/builtins_yaml.ml +94 -0
- package/tests/liquidsoap/src/core/clock.ml +586 -0
- package/tests/liquidsoap/src/core/clock.mli +178 -0
- package/tests/liquidsoap/src/core/configure.ml +54 -0
- package/tests/liquidsoap/src/core/configure.mli +43 -0
- package/tests/liquidsoap/src/core/conversions/conversion.ml +67 -0
- package/tests/liquidsoap/src/core/conversions/mean.ml +67 -0
- package/tests/liquidsoap/src/core/conversions/stereo.ml +67 -0
- package/tests/liquidsoap/src/core/conversions/swap.ml +62 -0
- package/tests/liquidsoap/src/core/converters/audio/ffmpeg_audio_converter.ml +44 -0
- package/tests/liquidsoap/src/core/converters/audio/libsamplerate_converter.ml +75 -0
- package/tests/liquidsoap/src/core/converters/audio/native_audio_converter.ml +73 -0
- package/tests/liquidsoap/src/core/converters/audio_converter.ml +168 -0
- package/tests/liquidsoap/src/core/converters/audio_converter.mli +76 -0
- package/tests/liquidsoap/src/core/converters/video/ffmpeg_video_converter.ml +131 -0
- package/tests/liquidsoap/src/core/converters/video/native_video_converter.ml +33 -0
- package/tests/liquidsoap/src/core/converters/video_converter.ml +104 -0
- package/tests/liquidsoap/src/core/converters/video_converter.mli +56 -0
- package/tests/liquidsoap/src/core/decoder/aac_decoder.ml +291 -0
- package/tests/liquidsoap/src/core/decoder/decoder.ml +591 -0
- package/tests/liquidsoap/src/core/decoder/decoder.mli +146 -0
- package/tests/liquidsoap/src/core/decoder/decoder_utils.ml +137 -0
- package/tests/liquidsoap/src/core/decoder/decoder_utils.mli +63 -0
- package/tests/liquidsoap/src/core/decoder/external_decoder.ml +198 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_copy_decoder.ml +82 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_copy_decoder.mli +41 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder.ml +1157 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder_common.ml +102 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_internal_decoder.ml +178 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_internal_decoder.mli +41 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_raw_decoder.ml +76 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_raw_decoder.mli +41 -0
- package/tests/liquidsoap/src/core/decoder/flac_metadata_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/gstreamer_decoder.ml +352 -0
- package/tests/liquidsoap/src/core/decoder/id3_plug.ml +86 -0
- package/tests/liquidsoap/src/core/decoder/image/camlimages_decoder.ml +61 -0
- package/tests/liquidsoap/src/core/decoder/image/ffmpeg_image_decoder.ml +58 -0
- package/tests/liquidsoap/src/core/decoder/image/imagelib_decoder.ml +44 -0
- package/tests/liquidsoap/src/core/decoder/image/ppm_decoder.ml +39 -0
- package/tests/liquidsoap/src/core/decoder/image/sdlimage_decoder.ml +39 -0
- package/tests/liquidsoap/src/core/decoder/image_decoder.ml +181 -0
- package/tests/liquidsoap/src/core/decoder/image_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/liq_flac_decoder.ml +192 -0
- package/tests/liquidsoap/src/core/decoder/liq_ogg_decoder.ml +323 -0
- package/tests/liquidsoap/src/core/decoder/mad_decoder.ml +199 -0
- package/tests/liquidsoap/src/core/decoder/midi_decoder.ml +77 -0
- package/tests/liquidsoap/src/core/decoder/ogg_flac_duration.ml +66 -0
- package/tests/liquidsoap/src/core/decoder/ogg_metadata_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/raw_audio_decoder.ml +162 -0
- package/tests/liquidsoap/src/core/decoder/srt_decoder.ml +92 -0
- package/tests/liquidsoap/src/core/decoder/taglib_plug.ml +102 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_camlimages.ml +58 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_gd.ml +63 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_gstreamer.ml +64 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_native.ml +47 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_sdl.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/video_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/vorbisduration.ml +31 -0
- package/tests/liquidsoap/src/core/decoder/wav_aiff_decoder.ml +251 -0
- package/tests/liquidsoap/src/core/doc.ml +1 -0
- package/tests/liquidsoap/src/core/dune +1050 -0
- package/tests/liquidsoap/src/core/encoder/encoder.ml +398 -0
- package/tests/liquidsoap/src/core/encoder/encoder.mli +128 -0
- package/tests/liquidsoap/src/core/encoder/encoder_formats.ml +56 -0
- package/tests/liquidsoap/src/core/encoder/encoders/avi_encoder.ml +126 -0
- package/tests/liquidsoap/src/core/encoder/encoders/external_encoder.ml +177 -0
- package/tests/liquidsoap/src/core/encoder/encoders/fdkaac_encoder.ml +122 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_copy_encoder.ml +196 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder.ml +80 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder_common.ml +342 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_internal_encoder.ml +518 -0
- package/tests/liquidsoap/src/core/encoder/encoders/flac_encoder.ml +79 -0
- package/tests/liquidsoap/src/core/encoder/encoders/gstreamer_encoder.ml +209 -0
- package/tests/liquidsoap/src/core/encoder/encoders/lame_encoder.ml +129 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ogg_encoder.ml +146 -0
- package/tests/liquidsoap/src/core/encoder/encoders/shine_encoder.ml +79 -0
- package/tests/liquidsoap/src/core/encoder/encoders/taglib_id3v2.ml +58 -0
- package/tests/liquidsoap/src/core/encoder/encoders/wav_encoder.ml +83 -0
- package/tests/liquidsoap/src/core/encoder/formats/avi_format.ml +36 -0
- package/tests/liquidsoap/src/core/encoder/formats/external_encoder_format.ml +55 -0
- package/tests/liquidsoap/src/core/encoder/formats/fdkaac_format.ml +92 -0
- package/tests/liquidsoap/src/core/encoder/formats/ffmpeg_format.ml +162 -0
- package/tests/liquidsoap/src/core/encoder/formats/flac_format.ml +34 -0
- package/tests/liquidsoap/src/core/encoder/formats/gstreamer_format.ml +53 -0
- package/tests/liquidsoap/src/core/encoder/formats/mp3_format.ml +88 -0
- package/tests/liquidsoap/src/core/encoder/formats/ogg_format.ml +44 -0
- package/tests/liquidsoap/src/core/encoder/formats/opus_format.ml +95 -0
- package/tests/liquidsoap/src/core/encoder/formats/shine_format.ml +29 -0
- package/tests/liquidsoap/src/core/encoder/formats/speex_format.ml +60 -0
- package/tests/liquidsoap/src/core/encoder/formats/theora_format.ml +66 -0
- package/tests/liquidsoap/src/core/encoder/formats/vorbis_format.ml +52 -0
- package/tests/liquidsoap/src/core/encoder/formats/wav_format.ml +38 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_avi.ml +57 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_external_encoder.ml +120 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_fdkaac.ml +134 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_ffmpeg.ml +544 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_flac.ml +73 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_gstreamer.ml +112 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_mp3.ml +260 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_ogg.ml +69 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_opus.ml +142 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_shine.ml +68 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_speex.ml +96 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_theora.ml +131 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_vorbis.ml +160 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_wav.ml +70 -0
- package/tests/liquidsoap/src/core/encoder/lang_encoder.ml +142 -0
- package/tests/liquidsoap/src/core/error.ml +1 -0
- package/tests/liquidsoap/src/core/file_watcher.inotify.ml +84 -0
- package/tests/liquidsoap/src/core/file_watcher.mtime.ml +90 -0
- package/tests/liquidsoap/src/core/harbor/harbor.ml +1209 -0
- package/tests/liquidsoap/src/core/harbor/harbor_base.ml +72 -0
- package/tests/liquidsoap/src/core/hooks_implementations.ml +172 -0
- package/tests/liquidsoap/src/core/hooks_implementations.mli +1 -0
- package/tests/liquidsoap/src/core/io/alsa_io.ml +358 -0
- package/tests/liquidsoap/src/core/io/ffmpeg_filter_io.ml +345 -0
- package/tests/liquidsoap/src/core/io/ffmpeg_io.ml +612 -0
- package/tests/liquidsoap/src/core/io/gstreamer_io.ml +762 -0
- package/tests/liquidsoap/src/core/io/oss_io.ml +198 -0
- package/tests/liquidsoap/src/core/io/oss_io_c.c +42 -0
- package/tests/liquidsoap/src/core/io/portaudio_io.ml +340 -0
- package/tests/liquidsoap/src/core/io/pulseaudio_io.ml +206 -0
- package/tests/liquidsoap/src/core/io/srt_io.ml +1117 -0
- package/tests/liquidsoap/src/core/io/udp_io.ml +268 -0
- package/tests/liquidsoap/src/core/json.ml +1 -0
- package/tests/liquidsoap/src/core/lang.ml +71 -0
- package/tests/liquidsoap/src/core/lang.mli +344 -0
- package/tests/liquidsoap/src/core/lang_source.ml +586 -0
- package/tests/liquidsoap/src/core/lang_string.ml +1 -0
- package/tests/liquidsoap/src/core/liqmagic.disabled.ml +2 -0
- package/tests/liquidsoap/src/core/liqmagic.enabled.ml +3 -0
- package/tests/liquidsoap/src/core/liqmagic.mli +4 -0
- package/tests/liquidsoap/src/core/modules.ml +39 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_flac_ogg_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_opus_decoder.ml +38 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_speex_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_theora_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_vorbis_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_flac_encoder.ml +127 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_flac_encoder_stubs.c +10 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.ml +413 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.mli +169 -0
- package/tests/liquidsoap/src/core/ogg_formats/opus_encoder.ml +143 -0
- package/tests/liquidsoap/src/core/ogg_formats/speex_encoder.ml +183 -0
- package/tests/liquidsoap/src/core/ogg_formats/theora_encoder.ml +172 -0
- package/tests/liquidsoap/src/core/ogg_formats/vorbis_encoder.ml +125 -0
- package/tests/liquidsoap/src/core/operators/accelerate.ml +115 -0
- package/tests/liquidsoap/src/core/operators/add.ml +461 -0
- package/tests/liquidsoap/src/core/operators/amplify.ml +92 -0
- package/tests/liquidsoap/src/core/operators/available.ml +80 -0
- package/tests/liquidsoap/src/core/operators/biquad_filter.ml +317 -0
- package/tests/liquidsoap/src/core/operators/chord.ml +137 -0
- package/tests/liquidsoap/src/core/operators/clip.ml +57 -0
- package/tests/liquidsoap/src/core/operators/comb.ml +84 -0
- package/tests/liquidsoap/src/core/operators/compand.ml +62 -0
- package/tests/liquidsoap/src/core/operators/compress.ml +270 -0
- package/tests/liquidsoap/src/core/operators/compress_exp.ml +65 -0
- package/tests/liquidsoap/src/core/operators/cross.ml +507 -0
- package/tests/liquidsoap/src/core/operators/cuepoint.ml +217 -0
- package/tests/liquidsoap/src/core/operators/defer.ml +183 -0
- package/tests/liquidsoap/src/core/operators/defer_c.c +23 -0
- package/tests/liquidsoap/src/core/operators/delay.ml +85 -0
- package/tests/liquidsoap/src/core/operators/delay_line.ml +94 -0
- package/tests/liquidsoap/src/core/operators/dtmf.ml +417 -0
- package/tests/liquidsoap/src/core/operators/dyn_op.ml +180 -0
- package/tests/liquidsoap/src/core/operators/echo.ml +96 -0
- package/tests/liquidsoap/src/core/operators/filter.ml +141 -0
- package/tests/liquidsoap/src/core/operators/filter_rc.ml +120 -0
- package/tests/liquidsoap/src/core/operators/fir_filter.ml +185 -0
- package/tests/liquidsoap/src/core/operators/flanger.ml +108 -0
- package/tests/liquidsoap/src/core/operators/frei0r_op.ml +368 -0
- package/tests/liquidsoap/src/core/operators/gate.ml +158 -0
- package/tests/liquidsoap/src/core/operators/iir_filter.ml +607 -0
- package/tests/liquidsoap/src/core/operators/insert_metadata.ml +144 -0
- package/tests/liquidsoap/src/core/operators/ladspa_op.ml +413 -0
- package/tests/liquidsoap/src/core/operators/lilv_op.ml +367 -0
- package/tests/liquidsoap/src/core/operators/lufs.ml +221 -0
- package/tests/liquidsoap/src/core/operators/map_metadata.ml +113 -0
- package/tests/liquidsoap/src/core/operators/map_op.ml +62 -0
- package/tests/liquidsoap/src/core/operators/max_duration.ml +100 -0
- package/tests/liquidsoap/src/core/operators/midi_routing.ml +93 -0
- package/tests/liquidsoap/src/core/operators/ms_stereo.ml +138 -0
- package/tests/liquidsoap/src/core/operators/muxer.ml +279 -0
- package/tests/liquidsoap/src/core/operators/noblank.ml +348 -0
- package/tests/liquidsoap/src/core/operators/normalize.ml +198 -0
- package/tests/liquidsoap/src/core/operators/on_end.ml +83 -0
- package/tests/liquidsoap/src/core/operators/on_frame.ml +105 -0
- package/tests/liquidsoap/src/core/operators/on_metadata.ml +67 -0
- package/tests/liquidsoap/src/core/operators/on_offset.ml +108 -0
- package/tests/liquidsoap/src/core/operators/on_track.ml +72 -0
- package/tests/liquidsoap/src/core/operators/pan.ml +71 -0
- package/tests/liquidsoap/src/core/operators/pipe.ml +349 -0
- package/tests/liquidsoap/src/core/operators/pitch.ml +139 -0
- package/tests/liquidsoap/src/core/operators/replaygain_op.ml +93 -0
- package/tests/liquidsoap/src/core/operators/resample.ml +115 -0
- package/tests/liquidsoap/src/core/operators/rms_smooth.ml +88 -0
- package/tests/liquidsoap/src/core/operators/sequence.ml +154 -0
- package/tests/liquidsoap/src/core/operators/soundtouch_op.ml +119 -0
- package/tests/liquidsoap/src/core/operators/st_bpm.ml +79 -0
- package/tests/liquidsoap/src/core/operators/stereotool_op.ml +196 -0
- package/tests/liquidsoap/src/core/operators/still_frame.ml +93 -0
- package/tests/liquidsoap/src/core/operators/switch.ml +450 -0
- package/tests/liquidsoap/src/core/operators/time_warp.ml +554 -0
- package/tests/liquidsoap/src/core/operators/track/merge_metadata.ml +98 -0
- package/tests/liquidsoap/src/core/operators/track_map.ml +161 -0
- package/tests/liquidsoap/src/core/operators/video_effects.ml +709 -0
- package/tests/liquidsoap/src/core/operators/video_fade.ml +315 -0
- package/tests/liquidsoap/src/core/operators/window_op.ml +158 -0
- package/tests/liquidsoap/src/core/outputs/alsa_out.ml +167 -0
- package/tests/liquidsoap/src/core/outputs/ao_out.ml +167 -0
- package/tests/liquidsoap/src/core/outputs/bjack_out.ml +151 -0
- package/tests/liquidsoap/src/core/outputs/graphics_out.ml +76 -0
- package/tests/liquidsoap/src/core/outputs/harbor_output.ml +632 -0
- package/tests/liquidsoap/src/core/outputs/hls_output.ml +1097 -0
- package/tests/liquidsoap/src/core/outputs/icecast2.ml +641 -0
- package/tests/liquidsoap/src/core/outputs/output.ml +257 -0
- package/tests/liquidsoap/src/core/outputs/output.mli +92 -0
- package/tests/liquidsoap/src/core/outputs/pipe_output.ml +622 -0
- package/tests/liquidsoap/src/core/outputs/sdl_out.ml +131 -0
- package/tests/liquidsoap/src/core/playlist_parser.ml +124 -0
- package/tests/liquidsoap/src/core/playlists/playlist_basic.ml +300 -0
- package/tests/liquidsoap/src/core/playlists/playlist_xml.ml +60 -0
- package/tests/liquidsoap/src/core/plug.ml +1 -0
- package/tests/liquidsoap/src/core/pos.ml +1 -0
- package/tests/liquidsoap/src/core/protocols/annotate.ml +70 -0
- package/tests/liquidsoap/src/core/protocols/mpd.ml +149 -0
- package/tests/liquidsoap/src/core/request.ml +721 -0
- package/tests/liquidsoap/src/core/request.mli +200 -0
- package/tests/liquidsoap/src/core/runtime_error.ml +1 -0
- package/tests/liquidsoap/src/core/shebang.ml +66 -0
- package/tests/liquidsoap/src/core/source.ml +892 -0
- package/tests/liquidsoap/src/core/source.mli +346 -0
- package/tests/liquidsoap/src/core/sources/alsa_in.ml +148 -0
- package/tests/liquidsoap/src/core/sources/audio_gen.ml +106 -0
- package/tests/liquidsoap/src/core/sources/bjack_in.ml +153 -0
- package/tests/liquidsoap/src/core/sources/blank.ml +94 -0
- package/tests/liquidsoap/src/core/sources/debug_sources.ml +60 -0
- package/tests/liquidsoap/src/core/sources/external_input_audio.ml +152 -0
- package/tests/liquidsoap/src/core/sources/external_input_video.ml +246 -0
- package/tests/liquidsoap/src/core/sources/generated.ml +137 -0
- package/tests/liquidsoap/src/core/sources/harbor_input.ml +489 -0
- package/tests/liquidsoap/src/core/sources/latest_metadata.ml +38 -0
- package/tests/liquidsoap/src/core/sources/noise.ml +79 -0
- package/tests/liquidsoap/src/core/sources/request_simple.ml +278 -0
- package/tests/liquidsoap/src/core/sources/request_source.ml +542 -0
- package/tests/liquidsoap/src/core/sources/request_source.mli +112 -0
- package/tests/liquidsoap/src/core/sources/synthesized.ml +62 -0
- package/tests/liquidsoap/src/core/sources/video_board.ml +196 -0
- package/tests/liquidsoap/src/core/sources/video_testsrc.ml +88 -0
- package/tests/liquidsoap/src/core/sources/video_text.ml +127 -0
- package/tests/liquidsoap/src/core/startup.ml +7 -0
- package/tests/liquidsoap/src/core/stream/aFrame.ml +66 -0
- package/tests/liquidsoap/src/core/stream/aFrame.mli +77 -0
- package/tests/liquidsoap/src/core/stream/content.ml +51 -0
- package/tests/liquidsoap/src/core/stream/content.mli +212 -0
- package/tests/liquidsoap/src/core/stream/content_audio.ml +107 -0
- package/tests/liquidsoap/src/core/stream/content_base.ml +449 -0
- package/tests/liquidsoap/src/core/stream/content_midi.ml +67 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_base.ml +78 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_f32.ml +52 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_f32.mli +35 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_s16.ml +52 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_s16.mli +36 -0
- package/tests/liquidsoap/src/core/stream/content_timed.ml +149 -0
- package/tests/liquidsoap/src/core/stream/content_video.ml +119 -0
- package/tests/liquidsoap/src/core/stream/ffmpeg_content_base.ml +81 -0
- package/tests/liquidsoap/src/core/stream/ffmpeg_copy_content.ml +157 -0
- package/tests/liquidsoap/src/core/stream/ffmpeg_raw_content.ml +261 -0
- package/tests/liquidsoap/src/core/stream/frame.ml +197 -0
- package/tests/liquidsoap/src/core/stream/frame.mli +243 -0
- package/tests/liquidsoap/src/core/stream/frame_base.ml +145 -0
- package/tests/liquidsoap/src/core/stream/frame_settings.ml +249 -0
- package/tests/liquidsoap/src/core/stream/generator.ml +303 -0
- package/tests/liquidsoap/src/core/stream/generator.mli +106 -0
- package/tests/liquidsoap/src/core/stream/mFrame.ml +45 -0
- package/tests/liquidsoap/src/core/stream/mFrame.mli +29 -0
- package/tests/liquidsoap/src/core/stream/vFrame.ml +52 -0
- package/tests/liquidsoap/src/core/stream/vFrame.mli +65 -0
- package/tests/liquidsoap/src/core/synth/dssi_op.ml +249 -0
- package/tests/liquidsoap/src/core/synth/keyboard.ml +142 -0
- package/tests/liquidsoap/src/core/synth/keyboard_sdl.ml +174 -0
- package/tests/liquidsoap/src/core/synth/synth_op.ml +186 -0
- package/tests/liquidsoap/src/core/term.ml +1 -0
- package/tests/liquidsoap/src/core/tools/avi.ml +380 -0
- package/tests/liquidsoap/src/core/tools/charset.ml +52 -0
- package/tests/liquidsoap/src/core/tools/charset.mli +49 -0
- package/tests/liquidsoap/src/core/tools/charset_base.ml +63 -0
- package/tests/liquidsoap/src/core/tools/child_support.ml +105 -0
- package/tests/liquidsoap/src/core/tools/external_input.ml +78 -0
- package/tests/liquidsoap/src/core/tools/extra_args.ml +27 -0
- package/tests/liquidsoap/src/core/tools/extra_args.mli +26 -0
- package/tests/liquidsoap/src/core/tools/extralib.ml +1 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.ml +151 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.mli +44 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_utils.ml +354 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_utils.mli +79 -0
- package/tests/liquidsoap/src/core/tools/gstreamer_utils.ml +200 -0
- package/tests/liquidsoap/src/core/tools/http.ml +173 -0
- package/tests/liquidsoap/src/core/tools/http.mli +62 -0
- package/tests/liquidsoap/src/core/tools/https.mli +1 -0
- package/tests/liquidsoap/src/core/tools/icecast_utils.ml +202 -0
- package/tests/liquidsoap/src/core/tools/ioRing.ml +233 -0
- package/tests/liquidsoap/src/core/tools/lifecycle.ml +100 -0
- package/tests/liquidsoap/src/core/tools/lifecycle.mli +88 -0
- package/tests/liquidsoap/src/core/tools/liq_posix_time.ml +58 -0
- package/tests/liquidsoap/src/core/tools/liq_prometheus.ml +56 -0
- package/tests/liquidsoap/src/core/tools/liq_time.ml +40 -0
- package/tests/liquidsoap/src/core/tools/liq_time.mli +19 -0
- package/tests/liquidsoap/src/core/tools/liqcurl.ml +221 -0
- package/tests/liquidsoap/src/core/tools/liqfm.ml +241 -0
- package/tests/liquidsoap/src/core/tools/liqfm.mli +40 -0
- package/tests/liquidsoap/src/core/tools/liqmemtrace.ml +25 -0
- package/tests/liquidsoap/src/core/tools/log.ml +147 -0
- package/tests/liquidsoap/src/core/tools/log.mli +12 -0
- package/tests/liquidsoap/src/core/tools/pool.ml +87 -0
- package/tests/liquidsoap/src/core/tools/process_handler.ml +345 -0
- package/tests/liquidsoap/src/core/tools/process_handler.mli +113 -0
- package/tests/liquidsoap/src/core/tools/producer_consumer.ml +139 -0
- package/tests/liquidsoap/src/core/tools/rqueue.ml +151 -0
- package/tests/liquidsoap/src/core/tools/rqueue.mli +59 -0
- package/tests/liquidsoap/src/core/tools/sandbox.ml +177 -0
- package/tests/liquidsoap/src/core/tools/sandbox.mli +28 -0
- package/tests/liquidsoap/src/core/tools/sdl_log_level.ml +29 -0
- package/tests/liquidsoap/src/core/tools/sdl_utils.ml +222 -0
- package/tests/liquidsoap/src/core/tools/server.ml +468 -0
- package/tests/liquidsoap/src/core/tools/server.mli +99 -0
- package/tests/liquidsoap/src/core/tools/server_builtins.ml +63 -0
- package/tests/liquidsoap/src/core/tools/sha1.ml +139 -0
- package/tests/liquidsoap/src/core/tools/srt_parser.ml +100 -0
- package/tests/liquidsoap/src/core/tools/ssl_base.ml +25 -0
- package/tests/liquidsoap/src/core/tools/start_stop.ml +182 -0
- package/tests/liquidsoap/src/core/tools/stringView.ml +36 -0
- package/tests/liquidsoap/src/core/tools/stringView.mli +50 -0
- package/tests/liquidsoap/src/core/tools/strings.ml +243 -0
- package/tests/liquidsoap/src/core/tools/strings.mli +209 -0
- package/tests/liquidsoap/src/core/tools/tutils.ml +393 -0
- package/tests/liquidsoap/src/core/tools/tutils.mli +93 -0
- package/tests/liquidsoap/src/core/tools/unix_c.c +86 -0
- package/tests/liquidsoap/src/core/tools/utils.ml +622 -0
- package/tests/liquidsoap/src/core/tools/wav_aiff.ml +261 -0
- package/tests/liquidsoap/src/core/tools/wav_aiff.mli +84 -0
- package/tests/liquidsoap/src/core/tools/websocket.ml +290 -0
- package/tests/liquidsoap/src/core/track.ml +38 -0
- package/tests/liquidsoap/src/core/track.mli +27 -0
- package/tests/liquidsoap/src/core/type.ml +1 -0
- package/tests/liquidsoap/src/core/types/format_type.ml +343 -0
- package/tests/liquidsoap/src/core/types/format_type.mli +45 -0
- package/tests/liquidsoap/src/core/types/frame_type.ml +134 -0
- package/tests/liquidsoap/src/core/types/frame_type.mli +52 -0
- package/tests/liquidsoap/src/core/typing.ml +1 -0
- package/tests/liquidsoap/src/core/unifier.ml +1 -0
- package/tests/liquidsoap/src/core/value.ml +1 -0
- package/tests/liquidsoap/src/core/visualization/midimeter.ml +68 -0
- package/tests/liquidsoap/src/core/visualization/video_volume.ml +153 -0
- package/tests/liquidsoap/src/core/visualization/vis_volume.ml +131 -0
- package/tests/liquidsoap/src/js/dune +45 -0
- package/tests/liquidsoap/src/js/index.html +162 -0
- package/tests/liquidsoap/src/js/init_js.ml +6 -0
- package/tests/liquidsoap/src/js/interactive_js.ml +88 -0
- package/tests/liquidsoap/src/js/regexp_js.ml +57 -0
- package/tests/liquidsoap/src/js/regexp_js.mli +4 -0
- package/tests/liquidsoap/src/js/stdlib_js.liq +9 -0
- package/tests/liquidsoap/src/lang/build_config.mli +11 -0
- package/tests/liquidsoap/src/lang/builtins_bool.ml +74 -0
- package/tests/liquidsoap/src/lang/builtins_eval.ml +37 -0
- package/tests/liquidsoap/src/lang/builtins_getter.ml +109 -0
- package/tests/liquidsoap/src/lang/builtins_json.ml +442 -0
- package/tests/liquidsoap/src/lang/builtins_lang.ml +241 -0
- package/tests/liquidsoap/src/lang/builtins_list.ml +268 -0
- package/tests/liquidsoap/src/lang/builtins_math.ml +300 -0
- package/tests/liquidsoap/src/lang/builtins_null.ml +72 -0
- package/tests/liquidsoap/src/lang/builtins_profiler.ml +56 -0
- package/tests/liquidsoap/src/lang/builtins_ref.ml +33 -0
- package/tests/liquidsoap/src/lang/builtins_regexp.ml +247 -0
- package/tests/liquidsoap/src/lang/builtins_string.ml +563 -0
- package/tests/liquidsoap/src/lang/builtins_yaml.ml +51 -0
- package/tests/liquidsoap/src/lang/doc.ml +696 -0
- package/tests/liquidsoap/src/lang/dune +144 -0
- package/tests/liquidsoap/src/lang/environment.ml +125 -0
- package/tests/liquidsoap/src/lang/environment.mli +49 -0
- package/tests/liquidsoap/src/lang/error.ml +45 -0
- package/tests/liquidsoap/src/lang/error.mli +27 -0
- package/tests/liquidsoap/src/lang/evaluation.ml +537 -0
- package/tests/liquidsoap/src/lang/evaluation.mli +30 -0
- package/tests/liquidsoap/src/lang/extralib.ml +90 -0
- package/tests/liquidsoap/src/lang/hooks.ml +58 -0
- package/tests/liquidsoap/src/lang/hooks.mli +38 -0
- package/tests/liquidsoap/src/lang/json.ml +142 -0
- package/tests/liquidsoap/src/lang/json.mli +18 -0
- package/tests/liquidsoap/src/lang/json_base.ml +12 -0
- package/tests/liquidsoap/src/lang/json_lexer.ml +322 -0
- package/tests/liquidsoap/src/lang/json_parser.mly +101 -0
- package/tests/liquidsoap/src/lang/lang.ml +3 -0
- package/tests/liquidsoap/src/lang/lang.mli +255 -0
- package/tests/liquidsoap/src/lang/lang_core.ml +493 -0
- package/tests/liquidsoap/src/lang/lang_error.ml +165 -0
- package/tests/liquidsoap/src/lang/lang_regexp.ml +24 -0
- package/tests/liquidsoap/src/lang/lang_string.ml +563 -0
- package/tests/liquidsoap/src/lang/lang_string.mli +80 -0
- package/tests/liquidsoap/src/lang/lexer.ml +520 -0
- package/tests/liquidsoap/src/lang/methods.ml +43 -0
- package/tests/liquidsoap/src/lang/methods.mli +43 -0
- package/tests/liquidsoap/src/lang/modules.ml +33 -0
- package/tests/liquidsoap/src/lang/parser.mly +690 -0
- package/tests/liquidsoap/src/lang/parser_helper.ml +202 -0
- package/tests/liquidsoap/src/lang/parser_helper.mli +77 -0
- package/tests/liquidsoap/src/lang/plug.ml +99 -0
- package/tests/liquidsoap/src/lang/pos.ml +73 -0
- package/tests/liquidsoap/src/lang/preprocessor.ml +197 -0
- package/tests/liquidsoap/src/lang/profiler.ml +92 -0
- package/tests/liquidsoap/src/lang/regexp.ml +39 -0
- package/tests/liquidsoap/src/lang/regexp.mli +26 -0
- package/tests/liquidsoap/src/lang/repr.ml +537 -0
- package/tests/liquidsoap/src/lang/runtime.ml +360 -0
- package/tests/liquidsoap/src/lang/runtime.mli +70 -0
- package/tests/liquidsoap/src/lang/runtime_error.ml +49 -0
- package/tests/liquidsoap/src/lang/runtime_error.mli +37 -0
- package/tests/liquidsoap/src/lang/startup.ml +34 -0
- package/tests/liquidsoap/src/lang/term/parsed_term.ml +329 -0
- package/tests/liquidsoap/src/lang/term/runtime_term.ml +75 -0
- package/tests/liquidsoap/src/lang/term/term_base.ml +554 -0
- package/tests/liquidsoap/src/lang/term/term_reducer.ml +891 -0
- package/tests/liquidsoap/src/lang/term/term_reducer.mli +33 -0
- package/tests/liquidsoap/src/lang/term.ml +48 -0
- package/tests/liquidsoap/src/lang/term.mli +109 -0
- package/tests/liquidsoap/src/lang/type.ml +65 -0
- package/tests/liquidsoap/src/lang/type.mli +146 -0
- package/tests/liquidsoap/src/lang/typechecking.ml +439 -0
- package/tests/liquidsoap/src/lang/typechecking.mli +14 -0
- package/tests/liquidsoap/src/lang/types/ground_type.ml +106 -0
- package/tests/liquidsoap/src/lang/types/ground_type.mli +54 -0
- package/tests/liquidsoap/src/lang/types/ref_type.ml +28 -0
- package/tests/liquidsoap/src/lang/types/type_base.ml +382 -0
- package/tests/liquidsoap/src/lang/typing.ml +649 -0
- package/tests/liquidsoap/src/lang/typing.mli +60 -0
- package/tests/liquidsoap/src/lang/unifier.ml +44 -0
- package/tests/liquidsoap/src/lang/unifier.mli +28 -0
- package/tests/liquidsoap/src/lang/utils.ml +51 -0
- package/tests/liquidsoap/src/lang/value.ml +227 -0
- package/tests/liquidsoap/src/libs/audio.liq +342 -0
- package/tests/liquidsoap/src/libs/clock.liq +63 -0
- package/tests/liquidsoap/src/libs/dune +15 -0
- package/tests/liquidsoap/src/libs/error.liq +34 -0
- package/tests/liquidsoap/src/libs/extra/audio.liq +617 -0
- package/tests/liquidsoap/src/libs/extra/deprecations.liq +892 -0
- package/tests/liquidsoap/src/libs/extra/externals.liq +802 -0
- package/tests/liquidsoap/src/libs/extra/file.liq +66 -0
- package/tests/liquidsoap/src/libs/extra/gstreamer.liq +209 -0
- package/tests/liquidsoap/src/libs/extra/http.liq +159 -0
- package/tests/liquidsoap/src/libs/extra/interactive.liq +854 -0
- package/tests/liquidsoap/src/libs/extra/lastfm.liq +185 -0
- package/tests/liquidsoap/src/libs/extra/native.liq +195 -0
- package/tests/liquidsoap/src/libs/extra/server.liq +175 -0
- package/tests/liquidsoap/src/libs/extra/source.liq +260 -0
- package/tests/liquidsoap/src/libs/extra/telnet.liq +281 -0
- package/tests/liquidsoap/src/libs/extra/visualization.liq +68 -0
- package/tests/liquidsoap/src/libs/fades.liq +651 -0
- package/tests/liquidsoap/src/libs/ffmpeg.liq +590 -0
- package/tests/liquidsoap/src/libs/file.liq +269 -0
- package/tests/liquidsoap/src/libs/getter.liq +74 -0
- package/tests/liquidsoap/src/libs/hls.liq +327 -0
- package/tests/liquidsoap/src/libs/http.liq +990 -0
- package/tests/liquidsoap/src/libs/http_codes.liq +449 -0
- package/tests/liquidsoap/src/libs/icecast.liq +55 -0
- package/tests/liquidsoap/src/libs/io.liq +169 -0
- package/tests/liquidsoap/src/libs/liquidsoap.liq +31 -0
- package/tests/liquidsoap/src/libs/log.liq +47 -0
- package/tests/liquidsoap/src/libs/math.liq +23 -0
- package/tests/liquidsoap/src/libs/medialib.liq +382 -0
- package/tests/liquidsoap/src/libs/metadata.liq +259 -0
- package/tests/liquidsoap/src/libs/null.liq +73 -0
- package/tests/liquidsoap/src/libs/playlist.liq +634 -0
- package/tests/liquidsoap/src/libs/predicate.liq +106 -0
- package/tests/liquidsoap/src/libs/process.liq +93 -0
- package/tests/liquidsoap/src/libs/profiler.liq +5 -0
- package/tests/liquidsoap/src/libs/protocols.liq +1043 -0
- package/tests/liquidsoap/src/libs/ref.liq +28 -0
- package/tests/liquidsoap/src/libs/replaygain.liq +118 -0
- package/tests/liquidsoap/src/libs/request.liq +236 -0
- package/tests/liquidsoap/src/libs/resolvers.liq +30 -0
- package/tests/liquidsoap/src/libs/runtime.liq +78 -0
- package/tests/liquidsoap/src/libs/server.liq +7 -0
- package/tests/liquidsoap/src/libs/settings.liq +27 -0
- package/tests/liquidsoap/src/libs/socket.liq +28 -0
- package/tests/liquidsoap/src/libs/source.liq +257 -0
- package/tests/liquidsoap/src/libs/stdlib.liq +105 -0
- package/tests/liquidsoap/src/libs/string.liq +409 -0
- package/tests/liquidsoap/src/libs/switches.liq +240 -0
- package/tests/liquidsoap/src/libs/testing.liq +37 -0
- package/tests/liquidsoap/src/libs/thread.liq +64 -0
- package/tests/liquidsoap/src/libs/tracks.liq +63 -0
- package/tests/liquidsoap/src/libs/utils.liq +67 -0
- package/tests/liquidsoap/src/libs/video.liq +763 -0
- package/tests/liquidsoap/src/runtime/build_config.ml +143 -0
- package/tests/liquidsoap/src/runtime/dune +14 -0
- package/tests/liquidsoap/src/runtime/main.ml +730 -0
- package/tests/liquidsoap/src/runtime/runner.default.ml +25 -0
- package/tests/liquidsoap/src/runtime/runner.mli +1 -0
- package/tests/liquidsoap/src/runtime/runner.winsvc.ml +83 -0
- package/tests/liquidsoap/src/stereotool/dune +5 -0
- package/tests/liquidsoap/src/stereotool/stereotool.ml +151 -0
- package/tests/liquidsoap/src/stereotool/stereotool.mli +30 -0
- package/tests/liquidsoap/src/tooling/dune +13 -0
- package/tests/liquidsoap/src/tooling/parsed_json.ml +595 -0
- package/tests/liquidsoap/src/tooling/parsed_json.mli +26 -0
- package/tests/liquidsoap/tests/check_output.ml +41 -0
- package/tests/liquidsoap/tests/core/content_test.ml +80 -0
- package/tests/liquidsoap/tests/core/decoder_test.ml +55 -0
- package/tests/liquidsoap/tests/core/dune +57 -0
- package/tests/liquidsoap/tests/core/dune.inc +363 -0
- package/tests/liquidsoap/tests/core/ffmpeg_quality.ml +81 -0
- package/tests/liquidsoap/tests/core/frame_test.ml +41 -0
- package/tests/liquidsoap/tests/core/gen_dune.ml +52 -0
- package/tests/liquidsoap/tests/core/generator_test.ml +106 -0
- package/tests/liquidsoap/tests/core/is_url.ml +4 -0
- package/tests/liquidsoap/tests/core/json_test.ml +129 -0
- package/tests/liquidsoap/tests/core/meth.ml +48 -0
- package/tests/liquidsoap/tests/core/more_types.ml +63 -0
- package/tests/liquidsoap/tests/core/output_encoded_test.ml +42 -0
- package/tests/liquidsoap/tests/core/output_test.ml +42 -0
- package/tests/liquidsoap/tests/core/parsesrt.ml +12 -0
- package/tests/liquidsoap/tests/core/playlist_basic_test.ml +74 -0
- package/tests/liquidsoap/tests/core/pool_test.ml +46 -0
- package/tests/liquidsoap/tests/core/readavi.ml +8 -0
- package/tests/liquidsoap/tests/core/source_test.ml +16 -0
- package/tests/liquidsoap/tests/core/start_stop_test.ml +30 -0
- package/tests/liquidsoap/tests/core/stream_decoder_test.ml +52 -0
- package/tests/liquidsoap/tests/core/string_test.ml +1 -0
- package/tests/liquidsoap/tests/core/strings_test.ml +15 -0
- package/tests/liquidsoap/tests/core/taglib_test.ml +35 -0
- package/tests/liquidsoap/tests/core/test.srt +20 -0
- package/tests/liquidsoap/tests/core/timezone.ml +7 -0
- package/tests/liquidsoap/tests/core/types.ml +397 -0
- package/tests/liquidsoap/tests/core/unifier_test.ml +29 -0
- package/tests/liquidsoap/tests/core/utils_test.ml +6 -0
- package/tests/liquidsoap/tests/core/version_test.ml +27 -0
- package/tests/liquidsoap/tests/dune +14 -0
- package/tests/liquidsoap/tests/failures/ctype.liq +9 -0
- package/tests/liquidsoap/tests/failures/error.liq +7 -0
- package/tests/liquidsoap/tests/failures/record-invalid-member1.liq +10 -0
- package/tests/liquidsoap/tests/failures/record-invalid-member2.liq +3 -0
- package/tests/liquidsoap/tests/failures/ref.liq +12 -0
- package/tests/liquidsoap/tests/fixme/GH1170.liq +37 -0
- package/tests/liquidsoap/tests/fixme/LS527.liq +26 -0
- package/tests/liquidsoap/tests/fixme/cross2.liq +20 -0
- package/tests/liquidsoap/tests/fixme/cross3.liq +26 -0
- package/tests/liquidsoap/tests/fixme/sequence-1.liq +41 -0
- package/tests/liquidsoap/tests/fixme/sequence-2.liq +36 -0
- package/tests/liquidsoap/tests/gen_dune.ml +46 -0
- package/tests/liquidsoap/tests/harbor/dune +18 -0
- package/tests/liquidsoap/tests/harbor/dune.inc +60 -0
- package/tests/liquidsoap/tests/harbor/http.liq +314 -0
- package/tests/liquidsoap/tests/harbor/http2.liq +105 -0
- package/tests/liquidsoap/tests/harbor/http3.liq +56 -0
- package/tests/liquidsoap/tests/harbor/post.liq +207 -0
- package/tests/liquidsoap/tests/harbor/put.liq +209 -0
- package/tests/liquidsoap/tests/language/argsof.liq +48 -0
- package/tests/liquidsoap/tests/language/bool.liq +39 -0
- package/tests/liquidsoap/tests/language/comments.liq +76 -0
- package/tests/liquidsoap/tests/language/conversions.liq +14 -0
- package/tests/liquidsoap/tests/language/doc.liq +14 -0
- package/tests/liquidsoap/tests/language/dune +74 -0
- package/tests/liquidsoap/tests/language/dune.inc +504 -0
- package/tests/liquidsoap/tests/language/encoders.liq +93 -0
- package/tests/liquidsoap/tests/language/error.liq +164 -0
- package/tests/liquidsoap/tests/language/eval.liq +73 -0
- package/tests/liquidsoap/tests/language/file.liq +36 -0
- package/tests/liquidsoap/tests/language/file.watch.liq +19 -0
- package/tests/liquidsoap/tests/language/file.watch2.liq +23 -0
- package/tests/liquidsoap/tests/language/file_protocol.liq +32 -0
- package/tests/liquidsoap/tests/language/functions.liq +52 -0
- package/tests/liquidsoap/tests/language/gen_dune.ml +49 -0
- package/tests/liquidsoap/tests/language/getter.liq +77 -0
- package/tests/liquidsoap/tests/language/interactive.liq +50 -0
- package/tests/liquidsoap/tests/language/json.liq +311 -0
- package/tests/liquidsoap/tests/language/list.liq +124 -0
- package/tests/liquidsoap/tests/language/loop.liq +30 -0
- package/tests/liquidsoap/tests/language/math.liq +12 -0
- package/tests/liquidsoap/tests/language/mem_usage.liq +68 -0
- package/tests/liquidsoap/tests/language/metadata.liq +136 -0
- package/tests/liquidsoap/tests/language/metrics.liq +22 -0
- package/tests/liquidsoap/tests/language/null.liq +42 -0
- package/tests/liquidsoap/tests/language/number.liq +54 -0
- package/tests/liquidsoap/tests/language/osc.liq +69 -0
- package/tests/liquidsoap/tests/language/pattern.liq +103 -0
- package/tests/liquidsoap/tests/language/pp.liq +57 -0
- package/tests/liquidsoap/tests/language/predicate.liq +54 -0
- package/tests/liquidsoap/tests/language/process.liq +51 -0
- package/tests/liquidsoap/tests/language/rec.liq +26 -0
- package/tests/liquidsoap/tests/language/record.liq +277 -0
- package/tests/liquidsoap/tests/language/ref.liq +37 -0
- package/tests/liquidsoap/tests/language/regexp.liq +41 -0
- package/tests/liquidsoap/tests/language/socket.liq +45 -0
- package/tests/liquidsoap/tests/language/stdlib.liq +24 -0
- package/tests/liquidsoap/tests/language/string.liq +170 -0
- package/tests/liquidsoap/tests/language/test_cover.liq +8 -0
- package/tests/liquidsoap/tests/language/thread.liq +70 -0
- package/tests/liquidsoap/tests/language/time.liq +25 -0
- package/tests/liquidsoap/tests/language/type_errors.liq +399 -0
- package/tests/liquidsoap/tests/language/typing.liq +233 -0
- package/tests/liquidsoap/tests/language/url.liq +15 -0
- package/tests/liquidsoap/tests/language/write_cover.liq +9 -0
- package/tests/liquidsoap/tests/language/yaml.liq +36 -0
- package/tests/liquidsoap/tests/media/dune +253 -0
- package/tests/liquidsoap/tests/media/dune.inc +1805 -0
- package/tests/liquidsoap/tests/media/encoder_audio_only.liq.in +14 -0
- package/tests/liquidsoap/tests/media/encoder_audio_video.liq.in +16 -0
- package/tests/liquidsoap/tests/media/encoder_multitrack.liq.in +19 -0
- package/tests/liquidsoap/tests/media/encoder_video_only.liq.in +14 -0
- package/tests/liquidsoap/tests/media/ffmpeg_add_text.liq +88 -0
- package/tests/liquidsoap/tests/media/ffmpeg_audio_decoder.liq +45 -0
- package/tests/liquidsoap/tests/media/ffmpeg_complex_filter.liq +59 -0
- package/tests/liquidsoap/tests/media/ffmpeg_copy_and_encode_decoder.liq +76 -0
- package/tests/liquidsoap/tests/media/ffmpeg_copy_concat.liq +39 -0
- package/tests/liquidsoap/tests/media/ffmpeg_copy_decoder.liq +90 -0
- package/tests/liquidsoap/tests/media/ffmpeg_distributed_hls.liq +125 -0
- package/tests/liquidsoap/tests/media/ffmpeg_distributed_hls_state.json +112 -0
- package/tests/liquidsoap/tests/media/ffmpeg_drop_tracks.liq +119 -0
- package/tests/liquidsoap/tests/media/ffmpeg_filter.liq +105 -0
- package/tests/liquidsoap/tests/media/ffmpeg_filter_changing_rate.liq +117 -0
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode.liq +103 -0
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_audio.liq +77 -0
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_video.liq +66 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_and_copy_decoder.liq +92 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_and_encode_decoder.liq +78 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_decoder.liq +80 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_hls.liq +115 -0
- package/tests/liquidsoap/tests/media/ffmpeg_transparency_filter.liq +91 -0
- package/tests/liquidsoap/tests/media/ffmpeg_video_decoder.liq +52 -0
- package/tests/liquidsoap/tests/media/gen_dune.ml +192 -0
- package/tests/liquidsoap/tests/media/mk_encoder_test.sh +8 -0
- package/tests/liquidsoap/tests/media/mk_stream_test.sh +11 -0
- package/tests/liquidsoap/tests/media/mono.liq +45 -0
- package/tests/liquidsoap/tests/media/multitrack.liq +113 -0
- package/tests/liquidsoap/tests/media/pcm_f32_decode.liq +4 -0
- package/tests/liquidsoap/tests/media/pcm_s16_decode.liq +4 -0
- package/tests/liquidsoap/tests/media/stereo.liq +45 -0
- package/tests/liquidsoap/tests/media/stream_audio.liq.in +49 -0
- package/tests/liquidsoap/tests/media/stream_video.liq.in +49 -0
- package/tests/liquidsoap/tests/media/taglib.liq +11 -0
- package/tests/liquidsoap/tests/media/video_size.liq +54 -0
- package/tests/liquidsoap/tests/performance/dune +31 -0
- package/tests/liquidsoap/tests/performance/erathostenes.liq +27 -0
- package/tests/liquidsoap/tests/performance/gen_bigrecord.ml +69 -0
- package/tests/liquidsoap/tests/performance/memory.liq +6 -0
- package/tests/liquidsoap/tests/performance/performance.liq +12 -0
- package/tests/liquidsoap/tests/performance/small-record.liq +43 -0
- package/tests/liquidsoap/tests/regression/115-1.liq +11 -0
- package/tests/liquidsoap/tests/regression/115-2.liq +6 -0
- package/tests/liquidsoap/tests/regression/AC5109.liq +26 -0
- package/tests/liquidsoap/tests/regression/BUG403.liq +29 -0
- package/tests/liquidsoap/tests/regression/GH-action-919422659.liq +17 -0
- package/tests/liquidsoap/tests/regression/GH1129.liq +57 -0
- package/tests/liquidsoap/tests/regression/GH1146.liq +15 -0
- package/tests/liquidsoap/tests/regression/GH1151.liq +16 -0
- package/tests/liquidsoap/tests/regression/GH1159.liq +13 -0
- package/tests/liquidsoap/tests/regression/GH1279.liq +44 -0
- package/tests/liquidsoap/tests/regression/GH1327.liq +61 -0
- package/tests/liquidsoap/tests/regression/GH2573.output +7 -0
- package/tests/liquidsoap/tests/regression/GH2585.liq +29 -0
- package/tests/liquidsoap/tests/regression/GH2602.liq +18 -0
- package/tests/liquidsoap/tests/regression/GH2756-2.liq +81 -0
- package/tests/liquidsoap/tests/regression/GH2756.liq +90 -0
- package/tests/liquidsoap/tests/regression/GH2758.liq +11 -0
- package/tests/liquidsoap/tests/regression/GH2842.liq +26 -0
- package/tests/liquidsoap/tests/regression/GH2850.liq +74 -0
- package/tests/liquidsoap/tests/regression/GH2867.liq +6 -0
- package/tests/liquidsoap/tests/regression/GH2871.liq +21 -0
- package/tests/liquidsoap/tests/regression/GH2872.liq +21 -0
- package/tests/liquidsoap/tests/regression/GH2897.liq +24 -0
- package/tests/liquidsoap/tests/regression/GH2902.liq +39 -0
- package/tests/liquidsoap/tests/regression/GH2926.liq +17 -0
- package/tests/liquidsoap/tests/regression/GH3093.liq +10 -0
- package/tests/liquidsoap/tests/regression/GH3121.liq +16 -0
- package/tests/liquidsoap/tests/regression/GH3132.liq +11 -0
- package/tests/liquidsoap/tests/regression/GH3224.liq +6 -0
- package/tests/liquidsoap/tests/regression/GH3239-2.liq +17 -0
- package/tests/liquidsoap/tests/regression/GH3239.liq +16 -0
- package/tests/liquidsoap/tests/regression/GH3276.liq +23 -0
- package/tests/liquidsoap/tests/regression/GH3316.liq +37 -0
- package/tests/liquidsoap/tests/regression/LS268.liq +9 -0
- package/tests/liquidsoap/tests/regression/LS354-1.liq +7 -0
- package/tests/liquidsoap/tests/regression/LS354-2.liq +15 -0
- package/tests/liquidsoap/tests/regression/LS460.liq +16 -0
- package/tests/liquidsoap/tests/regression/LS503.liq +20 -0
- package/tests/liquidsoap/tests/regression/default_format.liq +3 -0
- package/tests/liquidsoap/tests/regression/dune +39 -0
- package/tests/liquidsoap/tests/regression/dune.inc +685 -0
- package/tests/liquidsoap/tests/regression/external-encoder.liq +6 -0
- package/tests/liquidsoap/tests/regression/ffmpeg-copy-encode.liq +31 -0
- package/tests/liquidsoap/tests/regression/ffmpeg-copy-input-http.liq +8 -0
- package/tests/liquidsoap/tests/regression/ffmpeg-naming-convention.liq +66 -0
- package/tests/liquidsoap/tests/regression/gen_dune.ml +47 -0
- package/tests/liquidsoap/tests/regression/infallible-shutdown.liq +5 -0
- package/tests/liquidsoap/tests/regression/init-error.liq +9 -0
- package/tests/liquidsoap/tests/regression/initial_request_queue.liq +8 -0
- package/tests/liquidsoap/tests/regression/input_rtmp.liq +3 -0
- package/tests/liquidsoap/tests/regression/metadata_cache.liq +39 -0
- package/tests/liquidsoap/tests/regression/playlist-id.liq +21 -0
- package/tests/liquidsoap/tests/regression/replaygain.liq +5 -0
- package/tests/liquidsoap/tests/regression/shoutcast-args.liq +9 -0
- package/tests/liquidsoap/tests/regression/unified-pcm-types.liq +10 -0
- package/tests/liquidsoap/tests/regression/video-only.liq +7 -0
- package/tests/liquidsoap/tests/run_test.ml +97 -0
- package/tests/liquidsoap/tests/streams/195.liq +4 -0
- package/tests/liquidsoap/tests/streams/197.liq +23 -0
- package/tests/liquidsoap/tests/streams/autostart.liq +27 -0
- package/tests/liquidsoap/tests/streams/cross-override.liq +43 -0
- package/tests/liquidsoap/tests/streams/cross-persist-override.liq +43 -0
- package/tests/liquidsoap/tests/streams/cross.liq +44 -0
- package/tests/liquidsoap/tests/streams/crossfade.liq +41 -0
- package/tests/liquidsoap/tests/streams/ctype1.liq +13 -0
- package/tests/liquidsoap/tests/streams/ctype2.liq +21 -0
- package/tests/liquidsoap/tests/streams/dtmf.liq +23 -0
- package/tests/liquidsoap/tests/streams/dtmf_pcm_s16.liq +26 -0
- package/tests/liquidsoap/tests/streams/dune +298 -0
- package/tests/liquidsoap/tests/streams/dune.inc +1078 -0
- package/tests/liquidsoap/tests/streams/fades-overrides.liq +58 -0
- package/tests/liquidsoap/tests/streams/fades-persistent-override.liq +58 -0
- package/tests/liquidsoap/tests/streams/ffmpeg-errors.liq +16 -0
- package/tests/liquidsoap/tests/streams/ffmpeg-trim.liq +17 -0
- package/tests/liquidsoap/tests/streams/file_output.liq +14 -0
- package/tests/liquidsoap/tests/streams/gen_dune.ml +45 -0
- package/tests/liquidsoap/tests/streams/harbor_kick_client.liq +58 -0
- package/tests/liquidsoap/tests/streams/harbor_metadata.liq +53 -0
- package/tests/liquidsoap/tests/streams/hls_custom_tags.liq +89 -0
- package/tests/liquidsoap/tests/streams/hls_id3v2.liq +134 -0
- package/tests/liquidsoap/tests/streams/hls_main_playlist.liq +54 -0
- package/tests/liquidsoap/tests/streams/huge-playlist.liq +25 -0
- package/tests/liquidsoap/tests/streams/icecast_ssl.liq +25 -0
- package/tests/liquidsoap/tests/streams/icecast_ssl_tls.liq +32 -0
- package/tests/liquidsoap/tests/streams/icecast_tls.liq +30 -0
- package/tests/liquidsoap/tests/streams/icecast_tls_ssl.liq +32 -0
- package/tests/liquidsoap/tests/streams/image.liq +4 -0
- package/tests/liquidsoap/tests/streams/many-playlists.liq +28 -0
- package/tests/liquidsoap/tests/streams/merge_metadata.liq +69 -0
- package/tests/liquidsoap/tests/streams/never.liq +6 -0
- package/tests/liquidsoap/tests/streams/on_frame.liq +14 -0
- package/tests/liquidsoap/tests/streams/on_metadata.liq +22 -0
- package/tests/liquidsoap/tests/streams/on_track.liq +12 -0
- package/tests/liquidsoap/tests/streams/playlist-watch.liq +43 -0
- package/tests/liquidsoap/tests/streams/radio.liq +11 -0
- package/tests/liquidsoap/tests/streams/radio2.liq +20 -0
- package/tests/liquidsoap/tests/streams/random.liq +70 -0
- package/tests/liquidsoap/tests/streams/replaygain.liq +11 -0
- package/tests/liquidsoap/tests/streams/request.liq +75 -0
- package/tests/liquidsoap/tests/streams/rotate.liq +44 -0
- package/tests/liquidsoap/tests/streams/say.liq +24 -0
- package/tests/liquidsoap/tests/streams/seek_track_map.liq +23 -0
- package/tests/liquidsoap/tests/streams/sharing.liq +17 -0
- package/tests/liquidsoap/tests/streams/sine.detect.full_conv.liq +17 -0
- package/tests/liquidsoap/tests/streams/sine.detect.liq +12 -0
- package/tests/liquidsoap/tests/streams/sine.detect.pcm_f32.liq +14 -0
- package/tests/liquidsoap/tests/streams/sine.detect.pcm_s16.liq +14 -0
- package/tests/liquidsoap/tests/streams/smart-crossfade.liq +11 -0
- package/tests/liquidsoap/tests/streams/srt_listen_callback.liq +24 -0
- package/tests/liquidsoap/tests/streams/srt_multiple_outputs.liq +16 -0
- package/tests/liquidsoap/tests/streams/srt_passphrase.liq +19 -0
- package/tests/liquidsoap/tests/streams/srt_raw_pcm.liq +13 -0
- package/tests/liquidsoap/tests/streams/stretch-clock-propagation.liq +13 -0
- package/tests/liquidsoap/tests/test.liq +237 -0
- package/tests/liquidsoap/tls-liquidsoap.opam +33 -0
- package/tests/run.sh +18 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
# Building an advanced stream: file-based sources
|
|
2
|
+
|
|
3
|
+
The purpose of this part is to document and illustrate the creation of an
|
|
4
|
+
advanced stream using static files.
|
|
5
|
+
|
|
6
|
+
In order to be self-contained, we will use here only pure liquidsoap scripting
|
|
7
|
+
functionalities. However, all the parts that use pre-defined functions can be
|
|
8
|
+
implemented using external scripts, which is the most common practice, and has
|
|
9
|
+
proved to be very convenient in order to integrate your liquidsoap stream into
|
|
10
|
+
the framework that you use to manage your radio.
|
|
11
|
+
|
|
12
|
+
## Preliminaries
|
|
13
|
+
|
|
14
|
+
In order to make things more clear and modular, we will
|
|
15
|
+
separate the code in two parts:
|
|
16
|
+
|
|
17
|
+
- `radio.liq` is the script that contains the definition of the main stream
|
|
18
|
+
- `library.liq` is the script that contains the functions used to build the stream
|
|
19
|
+
|
|
20
|
+
The scripts here should be tested using the following
|
|
21
|
+
command line:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
liquidsoap /path/to/radio.liq
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Thus, we do not define here daemonized script. In order to make
|
|
28
|
+
things work smoothly, you should put the following lines at the beginning
|
|
29
|
+
of `radio.liq`:
|
|
30
|
+
|
|
31
|
+
```liquidsoap
|
|
32
|
+
log.file.set(false)
|
|
33
|
+
log.stdout.set(true)
|
|
34
|
+
log.level.set(3)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Finally, we add the following line at the beginning of `radio.liq`,
|
|
38
|
+
in order to load our pre-defined functions:
|
|
39
|
+
|
|
40
|
+
```liquidsoap
|
|
41
|
+
%include "/path/to/library.liq"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
We will use the telnet server to interact with the radio.
|
|
45
|
+
Thus, we enable the telnet server by adding the following line in `radio.liq`:
|
|
46
|
+
|
|
47
|
+
```liquidsoap
|
|
48
|
+
settings.server.telnet.set(true)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## An initial model
|
|
52
|
+
|
|
53
|
+
In this part, we describe the initial stream that we want.
|
|
54
|
+
We start with a simple stream that contains songs from
|
|
55
|
+
a static playlist, with some jingles, with 3 songs for one jingle,
|
|
56
|
+
and output the result to an icecast server. This
|
|
57
|
+
is described by the following graph:
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
This very simple stream is defined by the following content
|
|
62
|
+
in `radio.liq`:
|
|
63
|
+
|
|
64
|
+
```liquidsoap
|
|
65
|
+
# The file source
|
|
66
|
+
songs = playlist("/path/to/some/files/")
|
|
67
|
+
|
|
68
|
+
# The jingle source
|
|
69
|
+
jingles = playlist("/path/to/some/jingles")
|
|
70
|
+
|
|
71
|
+
# We combine the sources and play
|
|
72
|
+
# one single every 3 songs:
|
|
73
|
+
s = rotate(weights=[1,3], [jingles, songs])
|
|
74
|
+
|
|
75
|
+
# We output the stream to an icecast
|
|
76
|
+
# server, in ogg/vorbis format.
|
|
77
|
+
output.icecast(%vorbis,id="icecast",
|
|
78
|
+
fallible=true,mount="my_radio.ogg",
|
|
79
|
+
host="my_server", password="hack_me_not",
|
|
80
|
+
s)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
For now, `library.liq` does not contain any code so we only do:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
touch /path/to/library.liq
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- Write this script to a file, change the default directories and parameters.
|
|
90
|
+
- Run it.
|
|
91
|
+
- Listen to your initial stream.
|
|
92
|
+
- Connect to the telnet server (`telnet localhost 1234`)
|
|
93
|
+
- Try the telnet comment: `icecast.skip`
|
|
94
|
+
- Check that a jingle is played every 3 songs.
|
|
95
|
+
- Sometimes, when skipping, the source does not prepare a new file quickly enough, which breaks the rotation. If this is the case, add the parameter `conservative=true` to each playlist and try again.
|
|
96
|
+
|
|
97
|
+
Now, we extend this initial stream with some advanced features:
|
|
98
|
+
|
|
99
|
+
### Notify when a song is played
|
|
100
|
+
|
|
101
|
+
Once the stream is started, we may want to be able to keep track of the songs that are played,
|
|
102
|
+
for instance to display this information on a website.
|
|
103
|
+
One nice way to do this is to call a function every time that a new track is passed to the
|
|
104
|
+
output, which will inform the user of which tracks are played and when. This can be done
|
|
105
|
+
using the `on_metadata` operator.
|
|
106
|
+
|
|
107
|
+
First, we define a function that is called every time a new metadata is seen in the stream.
|
|
108
|
+
This is a function of type `(metadata)->unit`, i.e. a function that receives the metadata
|
|
109
|
+
as argument and returns nothing.
|
|
110
|
+
The `metadata` type is actually `[(string*string)]`,
|
|
111
|
+
i.e. a list of elements of the form `("label","value")`.
|
|
112
|
+
|
|
113
|
+
Thus, we add the following in `library.liq`:
|
|
114
|
+
|
|
115
|
+
```liquidsoap
|
|
116
|
+
# This function is called when
|
|
117
|
+
# a new metadata block is passed in
|
|
118
|
+
# the stream.
|
|
119
|
+
def apply_metadata(m) =
|
|
120
|
+
title = m["title"]
|
|
121
|
+
artist = m["artist"]
|
|
122
|
+
print("Now playing: #{title} by #{artist}")
|
|
123
|
+
end
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Note**: the string `"foo #{bla}"` can also be written `"foo " ^ bla` and is the
|
|
127
|
+
string ``foo bar'', if `bla`is the string`"bar"`.
|
|
128
|
+
|
|
129
|
+
Now, we apply the `on_metadata` operator with this function just
|
|
130
|
+
before passing the final source to the output, so we write in `radio.liq`,
|
|
131
|
+
before the output line:
|
|
132
|
+
|
|
133
|
+
```liquidsoap
|
|
134
|
+
s = on_metadata(apply_metadata,s)
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
- Update your scripts.
|
|
138
|
+
- Run the new radio.
|
|
139
|
+
- Observe the lines printed on new metadata.
|
|
140
|
+
- You may prefer to use the `log` function rather than `print`.
|
|
141
|
+
|
|
142
|
+
Solutions:
|
|
143
|
+
|
|
144
|
+
- [radio.liq](radio.liq-notify)
|
|
145
|
+
- [library.liq](library.liq-notify)
|
|
146
|
+
|
|
147
|
+
### Custom scheduling
|
|
148
|
+
|
|
149
|
+
Another issue with the above stream is the fact that jingles have a strict
|
|
150
|
+
frequency of one jingle every 3 songs. In a lot of cases, you may want
|
|
151
|
+
more flexibility and have full-features scheduling of your songs. The
|
|
152
|
+
best approach in this case is to _externalize_ this operation by creating
|
|
153
|
+
a scheduler with the language/framework of your choice and integrating it
|
|
154
|
+
with liquidsoap using `request.dynamic.list`.
|
|
155
|
+
|
|
156
|
+
`request.dynamic.list` takes a function of type `()->[request('a)]`,
|
|
157
|
+
i.e. a function with no arguments that returns an array of new requests to queue
|
|
158
|
+
and create a source with it. Every time that liquidsoap needs to
|
|
159
|
+
prepare a new file, it will execute the function and use its result.
|
|
160
|
+
|
|
161
|
+
Requests in liquidsoap are created with the function `request.create`,
|
|
162
|
+
which takes an URIs of the form:
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
protocol:arguments
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
where `protocol:` is optional is `arguments` is the URI of a local file.
|
|
169
|
+
For instance, `ftp://server.net/path/to/file.mp3` is a requests using
|
|
170
|
+
the _ftp_ protocol, which is resolved using `wget` (if present in the
|
|
171
|
+
system).
|
|
172
|
+
|
|
173
|
+
We are going to use `request.dynamic.list` to merge both the `songs` and
|
|
174
|
+
`jingles` sources into one source and let our external scheduler
|
|
175
|
+
decides when to play a jingle or a song. However, we will need
|
|
176
|
+
later to know if we are currently playing a song or a jingle.
|
|
177
|
+
|
|
178
|
+
For these reasons, we will be using the `annotate:` protocol.
|
|
179
|
+
This protocol can be used to pass additional metadata along
|
|
180
|
+
with the metadata of the file. Here, we will pass a metadata
|
|
181
|
+
labeled `"type"`, with value `"song"` if the track is a song
|
|
182
|
+
or `"jingle"` otherwise.
|
|
183
|
+
|
|
184
|
+
In the context of this simple presentation, we will write
|
|
185
|
+
a dummy script. Thus, we create a file `"/tmp/request"`
|
|
186
|
+
that contains a line of the form:
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
annotate:type="song":/path/to/song.mp3
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
And, we add in `library.liq`:
|
|
193
|
+
|
|
194
|
+
```liquidsoap
|
|
195
|
+
# Our custom request function
|
|
196
|
+
def get_request() =
|
|
197
|
+
# Get the URI
|
|
198
|
+
uri = list.hd(default="",get_process_lines("cat /tmp/request"))
|
|
199
|
+
# Create a request
|
|
200
|
+
[request.create(uri)]
|
|
201
|
+
end
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Now, we replace the lines defining `songs`, `files` and the line
|
|
205
|
+
using the `rotate` operator in `radio.liq` with the following code:
|
|
206
|
+
|
|
207
|
+
```liquidsoap
|
|
208
|
+
s = request.dynamic.list(id="s",get_request)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
- Update your scripts.
|
|
212
|
+
- Run the new radio.
|
|
213
|
+
- Edit `"/tmp/request"` and change its content to:
|
|
214
|
+
|
|
215
|
+
```liquidsoap
|
|
216
|
+
annotate:type="jingle":/path/to/jingle.mp3
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
- Use the command `s.skip` through the telnet server and verify that the new song is being played. This may need more than one skip..
|
|
220
|
+
- Use the commands `request.on_air` and `request.metadata` through the telnet server to verify the presence of the `type` metadata
|
|
221
|
+
- Extra: think about how to use the previous notification code to interact with this function.
|
|
222
|
+
|
|
223
|
+
Solutions:
|
|
224
|
+
|
|
225
|
+
- [radio.liq](radio.liq-request.dynamic.list)
|
|
226
|
+
- [library.liq](library.liq-request.dynamic.list)
|
|
227
|
+
|
|
228
|
+
### Custom metadata
|
|
229
|
+
|
|
230
|
+
We have just seen how it is possible to use the `annotate:` protocol to
|
|
231
|
+
pass custom metadata to any request. Additionally, it is also possible to rewrite
|
|
232
|
+
your stream's metadata on the fly, using the `on_metadata` operator.
|
|
233
|
+
|
|
234
|
+
This operator takes a function of the type `metadata->metadata`, i.e. a function
|
|
235
|
+
that takes the current metadata and returns some metadata. Thus, when `metadata.map`
|
|
236
|
+
sees a new metadata in the stream, it calls this function and, by default, updates
|
|
237
|
+
the metadata with the values returned by the function.
|
|
238
|
+
|
|
239
|
+
Here, we use this operator to customize the title metadata with the name of our radio.
|
|
240
|
+
First, we create a file `"/tmp/metadata"` containing:
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
My Awesome Liquidsoap Radio!
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Then, in `library.liq`, we add the following function:
|
|
247
|
+
|
|
248
|
+
```liquidsoap
|
|
249
|
+
# This function updates the title metadata with
|
|
250
|
+
# the content of "/tmp/metadata"
|
|
251
|
+
def update_title(m) =
|
|
252
|
+
# The title metadata
|
|
253
|
+
title = m["title"]
|
|
254
|
+
# Our addition
|
|
255
|
+
content = list.hd(get_process_lines("cat /tmp/metadata"))
|
|
256
|
+
|
|
257
|
+
# If title is empty
|
|
258
|
+
if title == "" then
|
|
259
|
+
[("title",content)]
|
|
260
|
+
# Otherwise
|
|
261
|
+
else
|
|
262
|
+
[("title","#{title} on #{content}")]
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Finally, we apply `metadata.map` to the source, just after the `request.dynamic.list`
|
|
268
|
+
definition in `radio.liq`:
|
|
269
|
+
|
|
270
|
+
```liquidsoap
|
|
271
|
+
s = metadata.map(update_title,s)
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
Solutions:
|
|
275
|
+
|
|
276
|
+
- [radio.liq](radio.liq-map_meta)
|
|
277
|
+
- [library.liq](library.liq-map_meta)
|
|
278
|
+
|
|
279
|
+
### Infallible sources
|
|
280
|
+
|
|
281
|
+
It is reasonable, for a radio, to expect that a stream is
|
|
282
|
+
always available for broadcasting. However, problems may happen (and always
|
|
283
|
+
do at some point). Thus, we need to offer an alternative for the case
|
|
284
|
+
where nothing is available.
|
|
285
|
+
|
|
286
|
+
Instead of using `mksafe`, which streams blank
|
|
287
|
+
audio when this happens, we use a custom sound file. For instance, this
|
|
288
|
+
sound file may contain a sentence like ``Hello, this is radio FOO! We are currently
|
|
289
|
+
having some technical difficulties but we'll be back soon so stay tuned!''.
|
|
290
|
+
|
|
291
|
+
We do that here using the `say:` protocol, which creates a speech synthesis
|
|
292
|
+
of the given sentence. Otherwise, you may record a (more serious) file and
|
|
293
|
+
pass it to the single operator...
|
|
294
|
+
|
|
295
|
+
First, we add the following in `library.liq`
|
|
296
|
+
|
|
297
|
+
```liquidsoap
|
|
298
|
+
# This function turns a fallible
|
|
299
|
+
# source into an infallible source
|
|
300
|
+
# by playing a static single when
|
|
301
|
+
# the original song is not available
|
|
302
|
+
def my_safe(s) =
|
|
303
|
+
# We assume that festival is installed and
|
|
304
|
+
# functional in liquidsoap
|
|
305
|
+
security = single("say:Hello, this is radio FOO! \
|
|
306
|
+
We are currently having some \
|
|
307
|
+
technical difficulties but we'll \
|
|
308
|
+
be back soon so stay tuned!")
|
|
309
|
+
|
|
310
|
+
# We return a fallback where the original
|
|
311
|
+
# source has priority over the security
|
|
312
|
+
# single. We set track_sensitive to false
|
|
313
|
+
# to return immediately to the original source
|
|
314
|
+
# when it becomes available again.
|
|
315
|
+
fallback(track_sensitive=false,[s,security])
|
|
316
|
+
end
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
Then, we add the following line in `radio.liq`, just before
|
|
320
|
+
the output line:
|
|
321
|
+
|
|
322
|
+
```liquidsoap
|
|
323
|
+
s = my_safe(s)
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
And we also remove the `fallible=true` from the parameters of `output.icecast`.
|
|
327
|
+
|
|
328
|
+
- Update your scripts.
|
|
329
|
+
- Run and test the new radio.
|
|
330
|
+
- To hear the security jingle, you can empty `"/tmp/request"` and use the skip command in telnet or wait for the end of the current song.
|
|
331
|
+
- If you put a new valid request in `"/tmp/request"` then the stream comes back to the normal source.
|
|
332
|
+
|
|
333
|
+
Solutions:
|
|
334
|
+
|
|
335
|
+
- [radio.liq](radio.liq-safe)
|
|
336
|
+
- [library.liq](library.liq-safe)
|
|
337
|
+
|
|
338
|
+
### Multiple outputs
|
|
339
|
+
|
|
340
|
+
We may as well output the stream to several targets,
|
|
341
|
+
for instance to different icecast mount points with different
|
|
342
|
+
formats. Therefore, we define a custom output function
|
|
343
|
+
that defines all these outputs.
|
|
344
|
+
|
|
345
|
+
We add the following in `library.liq`:
|
|
346
|
+
|
|
347
|
+
```liquidsoap
|
|
348
|
+
# A function that contains all the output
|
|
349
|
+
# we want to create with the final stream
|
|
350
|
+
def outputs(s) =
|
|
351
|
+
# First, we partially apply output.icecast
|
|
352
|
+
# with common parameters. The resulting function
|
|
353
|
+
# is stored in a new definition of output.icecast,
|
|
354
|
+
# but this could be my_icecast or anything.
|
|
355
|
+
output.icecast = output.icecast(host="my_server",
|
|
356
|
+
password="hack_me_not")
|
|
357
|
+
|
|
358
|
+
# An output in ogg/vorbis to the "my_radio.ogg"
|
|
359
|
+
# mountpoint:
|
|
360
|
+
output.icecast(%vorbis, mount="my_radio.ogg",s)
|
|
361
|
+
|
|
362
|
+
# An output in mp3 at 128kbits to the "my_radio"
|
|
363
|
+
# mountpoint:
|
|
364
|
+
output.icecast(%mp3(bitrate=128), mount="my_radio",s)
|
|
365
|
+
|
|
366
|
+
# An output in ogg/flac to the "my_radio-flac.ogg"
|
|
367
|
+
# mountpoint:
|
|
368
|
+
output.icecast(%ogg(%flac), mount="my_radio-flac.ogg",s)
|
|
369
|
+
|
|
370
|
+
# An output in AAC+ at 32 kbits to the "my_radio.aac"
|
|
371
|
+
# mountpoint
|
|
372
|
+
output.icecast(%fdkaac(bitrate=32), mount="my_radio.aac",s)
|
|
373
|
+
end
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
And we replace the output line in `radio.liq` by:
|
|
377
|
+
|
|
378
|
+
```liquidsoap
|
|
379
|
+
outputs(s)
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
- Write your own output function.
|
|
383
|
+
- Run and test your new radio.
|
|
384
|
+
|
|
385
|
+
**Note** liquidsoap may fail with the following error:
|
|
386
|
+
|
|
387
|
+
```
|
|
388
|
+
Connection failed: 403, too many sources connected (HTTP/1.0)!
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
In this case, you should check the maximum number of sources that your
|
|
392
|
+
icecast server accepts.
|
|
393
|
+
|
|
394
|
+
Solutions:
|
|
395
|
+
|
|
396
|
+
- [radio.liq](radio.liq-outputs)
|
|
397
|
+
- [library.liq](library.liq-outputs)
|
|
398
|
+
|
|
399
|
+
## More advanced functions!
|
|
400
|
+
|
|
401
|
+
Now that we have a controllable initial radio, we extend our initial
|
|
402
|
+
scripts to add advanced features. The following graph illustrates what
|
|
403
|
+
we are going to add:
|
|
404
|
+
|
|
405
|
+

|
|
406
|
+
|
|
407
|
+
\*\* The `Replay gain` node normalizes all the songs using the [Replay Gain](https://en.wikipedia.org/wiki/ReplayGain) technology.
|
|
408
|
+
|
|
409
|
+
- The `Smart crossfade` node adds crossfading between songs but not jingles.
|
|
410
|
+
- The `Smooth_add` node adds the possibility to insert a jingle in the middle of a song, fading out and then back in the initial stream while the jingle is being played.
|
|
411
|
+
|
|
412
|
+
### Replaygain
|
|
413
|
+
|
|
414
|
+
The replaygain support is achieved in liquidsoap in two steps:
|
|
415
|
+
|
|
416
|
+
- apply the `amplify` operator to change a source's volume
|
|
417
|
+
- pass a `"replay_gain"` metadata indicating to the `amplify` operator which value to use.
|
|
418
|
+
|
|
419
|
+
The `"replay_gain"` metadata can be passed manually or computed by liquidsoap.
|
|
420
|
+
Liquidsoap comes with a script that can extract the replaygain information
|
|
421
|
+
from ogg/vorbis, mp3 and FLAC files. This is a very convenient script but it generate
|
|
422
|
+
a high CPU usage which can be bad for real-time streaming.
|
|
423
|
+
In some situations, you may compute beforehand this value and pass it manually
|
|
424
|
+
using the `annotate` protocol.
|
|
425
|
+
|
|
426
|
+
If you cannot compute the value beforehand, liquidsoap comes with two ways
|
|
427
|
+
to extract the replaygain information
|
|
428
|
+
|
|
429
|
+
- The `replay_gain:` protocol. All requests of the form `replay_gain:URI` are resolved by passing `URI` to the script provided by liquidsoap. This method allows to select which files should be used with replay gain. However, it will only work if `URI` is a local file.
|
|
430
|
+
- The replay gain metadata resolver, enabled by adding a line of the form `enable_replaygain_metadata ()` in your script. In this cases, all requests and not only local files can be processed and you cannot select which one should be used with replaygain.
|
|
431
|
+
|
|
432
|
+
The most simple solution, in our case, is to change the requests
|
|
433
|
+
passed to `request.dynamic.list` to something of the form:
|
|
434
|
+
|
|
435
|
+
```
|
|
436
|
+
annotate:type="song":replay_gain:URI
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
However, in order to illustrate a bit more the functionalities of liquidsoap we present
|
|
440
|
+
another solution.
|
|
441
|
+
The method we propose here consists in using `metadata.map`, which we have already seen
|
|
442
|
+
to update the metadata with a `"replay_gain"` metadata when we see the `"type"` metadata
|
|
443
|
+
with the value `"song"`. Thus, we add the following function in `library.liq`:
|
|
444
|
+
|
|
445
|
+
```liquidsoap
|
|
446
|
+
# This function takes a metadata,
|
|
447
|
+
# check if it is of type "file"
|
|
448
|
+
# and add the replay_gain metadata in
|
|
449
|
+
# this case
|
|
450
|
+
def add_replaygain(m) =
|
|
451
|
+
# Get the type
|
|
452
|
+
type = m["type"]
|
|
453
|
+
# The replaygain script is located there
|
|
454
|
+
script = "#{configure.bindir}/extract-replaygain"
|
|
455
|
+
# The file name is contained in this value
|
|
456
|
+
filename = m["filename"]
|
|
457
|
+
|
|
458
|
+
# If type = "song", proceed:
|
|
459
|
+
if type == "song" then
|
|
460
|
+
info = list.hd(get_process_lines("#{script} #{filename}"))
|
|
461
|
+
[("replay_gain",info)]
|
|
462
|
+
# Otherwise add nothing
|
|
463
|
+
else
|
|
464
|
+
[]
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
And, we add the following line in `radio.liq` after the `request.dynamic.list` line:
|
|
470
|
+
|
|
471
|
+
```liquidsoap
|
|
472
|
+
s = metadata.map(add_replaygain,s)
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
Finally, we add the `amplify` operator. We set the default amplification
|
|
476
|
+
to `1.`, i.e. no amplification, and tell the operator to update this value with
|
|
477
|
+
the content of the `"replay_gain"` metadata. Thus, only the tracks which have this
|
|
478
|
+
metadata will be modified.
|
|
479
|
+
|
|
480
|
+
We add the following in `radio.liq`, after the line we just inserted:
|
|
481
|
+
|
|
482
|
+
```liquidsoap
|
|
483
|
+
s = amplify(override="replay_gain",1.,s)
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
**Note** we can also apply `amplify` only to `songs`, _before_ the `switch` operator
|
|
487
|
+
|
|
488
|
+
- Update your scripts.
|
|
489
|
+
- Run and test the new radio.
|
|
490
|
+
- Change the content of `"/tmp/request"` with something of type `"file"` and skip the current song.
|
|
491
|
+
- Use the telnet server to make sure that the new `"replay_gain"` metadata has been added.
|
|
492
|
+
- Also, in the logs, you should be able to see that the `replay_gain` information was used to override the amplification factor.
|
|
493
|
+
- Can you find a content for `"/tmp/request"` that will enable replay gain on a file which is not of type `"song"`?
|
|
494
|
+
|
|
495
|
+
**Note** in this case, the `replay_gain` metadata is not added during the request resolution.
|
|
496
|
+
Thus, it is not visible in the `request.metadata`. However, you should be able to find another
|
|
497
|
+
command that displays it!
|
|
498
|
+
|
|
499
|
+
Solutions:
|
|
500
|
+
|
|
501
|
+
- [radio.liq](radio.liq-replay)
|
|
502
|
+
- [library.liq](library.liq-replay)
|
|
503
|
+
|
|
504
|
+
### Smart crossfade
|
|
505
|
+
|
|
506
|
+
The `smart_crossfade` is a crossfade operator that decides the crossfading to apply depending
|
|
507
|
+
on the volume and metadata of the old and new track.
|
|
508
|
+
|
|
509
|
+
It is defined using a generic `smart_cross`
|
|
510
|
+
operator, that takes a function of type `(float, float, metadata, metadata, source, source) -> source`,
|
|
511
|
+
i.e. a function that take the volume level (in decibels) of, respectively, the old and new
|
|
512
|
+
tracks, the metadata of, resp. the old and new tracks and, finally, the old and new tracks,
|
|
513
|
+
and returns the new source with the required transition.
|
|
514
|
+
|
|
515
|
+
We give here a simple custom implementation of our crossfade. What we do is:
|
|
516
|
+
|
|
517
|
+
- Crossfade tracks if none of the old and new track are jingle;
|
|
518
|
+
- Sequentialize the tracks otherwise.
|
|
519
|
+
|
|
520
|
+
We identify the type of each track by reading the `"type"` metadata we
|
|
521
|
+
have added when creating the `request.dynamic.list` source.
|
|
522
|
+
|
|
523
|
+
A typical `smart_crossfade` operator is defined in `utils.liq`
|
|
524
|
+
but you may do much more things with a little bit of imagination.
|
|
525
|
+
|
|
526
|
+
Here, we add the following in `library.liq`:
|
|
527
|
+
|
|
528
|
+
```liquidsoap
|
|
529
|
+
# Our custom crossfade that
|
|
530
|
+
# only crossfade between tracks
|
|
531
|
+
def my_crossfade(s) =
|
|
532
|
+
# Our transition function
|
|
533
|
+
def f(_,_, old_m, new_m, old, new) =
|
|
534
|
+
# If none of old and new have "type" metadata
|
|
535
|
+
# with value "jingles", we crossfade the source:
|
|
536
|
+
if old_m["type"] != "jingle" and new_m["type"] != "jingle" then
|
|
537
|
+
add([fade.initial(new), fade.final(old)])
|
|
538
|
+
else
|
|
539
|
+
sequence([old,new])
|
|
540
|
+
end
|
|
541
|
+
end
|
|
542
|
+
# Now, we apply smart_cross with this function:
|
|
543
|
+
smart_cross(f,s)
|
|
544
|
+
end
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
Finally, we add the following line in `radio.liq`, just after the
|
|
548
|
+
`amplify` operator:
|
|
549
|
+
|
|
550
|
+
```liquidsoap
|
|
551
|
+
s = my_crossfade(s)
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
- Update your scripts.
|
|
555
|
+
- Run and test the new radio.
|
|
556
|
+
- Modify the custom crossfading to fade out the old song if it is not a jingle, and fade in the new song if it is not a jingle.
|
|
557
|
+
|
|
558
|
+
Solutions:
|
|
559
|
+
|
|
560
|
+
- [radio.liq](radio.liq-smart)
|
|
561
|
+
- [library.liq](library.liq-smart)
|
|
562
|
+
|
|
563
|
+
### Smooth_add
|
|
564
|
+
|
|
565
|
+
Finally, we add another nice feature: a jingle that is played on top of the
|
|
566
|
+
current stream. We use the `smooth_add` operator, which is also defined in
|
|
567
|
+
`utils.liq`. This operator takes a normal source and a special jingle source.
|
|
568
|
+
Every time that a new track is available in the special source, it fades out
|
|
569
|
+
the volume of the normal source, plays the track from the special source
|
|
570
|
+
on top of the current track of the normal source, and then fades back in
|
|
571
|
+
the volume of the normal source when the track is finished.
|
|
572
|
+
|
|
573
|
+
Typically, you use for the special source a `request.queue` where you push a new
|
|
574
|
+
jingle every time you want to use this feature.
|
|
575
|
+
|
|
576
|
+
We modify `radio.liq` and add the following line just before `my_safe`:
|
|
577
|
+
|
|
578
|
+
```liquidsoap
|
|
579
|
+
# A special source
|
|
580
|
+
special = request.queue(id="special")
|
|
581
|
+
# Smooth_add the special source
|
|
582
|
+
s = smooth_add(normal=s,special=special)
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
- Update your script.
|
|
586
|
+
- Run and test the new radio.
|
|
587
|
+
- Use the telnet server to push the request `say:My new radio rocks!` in the special source.
|
|
588
|
+
- Listen!
|
|
589
|
+
|
|
590
|
+
Solutions:
|
|
591
|
+
|
|
592
|
+
- [radio.liq](radio.liq-smooth)
|
|
593
|
+
- [library.liq](library.liq-smooth)
|
|
594
|
+
|
|
595
|
+
## What about DJs?
|
|
596
|
+
|
|
597
|
+
We present now another important part of an advanced stream: the addition of a live stream
|
|
598
|
+
in order to allow DJs to broadcast their shows.
|
|
599
|
+
|
|
600
|
+
We are going to add the following features:
|
|
601
|
+
|
|
602
|
+
- A live input that is played immediately when it is available
|
|
603
|
+
- Use different harbor ports, to replace mount points for shoutcast source clients
|
|
604
|
+
- A transition jingle that is played when switching between live and files
|
|
605
|
+
- Skip the file currently being played when switching to a live source so that the file-based source starts with a fresh song when the live stops
|
|
606
|
+
- Define different authentications for the DJs and make sure that a DJ can only broadcast when its show is scheduled
|
|
607
|
+
|
|
608
|
+
### Live inputs
|
|
609
|
+
|
|
610
|
+
The live inputs in liquidsoap are of two types:
|
|
611
|
+
|
|
612
|
+
- Network-based, mostly `input.http` and `input.harbor`.
|
|
613
|
+
- Hardware-based, with operators like `input.alsa`, `input.jack`, etc.
|
|
614
|
+
|
|
615
|
+
We focus here on the first type, and more precisely on `input.harbor`. When using
|
|
616
|
+
this operator in your script, the running instance will be able to receive data
|
|
617
|
+
coming from icecast and shoutcast source clients. Then, your DJs can broadcast
|
|
618
|
+
a live stream using their favorite software. Liquidsoap supports most of the
|
|
619
|
+
usual data formats, when enabled as encoder:
|
|
620
|
+
|
|
621
|
+
- MP3
|
|
622
|
+
- Any supported ogg stream
|
|
623
|
+
- Aac and Aac+
|
|
624
|
+
|
|
625
|
+
You may also communicate data between two liquidsoap instance, one using `output.icecast`
|
|
626
|
+
to send data and the other one `input.harbor` to receive it. In this case, you want also
|
|
627
|
+
use the WAVE or FLAC format to send lossless data.
|
|
628
|
+
|
|
629
|
+
We add a live source in `radio.liq`, anywhere before the outputs:
|
|
630
|
+
|
|
631
|
+
```liquidsoap
|
|
632
|
+
live = input.harbor("live")
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
**Note** `"live"` is the name of the mountpoint that will be
|
|
636
|
+
associated to this source. The default parameters for the port,
|
|
637
|
+
user and password are contained in the following settings:
|
|
638
|
+
|
|
639
|
+
```liquidsoap
|
|
640
|
+
settings.harbor.password.set("hackme")
|
|
641
|
+
settings.harbor.port.set(8005)
|
|
642
|
+
settings.harbor.username.set("source")
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
We want the live source to be played as soon as it becomes available. Thus, we
|
|
646
|
+
use a `fallback` to combine it with the file-based source, and add the following code
|
|
647
|
+
after `my_safe` in `radio.liq`:
|
|
648
|
+
|
|
649
|
+
```liquidsoap
|
|
650
|
+
s = fallback(track_sensitive=false, [live,s])
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
**Note** the `track_sensitive=false` parameter tells liquidsoap to
|
|
654
|
+
switch immediately to `live` when it becomes available instead of waiting
|
|
655
|
+
for the end of the track currently played by `s`.
|
|
656
|
+
|
|
657
|
+
- Update your script
|
|
658
|
+
- Run the new radio
|
|
659
|
+
- Try to connect to the harbor mountpoint. You may use a separate liquidsoap script and `output.icecast`
|
|
660
|
+
- Why is the output still infallible ?
|
|
661
|
+
|
|
662
|
+
Solutions:
|
|
663
|
+
|
|
664
|
+
- [radio.liq](radio.liq-harbor)
|
|
665
|
+
- [library.liq](library.liq-harbor)
|
|
666
|
+
|
|
667
|
+
### Enabling shoutcast clients
|
|
668
|
+
|
|
669
|
+
By default, shoutcast source clients are not supported. You can enable them by
|
|
670
|
+
adding the following settings:
|
|
671
|
+
|
|
672
|
+
```liquidsoap
|
|
673
|
+
settings.harbor.icy.set(true)
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
**Note** `ICY` is the technical name of the original shoutcast source
|
|
677
|
+
protocol.
|
|
678
|
+
|
|
679
|
+
Additionally, the shoutcast source protocol does not support the notion
|
|
680
|
+
of mountpoint: all the sources try to connect to the same `"/"` mountpoint.
|
|
681
|
+
However, you can emulate this in liquidsoap by using different harbor sources
|
|
682
|
+
on different port.
|
|
683
|
+
|
|
684
|
+
For instance, if we replace the definition of `live` in `radio.liq` with the
|
|
685
|
+
following:
|
|
686
|
+
|
|
687
|
+
```liquidsoap
|
|
688
|
+
live1 = input.harbor(port=9000,"/")
|
|
689
|
+
live2 = input.harbor(port=7000,"/")
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
And the `fallback` line with:
|
|
693
|
+
|
|
694
|
+
```liquidsoap
|
|
695
|
+
s = fallback(track_sensitive=false, [live1,live2,s])
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
Then your a DJ should be able to send data using the port `9000`
|
|
699
|
+
and another one using the port `7000`, and the one connecting on port
|
|
700
|
+
`9000` may be played in priority if the two are connected at the same time.
|
|
701
|
+
|
|
702
|
+
- Update your script
|
|
703
|
+
- Run the new radio
|
|
704
|
+
- Connect one source client to port `7000`
|
|
705
|
+
- Connect another source client to port `9000`
|
|
706
|
+
- Verify that the client on port `9000` is broadcasting
|
|
707
|
+
|
|
708
|
+
Solutions:
|
|
709
|
+
|
|
710
|
+
- [radio.liq](radio.liq-shoutcast)
|
|
711
|
+
- [library.liq](library.liq-shoutcast)
|
|
712
|
+
|
|
713
|
+
### A nice transition!
|
|
714
|
+
|
|
715
|
+
Now that our radio support live shows, we deal with another issue: when switching
|
|
716
|
+
to the live show, the current song is cut at the point where it is and the audio
|
|
717
|
+
content switches over to the live data without any transition, which is not very nice
|
|
718
|
+
for the listeners. Further, when switching back to the file-based source at the
|
|
719
|
+
end of the live, the source resumes in the middle of the song that was last played..
|
|
720
|
+
|
|
721
|
+
In this part, we define a transition for switching from file to live, which fades
|
|
722
|
+
the current song out and superposes a jingle before starting the live show.
|
|
723
|
+
We use the `transition` parameter of the fallback operators.
|
|
724
|
+
|
|
725
|
+
This parameter contains functions of the type: `source * source -> source`,
|
|
726
|
+
i.e. functions that take two sources as arguments, the old and new source,
|
|
727
|
+
and returned a source that is the result of the desired transition. Finally,
|
|
728
|
+
when defined as:
|
|
729
|
+
|
|
730
|
+
```liquidsoap
|
|
731
|
+
fallback(transition=[f,g], [s1, s2])
|
|
732
|
+
```
|
|
733
|
+
|
|
734
|
+
`f` is called when switching to `s1` (and `g` when switching to `s2`).
|
|
735
|
+
|
|
736
|
+
We also use `source.skip`, which skips the file currently being played, in
|
|
737
|
+
order to play a fresh file when switching back to the file-based source.
|
|
738
|
+
|
|
739
|
+
First, we add the following code in `library.liq`:
|
|
740
|
+
|
|
741
|
+
```liquidsoap
|
|
742
|
+
# Define a transition that fades out the
|
|
743
|
+
# old source, adds a single, and then
|
|
744
|
+
# plays the new source
|
|
745
|
+
def to_live(jingle,old,new) =
|
|
746
|
+
# Fade out old source
|
|
747
|
+
old = fade.final(old)
|
|
748
|
+
# Superpose the jingle
|
|
749
|
+
s = add([jingle,old])
|
|
750
|
+
# Compose this in sequence with
|
|
751
|
+
# the new source
|
|
752
|
+
sequence([s,new])
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# A transition when switching back to files:
|
|
756
|
+
def to_file(old,new) =
|
|
757
|
+
# We skip the file
|
|
758
|
+
# currently in new
|
|
759
|
+
# in order to being with
|
|
760
|
+
# a fresh file
|
|
761
|
+
source.skip(new)
|
|
762
|
+
sequence([old,new])
|
|
763
|
+
end
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
**Note** `source.skip` may cause troubles if
|
|
767
|
+
the file source does not prepare a new track quickly enough.
|
|
768
|
+
In this case, you may add `conservative=true` to the
|
|
769
|
+
parameters of the `request.dynamic.list` source.
|
|
770
|
+
|
|
771
|
+
Then, we add the following code in `radio.liq`, where
|
|
772
|
+
we defined the `fallback` between the two live sources and
|
|
773
|
+
the file-based source:
|
|
774
|
+
|
|
775
|
+
```liquidsoap
|
|
776
|
+
# The transition to live1
|
|
777
|
+
jingle1 = single("say:And now, we present the awesome show number one!!")
|
|
778
|
+
to_live1 = to_live(jingle1)
|
|
779
|
+
|
|
780
|
+
# Transition to live2
|
|
781
|
+
jingle2 = single("say:Welcome guys, this is show two on My Awesome Radio!")
|
|
782
|
+
to_live2 = to_live(jingle2)
|
|
783
|
+
|
|
784
|
+
# Combine lives and files:
|
|
785
|
+
s = fallback(track_sensitive=false,
|
|
786
|
+
transitions=[to_live1, to_live2, to_file],
|
|
787
|
+
[live1, live2, s])
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
- Update your script
|
|
791
|
+
- Run the new radio
|
|
792
|
+
- Connect to each harbor and listen to the result
|
|
793
|
+
|
|
794
|
+
Solutions:
|
|
795
|
+
|
|
796
|
+
- [radio.liq](radio.liq-transitions)
|
|
797
|
+
- [library.liq](library.liq-transitions)
|
|
798
|
+
|
|
799
|
+
### Custom logins
|
|
800
|
+
|
|
801
|
+
Another powerful feature of `input.harbor` is the possibility to define a
|
|
802
|
+
custom authentication. For instance, imagine that DJ Alice may connect to
|
|
803
|
+
the `live1` source only between 20h and 21h, which is the time of her shows,
|
|
804
|
+
with the password `"rabbit"`, while DJ Bob may connect to the `live2` source
|
|
805
|
+
between 18h and 20h with password `"foo"`.
|
|
806
|
+
|
|
807
|
+
This can be implemented using the `auth` parameter of `input.harbor`. This
|
|
808
|
+
parameter is a function of type: `string * string -> bool`, i.e. a function
|
|
809
|
+
that takes a pair `(user,password)` and returns `true` if the connection should
|
|
810
|
+
be granted.
|
|
811
|
+
|
|
812
|
+
You may use this, for instance, with an external script and integrate harbor
|
|
813
|
+
and DJ authentication into the framework of your choice. Here we illustrate
|
|
814
|
+
this functionality with a custom functions. Thus, we add the following
|
|
815
|
+
in `library.liq`:
|
|
816
|
+
|
|
817
|
+
```liquidsoap
|
|
818
|
+
# Our custom authentication
|
|
819
|
+
# Note: the ICY protocol
|
|
820
|
+
# does not have any username and for
|
|
821
|
+
# icecast, it is "source" most of the time
|
|
822
|
+
# thus, we discard it
|
|
823
|
+
def harbor_auth(port,_,password) =
|
|
824
|
+
# Alice connects on port 9000 between 20h and 21h
|
|
825
|
+
# with password "rabbit"
|
|
826
|
+
(port == 9000 and 20h-21h and password == "rabbit")
|
|
827
|
+
or
|
|
828
|
+
# Bob connection on port 7000 between 18h and 20h
|
|
829
|
+
# with password "foo"
|
|
830
|
+
(port == 7000 and 18h-20h and password == "foo")
|
|
831
|
+
end
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
And we use it by replacing the `live1` and `live2` definitions by:
|
|
835
|
+
|
|
836
|
+
```liquidsoap
|
|
837
|
+
# Authentication for live 1:
|
|
838
|
+
auth1 = harbor_auth(9000)
|
|
839
|
+
live1 = input.harbor(port=9000,auth=auth1,"/")
|
|
840
|
+
|
|
841
|
+
# Authentication for live 2:
|
|
842
|
+
auth2 = harbor_auth(7000)
|
|
843
|
+
live2 = input.harbor(port=7000,auth=auth2,"/")
|
|
844
|
+
```
|
|
845
|
+
|
|
846
|
+
- Write your custom login function
|
|
847
|
+
- Run and test your new radio
|
|
848
|
+
|
|
849
|
+
No solution here :-)
|