codemirror-lang-liquidsoap 0.3.5 → 0.3.6

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.
Files changed (427) hide show
  1. package/dist/cli.js +6 -6
  2. package/dist/index.js +5 -5
  3. package/package.json +1 -1
  4. package/src/liquidsoap.grammar +2 -0
  5. package/src/parser.js +4 -4
  6. package/tests/liquidsoap/.codespellignore +1 -0
  7. package/tests/liquidsoap/.github/ISSUE_TEMPLATE/bug_report.yml +16 -0
  8. package/tests/liquidsoap/.github/docker/alpine.dockerfile +20 -0
  9. package/tests/liquidsoap/.github/docker/debian.dockerfile +55 -0
  10. package/tests/liquidsoap/.github/opam/{liquidsoap-core-windows.opam → liquidsoap-windows.opam} +8 -5
  11. package/tests/liquidsoap/.github/renovate.json +23 -0
  12. package/tests/liquidsoap/.github/scripts/add-local-opam-packages.sh +5 -3
  13. package/tests/liquidsoap/.github/scripts/build-apk.sh +10 -19
  14. package/tests/liquidsoap/.github/scripts/build-deb.sh +6 -15
  15. package/tests/liquidsoap/.github/scripts/build-details.sh +15 -4
  16. package/tests/liquidsoap/.github/scripts/build-posix.sh +11 -20
  17. package/tests/liquidsoap/.github/scripts/build-website.sh +1 -1
  18. package/tests/liquidsoap/.github/scripts/build-win32.sh +6 -2
  19. package/tests/liquidsoap/.github/scripts/push-docker.sh +13 -15
  20. package/tests/liquidsoap/.github/workflows/ci.yml +291 -185
  21. package/tests/liquidsoap/.ocamlformat +1 -1
  22. package/tests/liquidsoap/.pre-commit-config.yaml +2 -2
  23. package/tests/liquidsoap/CHANGES.md +112 -3
  24. package/tests/liquidsoap/README.md +10 -9
  25. package/tests/liquidsoap/ROADMAP.md +14 -8
  26. package/tests/liquidsoap/bin/liquidsoap-macos-instruments +7 -0
  27. package/tests/liquidsoap/doc/content/build.md +0 -1
  28. package/tests/liquidsoap/doc/content/faq.md +2 -4
  29. package/tests/liquidsoap/doc/content/icy_metadata.md +2 -2
  30. package/tests/liquidsoap/doc/content/install.md +13 -2
  31. package/tests/liquidsoap/doc/content/json.md +1 -1
  32. package/tests/liquidsoap/doc/content/language.md +4 -4
  33. package/tests/liquidsoap/doc/content/liq/beets-protocol.liq +1 -1
  34. package/tests/liquidsoap/doc/content/liq/crossfade.liq +1 -1
  35. package/tests/liquidsoap/doc/content/liq/harbor-simple.liq +1 -1
  36. package/tests/liquidsoap/doc/content/liq/radiopi.liq +10 -9
  37. package/tests/liquidsoap/doc/content/liq/request.dynamic.liq +1 -1
  38. package/tests/liquidsoap/doc/content/migrating.md +25 -3
  39. package/tests/liquidsoap/doc/content/playlist_parsers.md +46 -1
  40. package/tests/liquidsoap/doc/content/script_loading.md +3 -0
  41. package/tests/liquidsoap/doc/content/xml.md +160 -0
  42. package/tests/liquidsoap/doc/dune.inc +129 -0
  43. package/tests/liquidsoap/dune-project +29 -49
  44. package/tests/liquidsoap/liquidsoap +1 -1
  45. package/tests/liquidsoap/{liquidsoap-js.opam → opam/liquidsoap-js.opam} +3 -2
  46. package/tests/liquidsoap/{liquidsoap-lang.opam → opam/liquidsoap-lang.opam} +4 -3
  47. package/tests/liquidsoap/{liquidsoap-mode.opam → opam/liquidsoap-mode.opam} +3 -2
  48. package/tests/liquidsoap/{liquidsoap-core.opam → opam/liquidsoap.opam} +46 -17
  49. package/tests/liquidsoap/{prometheus-liquidsoap.opam → opam/prometheus-liquidsoap.opam} +2 -1
  50. package/tests/liquidsoap/{sdl-liquidsoap.opam → opam/sdl-liquidsoap.opam} +2 -1
  51. package/tests/liquidsoap/{tls-liquidsoap.opam → opam/tls-liquidsoap.opam} +2 -1
  52. package/tests/liquidsoap/src/bin/dune +1 -1
  53. package/tests/liquidsoap/src/config/xmlplaylist_option.disabled.ml +2 -0
  54. package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_decoder.ml +22 -22
  55. package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_encoder.ml +4 -4
  56. package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_filters.ml +37 -41
  57. package/tests/liquidsoap/src/core/builtins/builtins_files.ml +3 -1
  58. package/tests/liquidsoap/src/core/builtins/builtins_optionals.ml +0 -1
  59. package/tests/liquidsoap/src/core/builtins/builtins_process.ml +15 -7
  60. package/tests/liquidsoap/src/core/builtins/builtins_resolvers.ml +16 -0
  61. package/tests/liquidsoap/src/core/builtins/builtins_socket.ml +7 -5
  62. package/tests/liquidsoap/src/core/builtins/builtins_source.ml +3 -3
  63. package/tests/liquidsoap/src/core/builtins/builtins_srt.ml +84 -8
  64. package/tests/liquidsoap/src/core/builtins/builtins_string_extra.ml +13 -0
  65. package/tests/liquidsoap/src/core/builtins/builtins_sys.ml +6 -6
  66. package/tests/liquidsoap/src/core/builtins/builtins_thread.ml +2 -2
  67. package/tests/liquidsoap/src/core/builtins/builtins_time.ml +5 -3
  68. package/tests/liquidsoap/src/core/builtins/builtins_tls.ml +1 -1
  69. package/tests/liquidsoap/src/core/clock.ml +105 -38
  70. package/tests/liquidsoap/src/core/clock.mli +1 -0
  71. package/tests/liquidsoap/src/core/clock_base.ml +2 -2
  72. package/tests/liquidsoap/src/core/conversions/stereo.ml +6 -8
  73. package/tests/liquidsoap/src/core/converters/audio_converter.mli +5 -5
  74. package/tests/liquidsoap/src/core/converters/video_converter.ml +2 -2
  75. package/tests/liquidsoap/src/core/converters/video_converter.mli +3 -3
  76. package/tests/liquidsoap/src/core/decoder/decoder.ml +14 -17
  77. package/tests/liquidsoap/src/core/decoder/decoder.mli +11 -11
  78. package/tests/liquidsoap/src/core/decoder/decoder_utils.ml +12 -13
  79. package/tests/liquidsoap/src/core/decoder/decoder_utils.mli +2 -3
  80. package/tests/liquidsoap/src/core/decoder/external_decoder.ml +9 -13
  81. package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder.ml +57 -53
  82. package/tests/liquidsoap/src/core/decoder/ffmpeg_raw_decoder.ml +28 -9
  83. package/tests/liquidsoap/src/core/decoder/flac_metadata_plug.ml +15 -2
  84. package/tests/liquidsoap/src/core/decoder/image_decoder.ml +33 -19
  85. package/tests/liquidsoap/src/core/decoder/liq_flac_decoder.ml +22 -23
  86. package/tests/liquidsoap/src/core/decoder/liq_ogg_decoder.ml +5 -5
  87. package/tests/liquidsoap/src/core/decoder/mad_decoder.ml +2 -2
  88. package/tests/liquidsoap/src/core/decoder/midi_decoder.ml +1 -2
  89. package/tests/liquidsoap/src/core/decoder/ogg_flac_duration.ml +3 -11
  90. package/tests/liquidsoap/src/core/decoder/ogg_metadata_plug.ml +15 -2
  91. package/tests/liquidsoap/src/core/decoder/raw_audio_decoder.ml +8 -7
  92. package/tests/liquidsoap/src/core/decoder/wav_aiff_decoder.ml +3 -3
  93. package/tests/liquidsoap/src/core/dune +2 -15
  94. package/tests/liquidsoap/src/core/encoder/encoder.ml +18 -23
  95. package/tests/liquidsoap/src/core/encoder/encoder.mli +12 -17
  96. package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder.ml +13 -27
  97. package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder_common.ml +1 -1
  98. package/tests/liquidsoap/src/core/encoder/encoders/flac_encoder.ml +3 -4
  99. package/tests/liquidsoap/src/core/encoder/encoders/ndi_encoder.ml +2 -1
  100. package/tests/liquidsoap/src/core/encoder/encoders/ogg_encoder.ml +1 -2
  101. package/tests/liquidsoap/src/core/encoder/lang/lang_external_encoder.ml +2 -2
  102. package/tests/liquidsoap/src/core/encoder/lang/lang_fdkaac.ml +1 -1
  103. package/tests/liquidsoap/src/core/encoder/lang/lang_ffmpeg.ml +46 -39
  104. package/tests/liquidsoap/src/core/encoder/lang/lang_flac.ml +1 -1
  105. package/tests/liquidsoap/src/core/encoder/lang/lang_shine.ml +2 -2
  106. package/tests/liquidsoap/src/core/encoder/lang/lang_vorbis.ml +1 -1
  107. package/tests/liquidsoap/src/core/encoder/lang/lang_wav.ml +1 -1
  108. package/tests/liquidsoap/src/core/file_watcher.inotify.ml +8 -13
  109. package/tests/liquidsoap/src/core/harbor/harbor.ml +22 -24
  110. package/tests/liquidsoap/src/core/io/ffmpeg_filter_io.ml +4 -3
  111. package/tests/liquidsoap/src/core/io/oss_io.ml +3 -4
  112. package/tests/liquidsoap/src/core/io/portaudio_io.ml +1 -1
  113. package/tests/liquidsoap/src/core/io/pulseaudio_io.ml +3 -4
  114. package/tests/liquidsoap/src/core/io/srt_io.ml +316 -120
  115. package/tests/liquidsoap/src/core/io/udp_io.ml +14 -12
  116. package/tests/liquidsoap/src/core/lang.mli +10 -12
  117. package/tests/liquidsoap/src/core/lang_source.ml +25 -39
  118. package/tests/liquidsoap/src/core/lang_string.ml +30 -0
  119. package/tests/liquidsoap/src/core/lang_string.mli +3 -0
  120. package/tests/liquidsoap/src/core/ogg_formats/ogg_flac_encoder.ml +6 -6
  121. package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.ml +17 -27
  122. package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.mli +44 -53
  123. package/tests/liquidsoap/src/core/ogg_formats/opus_encoder.ml +1 -1
  124. package/tests/liquidsoap/src/core/ogg_formats/vorbis_encoder.ml +1 -2
  125. package/tests/liquidsoap/src/core/operators/add.ml +2 -2
  126. package/tests/liquidsoap/src/core/operators/cross.ml +2 -2
  127. package/tests/liquidsoap/src/core/operators/delay.ml +23 -6
  128. package/tests/liquidsoap/src/core/operators/dtmf.ml +3 -2
  129. package/tests/liquidsoap/src/core/operators/dyn_op.ml +2 -2
  130. package/tests/liquidsoap/src/core/operators/fir_filter.ml +2 -1
  131. package/tests/liquidsoap/src/core/operators/iir_filter.ml +1 -1
  132. package/tests/liquidsoap/src/core/operators/insert_metadata.ml +1 -1
  133. package/tests/liquidsoap/src/core/operators/lilv_op.ml +1 -1
  134. package/tests/liquidsoap/src/core/operators/lufs.ml +136 -89
  135. package/tests/liquidsoap/src/core/operators/lufs_c.c +105 -0
  136. package/tests/liquidsoap/src/core/operators/map_metadata.ml +33 -9
  137. package/tests/liquidsoap/src/core/operators/max_duration.ml +3 -4
  138. package/tests/liquidsoap/src/core/operators/muxer.ml +2 -1
  139. package/tests/liquidsoap/src/core/operators/noblank.ml +6 -6
  140. package/tests/liquidsoap/src/core/operators/sequence.ml +5 -5
  141. package/tests/liquidsoap/src/core/operators/switch.ml +10 -11
  142. package/tests/liquidsoap/src/core/operators/time_warp.ml +14 -11
  143. package/tests/liquidsoap/src/core/operators/video_fade.ml +2 -3
  144. package/tests/liquidsoap/src/core/outputs/ao_out.ml +1 -1
  145. package/tests/liquidsoap/src/core/outputs/bjack_out.ml +1 -1
  146. package/tests/liquidsoap/src/core/outputs/graphics_out.ml +6 -2
  147. package/tests/liquidsoap/src/core/outputs/harbor_output.ml +12 -10
  148. package/tests/liquidsoap/src/core/outputs/hls_output.ml +19 -14
  149. package/tests/liquidsoap/src/core/outputs/icecast2.ml +85 -52
  150. package/tests/liquidsoap/src/core/outputs/ndi_out.ml +1 -1
  151. package/tests/liquidsoap/src/core/outputs/output.ml +8 -9
  152. package/tests/liquidsoap/src/core/outputs/output.mli +61 -61
  153. package/tests/liquidsoap/src/core/outputs/pipe_output.ml +8 -6
  154. package/tests/liquidsoap/src/core/outputs/sdl_out.ml +5 -2
  155. package/tests/liquidsoap/src/core/playlist_parser.ml +6 -7
  156. package/tests/liquidsoap/src/core/playlists/playlist_basic.ml +0 -180
  157. package/tests/liquidsoap/src/core/protocols/annotate.ml +3 -3
  158. package/tests/liquidsoap/src/core/request.ml +16 -17
  159. package/tests/liquidsoap/src/core/request.mli +27 -28
  160. package/tests/liquidsoap/src/core/shebang.ml +3 -2
  161. package/tests/liquidsoap/src/core/source.ml +104 -63
  162. package/tests/liquidsoap/src/core/source.mli +249 -247
  163. package/tests/liquidsoap/src/core/sources/generated.ml +2 -2
  164. package/tests/liquidsoap/src/core/sources/request_dynamic.ml +2 -2
  165. package/tests/liquidsoap/src/core/sources/synthesized.ml +2 -2
  166. package/tests/liquidsoap/src/core/stream/aFrame.mli +7 -9
  167. package/tests/liquidsoap/src/core/stream/content.mli +4 -13
  168. package/tests/liquidsoap/src/core/stream/content_base.ml +2 -19
  169. package/tests/liquidsoap/src/core/stream/content_video.ml +9 -10
  170. package/tests/liquidsoap/src/core/stream/ffmpeg_copy_content.ml +19 -15
  171. package/tests/liquidsoap/src/core/stream/ffmpeg_raw_content.ml +26 -9
  172. package/tests/liquidsoap/src/core/stream/frame.ml +4 -4
  173. package/tests/liquidsoap/src/core/stream/frame.mli +13 -15
  174. package/tests/liquidsoap/src/core/stream/frame_base.ml +1 -2
  175. package/tests/liquidsoap/src/core/stream/frame_settings.ml +14 -14
  176. package/tests/liquidsoap/src/core/stream/generator.mli +14 -17
  177. package/tests/liquidsoap/src/core/stream/mFrame.mli +2 -2
  178. package/tests/liquidsoap/src/core/tools/charset.ml +28 -18
  179. package/tests/liquidsoap/src/core/tools/charset_base.ml +5 -0
  180. package/tests/liquidsoap/src/core/tools/child_support.ml +2 -2
  181. package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.ml +139 -0
  182. package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.mli +22 -0
  183. package/tests/liquidsoap/src/core/tools/ffmpeg_utils.ml +2 -1
  184. package/tests/liquidsoap/src/core/tools/lifecycle.mli +4 -4
  185. package/tests/liquidsoap/src/core/tools/liq_http.ml +44 -19
  186. package/tests/liquidsoap/src/core/tools/liq_http.mli +1 -1
  187. package/tests/liquidsoap/src/core/tools/log.ml +3 -8
  188. package/tests/liquidsoap/src/core/tools/log.mli +1 -1
  189. package/tests/liquidsoap/src/core/tools/mutex_utils.ml +1 -1
  190. package/tests/liquidsoap/src/core/tools/pool.ml +2 -2
  191. package/tests/liquidsoap/src/core/tools/process_handler.mli +30 -27
  192. package/tests/liquidsoap/src/core/tools/producer_consumer.ml +10 -9
  193. package/tests/liquidsoap/src/{lang → core/tools}/queues.ml +58 -64
  194. package/tests/liquidsoap/src/{lang → core/tools}/queues.mli +10 -0
  195. package/tests/liquidsoap/src/core/tools/sdl_utils.ml +2 -0
  196. package/tests/liquidsoap/src/core/tools/server.mli +8 -8
  197. package/tests/liquidsoap/src/core/tools/sha1.ml +2 -1
  198. package/tests/liquidsoap/src/core/tools/start_stop.ml +2 -1
  199. package/tests/liquidsoap/src/core/tools/strings.mli +5 -4
  200. package/tests/liquidsoap/src/core/tools/tutils.ml +7 -7
  201. package/tests/liquidsoap/src/core/tools/tutils.mli +14 -18
  202. package/tests/liquidsoap/src/core/tools/unix_c.c +16 -5
  203. package/tests/liquidsoap/src/core/tools/utils.ml +83 -25
  204. package/tests/liquidsoap/src/core/tools/wav_aiff.ml +3 -3
  205. package/tests/liquidsoap/src/core/tools/wav_aiff.mli +7 -7
  206. package/tests/liquidsoap/src/core/types/format_type.ml +6 -6
  207. package/tests/liquidsoap/src/js/index.html +1 -154
  208. package/tests/liquidsoap/src/js/interactive_js.ml +7 -3
  209. package/tests/liquidsoap/src/js/stdlib_js.liq +6 -0
  210. package/tests/liquidsoap/src/lang/builtins_lang.ml +8 -0
  211. package/tests/liquidsoap/src/lang/builtins_null.ml +1 -1
  212. package/tests/liquidsoap/src/lang/builtins_string.ml +2 -11
  213. package/tests/liquidsoap/src/lang/builtins_xml.ml +204 -0
  214. package/tests/liquidsoap/src/lang/cache.ml +7 -2
  215. package/tests/liquidsoap/src/lang/dune +5 -2
  216. package/tests/liquidsoap/src/lang/flags.ml +2 -2
  217. package/tests/liquidsoap/src/lang/lang.mli +10 -12
  218. package/tests/liquidsoap/src/lang/lang_core.ml +24 -24
  219. package/tests/liquidsoap/src/lang/lang_eval.ml +1 -1
  220. package/tests/liquidsoap/src/lang/lang_string.ml +7 -13
  221. package/tests/liquidsoap/src/lang/lang_string.mli +0 -1
  222. package/tests/liquidsoap/src/lang/lexer.ml +3 -0
  223. package/tests/liquidsoap/src/lang/parser.mly +7 -4
  224. package/tests/liquidsoap/src/lang/parser_helper.ml +9 -77
  225. package/tests/liquidsoap/src/lang/parser_helper.mli +1 -1
  226. package/tests/liquidsoap/src/lang/pos.ml +4 -4
  227. package/tests/liquidsoap/src/lang/pos.mli +55 -0
  228. package/tests/liquidsoap/src/lang/preprocessor.ml +12 -5
  229. package/tests/liquidsoap/src/lang/repr.ml +6 -6
  230. package/tests/liquidsoap/src/lang/runtime.ml +55 -48
  231. package/tests/liquidsoap/src/lang/runtime.mli +8 -3
  232. package/tests/liquidsoap/src/lang/term/parsed_term.ml +33 -33
  233. package/tests/liquidsoap/src/lang/term/term_base.ml +14 -10
  234. package/tests/liquidsoap/src/lang/term/term_preprocessor.ml +28 -1
  235. package/tests/liquidsoap/src/lang/term/term_reducer.ml +244 -132
  236. package/tests/liquidsoap/src/lang/term/term_reducer.mli +10 -2
  237. package/tests/liquidsoap/src/lang/term/term_stdlib.ml +14 -13
  238. package/tests/liquidsoap/src/lang/term.mli +3 -1
  239. package/tests/liquidsoap/src/lang/typechecking.ml +16 -16
  240. package/tests/liquidsoap/src/lang/typechecking.mli +5 -1
  241. package/tests/liquidsoap/src/lang/types/type_base.ml +16 -17
  242. package/tests/liquidsoap/src/lang/typing.ml +13 -12
  243. package/tests/liquidsoap/src/lang/typing.mli +2 -1
  244. package/tests/liquidsoap/src/lang/value.ml +20 -14
  245. package/tests/liquidsoap/src/libs/audio.liq +53 -18
  246. package/tests/liquidsoap/src/libs/autocue.liq +8 -8
  247. package/tests/liquidsoap/src/libs/clock.liq +3 -3
  248. package/tests/liquidsoap/src/libs/dune +2 -2
  249. package/tests/liquidsoap/src/libs/extra/audio.liq +4 -4
  250. package/tests/liquidsoap/src/libs/extra/audioscrobbler.liq +487 -0
  251. package/tests/liquidsoap/src/libs/extra/deprecations.liq +11 -11
  252. package/tests/liquidsoap/src/libs/extra/externals.liq +9 -9
  253. package/tests/liquidsoap/src/libs/extra/fades.liq +2 -2
  254. package/tests/liquidsoap/src/libs/extra/file.liq +1 -1
  255. package/tests/liquidsoap/src/libs/extra/http.liq +4 -4
  256. package/tests/liquidsoap/src/libs/extra/interactive.liq +1 -1
  257. package/tests/liquidsoap/src/libs/extra/metadata.liq +3 -3
  258. package/tests/liquidsoap/src/libs/extra/native.liq +6 -6
  259. package/tests/liquidsoap/src/libs/extra/server.liq +2 -2
  260. package/tests/liquidsoap/src/libs/extra/source.liq +10 -10
  261. package/tests/liquidsoap/src/libs/extra/spinitron.liq +11 -11
  262. package/tests/liquidsoap/src/libs/extra/telnet.liq +51 -0
  263. package/tests/liquidsoap/src/libs/extra/video.liq +2 -2
  264. package/tests/liquidsoap/src/libs/fades.liq +70 -57
  265. package/tests/liquidsoap/src/libs/ffmpeg.liq +50 -33
  266. package/tests/liquidsoap/src/libs/file.liq +8 -8
  267. package/tests/liquidsoap/src/libs/hls.liq +5 -5
  268. package/tests/liquidsoap/src/libs/http.liq +64 -37
  269. package/tests/liquidsoap/src/libs/icecast.liq +1 -1
  270. package/tests/liquidsoap/src/libs/io.liq +6 -6
  271. package/tests/liquidsoap/src/libs/medialib.liq +46 -45
  272. package/tests/liquidsoap/src/libs/metadata.liq +4 -4
  273. package/tests/liquidsoap/src/libs/null.liq +3 -3
  274. package/tests/liquidsoap/src/libs/playlist.liq +547 -22
  275. package/tests/liquidsoap/src/libs/protocols.liq +14 -14
  276. package/tests/liquidsoap/src/libs/replaygain.liq +11 -11
  277. package/tests/liquidsoap/src/libs/request.liq +27 -29
  278. package/tests/liquidsoap/src/libs/runtime.liq +2 -0
  279. package/tests/liquidsoap/src/libs/source.liq +15 -15
  280. package/tests/liquidsoap/src/libs/sqlite.liq +1 -1
  281. package/tests/liquidsoap/src/libs/stdlib.liq +1 -1
  282. package/tests/liquidsoap/src/libs/string.liq +6 -6
  283. package/tests/liquidsoap/src/libs/switches.liq +3 -3
  284. package/tests/liquidsoap/src/libs/thread.liq +3 -9
  285. package/tests/liquidsoap/src/libs/tracks.liq +23 -9
  286. package/tests/liquidsoap/src/libs/video.liq +32 -32
  287. package/tests/liquidsoap/src/modules/dtools/README.md +58 -0
  288. package/tests/liquidsoap/src/modules/dtools/dtools.ml +19 -0
  289. package/tests/liquidsoap/src/modules/dtools/dtools.mli +284 -0
  290. package/tests/liquidsoap/src/modules/dtools/dtools_impl.ml +860 -0
  291. package/tests/liquidsoap/src/modules/dtools/dtools_syslog.impl.ml +45 -0
  292. package/tests/liquidsoap/src/modules/dtools/dtools_syslog.noop.ml +1 -0
  293. package/tests/liquidsoap/src/modules/dtools/dune +12 -0
  294. package/tests/liquidsoap/src/modules/duppy/.merlin +4 -0
  295. package/tests/liquidsoap/src/modules/duppy/README.md +47 -0
  296. package/tests/liquidsoap/src/modules/duppy/dune +7 -0
  297. package/tests/liquidsoap/src/modules/duppy/duppy.ml +1097 -0
  298. package/tests/liquidsoap/src/modules/duppy/duppy.mli +494 -0
  299. package/tests/liquidsoap/src/modules/duppy/duppy_stubs.c +176 -0
  300. package/tests/liquidsoap/src/modules/duppy/examples/dune +9 -0
  301. package/tests/liquidsoap/src/modules/duppy/examples/http.ml +560 -0
  302. package/tests/liquidsoap/src/modules/duppy/examples/index.html +1 -0
  303. package/tests/liquidsoap/src/modules/duppy/examples/telnet.ml +150 -0
  304. package/tests/liquidsoap/src/modules/xmlplaylist/dune +5 -0
  305. package/tests/liquidsoap/src/modules/xmlplaylist/xmlplaylist.ml +185 -0
  306. package/tests/liquidsoap/src/modules/xmlplaylist/xmlplaylist.mli +56 -0
  307. package/tests/liquidsoap/src/ndi/ndi.mli +2 -3
  308. package/tests/liquidsoap/src/runtime/build_config.ml +0 -1
  309. package/tests/liquidsoap/src/runtime/main.ml +4 -23
  310. package/tests/liquidsoap/src/stereotool/stereotool.mli +3 -3
  311. package/tests/liquidsoap/src/tooling/parsed_json.ml +6 -4
  312. package/tests/liquidsoap/tests/core/content_test.ml +2 -39
  313. package/tests/liquidsoap/tests/core/dune +13 -0
  314. package/tests/liquidsoap/tests/core/dune.inc +1 -1
  315. package/tests/liquidsoap/tests/core/gen_dune.ml +4 -1
  316. package/tests/liquidsoap/tests/core/json_test.ml +10 -0
  317. package/tests/liquidsoap/tests/core/more_types.ml +32 -28
  318. package/tests/liquidsoap/tests/core/output_encoded_test.ml +2 -0
  319. package/tests/liquidsoap/tests/core/string_test.ml +4 -0
  320. package/tests/liquidsoap/tests/core/types.ml +1 -1
  321. package/tests/liquidsoap/tests/harbor/http.liq +1 -1
  322. package/tests/liquidsoap/tests/harbor/http2.liq +1 -1
  323. package/tests/liquidsoap/tests/language/cue_test.liq +3993 -0
  324. package/tests/liquidsoap/tests/language/dune.inc +24 -0
  325. package/tests/liquidsoap/tests/language/error.liq +1 -1
  326. package/tests/liquidsoap/tests/language/json.liq +11 -11
  327. package/tests/liquidsoap/tests/language/list.liq +1 -1
  328. package/tests/liquidsoap/tests/language/metadata.liq +1 -1
  329. package/tests/liquidsoap/tests/language/null.liq +9 -9
  330. package/tests/liquidsoap/tests/language/record.liq +23 -23
  331. package/tests/liquidsoap/tests/language/replaygain.liq +8 -8
  332. package/tests/liquidsoap/tests/language/sqlite.liq +1 -1
  333. package/tests/liquidsoap/tests/language/string.liq +1 -1
  334. package/tests/liquidsoap/tests/language/type_errors.liq +2 -2
  335. package/tests/liquidsoap/tests/language/typing.liq +2 -2
  336. package/tests/liquidsoap/tests/language/various.liq +1 -0
  337. package/tests/liquidsoap/tests/language/xml_test.liq +132 -0
  338. package/tests/liquidsoap/tests/media/dune +74 -0
  339. package/tests/liquidsoap/tests/media/dune.inc +63 -0
  340. package/tests/liquidsoap/tests/media/ffmpeg_add_text.liq +42 -56
  341. package/tests/liquidsoap/tests/media/ffmpeg_copy_concat.liq +5 -2
  342. package/tests/liquidsoap/tests/media/ffmpeg_distributed_hls.liq +2 -4
  343. package/tests/liquidsoap/tests/media/ffmpeg_filter_changing_rate.liq +1 -1
  344. package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_audio.liq +1 -5
  345. package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_video.liq +1 -3
  346. package/tests/liquidsoap/tests/media/ffmpeg_raw_and_encode_decoder.liq +1 -3
  347. package/tests/liquidsoap/tests/media/ffmpeg_raw_hls.liq +2 -4
  348. package/tests/liquidsoap/tests/media/ffmpeg_raw_implicit_conversion.liq +63 -0
  349. package/tests/liquidsoap/tests/media/gen_dune.ml +1 -0
  350. package/tests/liquidsoap/tests/media/image_decoder_duration.liq +15 -0
  351. package/tests/liquidsoap/tests/media/lufs_integrated.liq +17 -0
  352. package/tests/liquidsoap/tests/regression/AC5109.liq +2 -2
  353. package/tests/liquidsoap/tests/regression/GH1129.liq +3 -3
  354. package/tests/liquidsoap/tests/regression/GH1279.liq +2 -2
  355. package/tests/liquidsoap/tests/regression/GH1327.liq +3 -3
  356. package/tests/liquidsoap/tests/regression/GH2585.liq +0 -2
  357. package/tests/liquidsoap/tests/regression/GH2756-2.liq +3 -3
  358. package/tests/liquidsoap/tests/regression/GH2756.liq +2 -2
  359. package/tests/liquidsoap/tests/regression/GH3134.liq +2 -2
  360. package/tests/liquidsoap/tests/regression/GH3303.liq +2 -2
  361. package/tests/liquidsoap/tests/regression/GH4163.liq +14 -3
  362. package/tests/liquidsoap/tests/regression/GH4281-2.liq +29 -0
  363. package/tests/liquidsoap/tests/regression/GH4281.liq +29 -0
  364. package/tests/liquidsoap/tests/regression/GH4395.liq +27 -0
  365. package/tests/liquidsoap/tests/regression/LS354-1.liq +1 -1
  366. package/tests/liquidsoap/tests/regression/LS354-2.liq +1 -1
  367. package/tests/liquidsoap/tests/regression/append-merge.liq +3 -1
  368. package/tests/liquidsoap/tests/regression/dune.inc +64 -0
  369. package/tests/liquidsoap/tests/regression/fallible_ogg.liq +9 -0
  370. package/tests/liquidsoap/tests/regression/init-error.liq +2 -0
  371. package/tests/liquidsoap/tests/regression/seek_track_map.liq +1 -1
  372. package/tests/liquidsoap/tests/regression/source_dynamic.liq +2 -2
  373. package/tests/liquidsoap/tests/run_test.ml +53 -60
  374. package/tests/liquidsoap/tests/streams/cross-override-end.liq +9 -2
  375. package/tests/liquidsoap/tests/streams/cross-override-start.liq +9 -2
  376. package/tests/liquidsoap/tests/streams/cross-override.liq +9 -2
  377. package/tests/liquidsoap/tests/streams/cross-persist-end-override.liq +9 -2
  378. package/tests/liquidsoap/tests/streams/cross-persist-override.liq +9 -2
  379. package/tests/liquidsoap/tests/streams/cross-persist-start-override.liq +9 -2
  380. package/tests/liquidsoap/tests/streams/cross.liq +8 -2
  381. package/tests/liquidsoap/tests/streams/crossfade-plot.liq +11 -8
  382. package/tests/liquidsoap/tests/streams/crossfade-plot.new.txt +148 -248
  383. package/tests/liquidsoap/tests/streams/crossfade-plot.old.txt +50 -150
  384. package/tests/liquidsoap/tests/streams/crossfade.liq +8 -2
  385. package/tests/liquidsoap/tests/streams/ctype2.liq +1 -1
  386. package/tests/liquidsoap/tests/streams/dune.inc +31 -0
  387. package/tests/liquidsoap/tests/streams/fades-overrides.liq +9 -2
  388. package/tests/liquidsoap/tests/streams/fades-persistent-override.liq +9 -2
  389. package/tests/liquidsoap/tests/streams/harbor_metadata_3.liq +1 -1
  390. package/tests/liquidsoap/tests/streams/hls_id3v2.liq +11 -7
  391. package/tests/liquidsoap/tests/streams/icecast_last_meta.liq +47 -0
  392. package/tests/liquidsoap/tests/streams/icecast_ssl.liq +3 -0
  393. package/tests/liquidsoap/tests/streams/icecast_ssl_tls.liq +3 -3
  394. package/tests/liquidsoap/tests/streams/icecast_tls.liq +1 -0
  395. package/tests/liquidsoap/tests/streams/icecast_tls_ssl.liq +5 -0
  396. package/tests/liquidsoap/tests/streams/no-cue-cut.liq +2 -2
  397. package/tests/liquidsoap/tests/streams/random.liq +2 -2
  398. package/tests/liquidsoap/tests/streams/replaygain.liq +10 -10
  399. package/tests/liquidsoap/tests/streams/rotate.liq +6 -1
  400. package/tests/liquidsoap/tests/streams/say.liq +2 -2
  401. package/tests/liquidsoap/tests/streams/srt_listen_callback.liq +1 -0
  402. package/tests/liquidsoap/tests/streams/srt_multiple_outputs.liq +1 -0
  403. package/tests/liquidsoap/tests/streams/srt_passphrase.liq +1 -0
  404. package/tests/liquidsoap/tests/streams/srt_raw_pcm.liq +1 -0
  405. package/tests/liquidsoap/tests/test.liq +4 -5
  406. package/tests/liquidsoap/.github/docker/Dockerfile.production +0 -37
  407. package/tests/liquidsoap/.github/docker/Dockerfile.production-alpine +0 -18
  408. package/tests/liquidsoap/.github/opam/packages/metadata/metadata.0.3.0/opam +0 -33
  409. package/tests/liquidsoap/.github/scripts/build-docker-alpine.sh +0 -31
  410. package/tests/liquidsoap/.github/scripts/build-docker.sh +0 -35
  411. package/tests/liquidsoap/liquidsoap-libs-extra.opam +0 -32
  412. package/tests/liquidsoap/liquidsoap-libs.opam +0 -31
  413. package/tests/liquidsoap/liquidsoap.opam +0 -63
  414. package/tests/liquidsoap/src/core/builtins/builtins_lastfm.ml +0 -110
  415. package/tests/liquidsoap/src/core/tools/liqfm.ml +0 -244
  416. package/tests/liquidsoap/src/libs/extra/lastfm.liq +0 -185
  417. /package/tests/liquidsoap/.github/docker/{Dockerfile.website → website.dockerfile} +0 -0
  418. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-av-windows/{ffmpeg-av-windows.1.2.0 → ffmpeg-av-windows.1.2.5}/opam +0 -0
  419. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avcodec-windows/{ffmpeg-avcodec-windows.1.2.0 → ffmpeg-avcodec-windows.1.2.5}/opam +0 -0
  420. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avdevice-windows/{ffmpeg-avdevice-windows.1.2.0 → ffmpeg-avdevice-windows.1.2.5}/opam +0 -0
  421. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avfilter-windows/{ffmpeg-avfilter-windows.1.2.0 → ffmpeg-avfilter-windows.1.2.5}/opam +0 -0
  422. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avutil-windows/{ffmpeg-avutil-windows.1.2.0 → ffmpeg-avutil-windows.1.2.5}/opam +0 -0
  423. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-swresample-windows/{ffmpeg-swresample-windows.1.2.0 → ffmpeg-swresample-windows.1.2.5}/opam +0 -0
  424. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-swscale-windows/{ffmpeg-swscale-windows.1.2.0 → ffmpeg-swscale-windows.1.2.5}/opam +0 -0
  425. /package/tests/liquidsoap/.github/opam/packages/ffmpeg-windows/{ffmpeg-windows.1.2.0 → ffmpeg-windows.1.2.5}/opam +0 -0
  426. /package/tests/liquidsoap/{liquidsoap-mode.opam.template → opam/liquidsoap-mode.opam.template} +0 -0
  427. /package/tests/liquidsoap/{liquidsoap.opam.template → opam/liquidsoap.opam.template} +0 -0
@@ -1,4 +1,4 @@
1
- version=0.25.1
1
+ version=0.27.0
2
2
  profile = conventional
3
3
  break-separators = after
4
4
  space-around-lists = false
@@ -26,7 +26,7 @@ repos:
26
26
  exclude: dune.inc
27
27
 
28
28
  - repo: https://github.com/savonet/pre-commit-liquidsoap
29
- rev: c5eab8dceed09fa985b3cf0ba3fe7f398fc00c04
29
+ rev: 056cf2da9d985e1915a069679f126a461206504a
30
30
  hooks:
31
31
  - id: liquidsoap-prettier
32
32
 
@@ -41,7 +41,7 @@ repos:
41
41
  hooks:
42
42
  - id: codespell
43
43
  args: [-w, --ignore-words=.codespellignore]
44
- exclude: ^doc/orig/fosdem2020
44
+ exclude: ^(doc/orig/fosdem2020|tests/language/cue_test.liq)
45
45
 
46
46
  - repo: local
47
47
  hooks:
@@ -1,26 +1,135 @@
1
- # 2.3.1 (unreleased)
1
+ 2.3.4 (unreleased)
2
2
 
3
3
  New:
4
4
 
5
+ - Added `liquidsoap.script.path` that contains the path to the current
6
+ script's file, if available.
7
+ - `null` can now be used directly without having to call `null()`.
8
+ `null(value)` calls are still valid and can be used to create
9
+ non-null values with nullable types. Calls to `null()` are marked
10
+ as deprecated (#4516)
11
+
12
+ Changed:
13
+
14
+ - Improved source and clock naming (#4497)
15
+
16
+ Fixed:
17
+
18
+ - Don't mark source as ready until their clock has started. (#4496)
19
+
20
+ ---
21
+
22
+ # 2.3.3 (2025-05-16)
23
+
24
+ New:
25
+
26
+ - `input.srt`: add `ipv6only` to allow to bind only to ipv6 addresses.
27
+ Set it to `true` when `bind_address` is ipv6.
28
+ - Allow HLS segment names to contain sub-directories.
29
+ - Implicitly convert ffmpeg raw audio data, making it much more practical
30
+ to write scripts using the raw ffmpeg format (#4478)
31
+
32
+ Changed:
33
+
34
+ - Made `defer` more user-friendly by operating directly on generic `source(audio=pcm('a))`
35
+ sources. Renamed old `defer` to `defer.pcm_s16`
36
+ - `dtools`, `duppy` and `xmlplaylist` have been moved into the liquidsoap code
37
+ base and will no longer be developed or required as stand-alone packages (#12582)
38
+ - Changed default value of `metadata.map` `strip` argument to `true` and `insert_missing`
39
+ to `false` Added `settings.metadata.map.strip` and `settings.metadata.map.insert_missing`
40
+ configuration keys to revert to previous defaults. (#4447)
41
+ - Made crossfade metadata override dynamic. Some overridden parameters where never effectively
42
+ applied if they were passed after the start of the crossfade. This should make crossfade behave
43
+ as expected but may also change some crossfade computations (#4492)
44
+
45
+ Fixed:
46
+
47
+ - Do not send empty metadata to shoutcast servers (#4408)
48
+ - Automatically close file descriptor opened via scripted values with a log message
49
+ warning of file descriptor leaks (#4481)
50
+ - Fixed segfault in new `lufs` C code introduced with release `2.3.2` (#4490)
51
+
52
+ ---
53
+
54
+ # 2.3.2 (2025-04-01) 🃏
55
+
56
+ New:
57
+
58
+ - Added support for multiple metadata fields in
59
+ ogg and flac metadata
60
+ - Added support for track-level REM ALBUM in cue file parsing
61
+ (#4381)
62
+
63
+ Changed:
64
+
65
+ - Added `"pic"` to list of excluded metadata for automatic charset conversion.
66
+ - Added `settings.charset.max_string_length` setting to prevent automatic charset
67
+ conversions of strings over that length.
68
+
69
+ Fixed:
70
+
71
+ - Optimized CPU usage (#4369, #4370)
72
+ - Fixed empty initial HLS segment (#4401)
73
+ - Fixed support for `duration` metadata in image decoder (#4397)
74
+ - Fixed cue-out bug in cue file parsing (#4381)
75
+ - Bring back parse error location. (#4362)
76
+ - Fixed SRT encoding when restarting a stream with reverse data flow
77
+ (#4399)
78
+ - Make sure that audioscrobbler `on_track`/`on_end` operations are
79
+ sent to a asynchronous task queue.
80
+ - Fixed resources accumulation leading to catchup when using `crossfade`
81
+ (#4419, #4410)
82
+ - Fixed source reselection logic issue that was causing crashes when using
83
+ `switch` and `fallback` operators (#4420)
84
+ - Fixed self-sync logic with pulse audio outputs (#4429)
85
+ - Fixed script caching on windows.
86
+
87
+ ---
88
+
89
+ # 2.3.1 (2025-02-05)
90
+
91
+ New:
92
+
93
+ - Added support for address resolution preference in SRT (#4317)
94
+ - Added global address resolution settings for SRT and Icecast (#4317)
95
+ - Added support for parsing and rendering XML natively (#4252)
5
96
  - Added support for `WAVE_FORMAT_EXTENSIBLE` to the internal
6
97
  wav dexcoder.
7
98
  - Added optional `buffer_size` parameter to `input.alsa` and
8
99
  `output.alsa` (#4243)
100
+ - Reimplemented audioscrobbler support natively using the more
101
+ recent protocol (#4250)
102
+ - Added boolean getter to disable/enable normalization
103
+ (#4308)
9
104
 
10
105
  Changed:
11
106
 
12
107
  - Make alsa I/O work with buffer size different than
13
108
  liquidsoap internal frame (#4236)
109
+ - Reimplemented CUE file parser in native liquidsoap script,
110
+ added support for multiple files and EAC non-compliant extension
111
+ (#1373, #4330)
14
112
  - Make `"song"` metadata mapping to `"title"` metadata in
15
- `input.harbord` disabled when either `"artist"` or `"title"`
113
+ `input.harbor` disabled when either `"artist"` or `"title"`
16
114
  is also passed. Add a configuration key to disable this mechanism.
17
115
  (#4235, #2676)
116
+ - `output.icecast` now re-sends the last metadata when connecting to the
117
+ remote server unless explicitly disabled using the `send_last_metadata_on_connect`
118
+ option (#3906)
119
+ - Add full explicit support for `ipv4` vs. `ipv6` resolution in SRT inputs and outputs,
120
+ add global `settings.srt.prefer_address` and `settings.icecast.prefer_address` (#4317)
121
+ - Added generic SRT socket get/set API. Added new socket options, including `latency`
122
+ and `ipv6only`.
18
123
 
19
124
  Fixed:
20
125
 
21
126
  - Fixed request resolution loop when enabling both `autocue`
22
127
  and `replaygain` metadata resolvers (#4245, fixed in #4246)
128
+ - Fixed `flac` encoding segfault (#4286, #4274)
129
+ - Fixed source `last_metadata` not being properly updated (#4262)
23
130
  - Convert all ICY (icecast) metadata from `input.http` to `utf8`.
131
+ - Fixed `inotify` unwatching due to GC cleanup (#4275)
132
+ - Fixed `delay` initial conditions (#4281)
24
133
 
25
134
  ---
26
135
 
@@ -385,7 +494,7 @@ Changed:
385
494
  into, respectively, `decoder.add`, `decoder.oblivious.add`, `decoder.metadata.add`
386
495
  - Deprecated `get_mime`, added `file.mime.libmagic` and `file.mime.cli`, made
387
496
  `file.mime` try `file.mime.libmagic` if present and `file.mime.cli` otherwise,
388
- changed eturned value when no mime was found to `null()`.
497
+ changed returned value when no mime was found to `null`.
389
498
  - Return a nullable float in `request.duration`.
390
499
  - Removed `--list-plugins-json` and `--list-plugins-xml` options.
391
500
  - Added `--list-functions-json` option.
@@ -9,7 +9,7 @@ offers a rich collection of operators that you can combine to create and
9
9
  transform streams. Liquidsoap is very light and easy to use, in the Unix
10
10
  tradition of simple strong components working together.
11
11
 
12
- Copyright 2003-2024 Savonet team
12
+ Copyright 2003-2025 Savonet team
13
13
 
14
14
  [![GPL license](https://img.shields.io/github/license/savonet/liquidsoap)](https://github.com/savonet/liquidsoap/blob/master/COPYING)
15
15
  ![CI](https://github.com/savonet/liquidsoap/workflows/CI/badge.svg)
@@ -39,7 +39,7 @@ See the instructions [here](https://www.liquidsoap.info/doc.html?path=install.ht
39
39
  Current release status by version:
40
40
  | Branch | Latest release | Supported | Rolling Release |
41
41
  | --------|----------------|-----------|-----------------|
42
- | `2.3.x` |[2.3.0](https://github.com/savonet/liquidsoap/releases/tag/v2.3.0) (docker: `savonet/liquidsoap:v2.3.0`) | ✅ | [2.3.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.3.x) (docker: `savonet/liquidsoap:rolling-release-v2.3.x` |
42
+ | `2.3.x` |[2.3.3](https://github.com/savonet/liquidsoap/releases/tag/v2.3.3) (docker: `savonet/liquidsoap:v2.3.3`) | ✅ | [2.3.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.3.x) (docker: `savonet/liquidsoap:rolling-release-v2.3.x` |
43
43
  | `2.2.x` | [2.2.5](https://github.com/savonet/liquidsoap/releases/tag/v2.2.5) (docker: `savonet/liquidsoap:v2.2.5`) | ❌ | [2.2.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.2.x) (docker: `savonet/liquidsoap:rolling-release-v2.2.x` |
44
44
  | `2.1.x` | [2.1.4](https://github.com/savonet/liquidsoap/releases/tag/v2.1.4) (docker: `savonet/liquidsoap:v2.1.4`) | ❌ | [2.1.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.1.x) (docker: `savonet/liquidsoap:rolling-release-v2.1.x` |
45
45
 
@@ -71,13 +71,14 @@ For both types of releases, we reserve the right to update, delete and add asset
71
71
 
72
72
  ## Tooling
73
73
 
74
- | | |
75
- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
76
- | Formatting | [liquidsoap-prettier](https://github.com/savonet/liquidsoap-prettier) |
77
- | VSCode | [vscode-liquidsoap](https://marketplace.visualstudio.com/items?itemName=savonet.vscode-liquidsoap) |
78
- | Tree Sitter | [tree-sitter-liquidsoap](https://github.com/savonet/tree-sitter-liquidsoap), [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) |
79
- | CodeMirror | [codemirror-lang-liquidsoap](https://github.com/savonet/codemirror-lang-liquidsoap) |
80
- | Playground | [https://www.liquidsoap.info/try/](https://www.liquidsoap.info/try/) |
74
+ | | |
75
+ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------- |
76
+ | Formatting | [liquidsoap-prettier](https://github.com/savonet/liquidsoap-prettier) |
77
+ | VSCode | [vscode-liquidsoap](https://marketplace.visualstudio.com/items?itemName=savonet.vscode-liquidsoap) |
78
+ | Neovim | [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter), [formatter.nvim](https://github.com/mhartington/formatter.nvim) |
79
+ | Tree Sitter | [tree-sitter-liquidsoap](https://github.com/savonet/tree-sitter-liquidsoap) |
80
+ | CodeMirror | [codemirror-lang-liquidsoap](https://github.com/savonet/codemirror-lang-liquidsoap) |
81
+ | Playground | [https://www.liquidsoap.info/try/](https://www.liquidsoap.info/try/) |
81
82
 
82
83
  ## Documentation
83
84
 
@@ -13,6 +13,12 @@
13
13
  - use source getters for switch in order to be able to play two tracks ever day
14
14
  (#2880)
15
15
 
16
+ ### From lioquidshop 5:
17
+
18
+ - Better handling over core module erasure
19
+ - Switch stream callbacks to async first
20
+ - Add variable with current liq script name.
21
+
16
22
  ### Maybe TODO:
17
23
 
18
24
  - remove requests and use sources instead everywhere (a request is a source with
@@ -26,11 +32,12 @@
26
32
 
27
33
  ### Nice to have
28
34
 
29
- - refine video support in order to have next liquidshop running on Liquidsoap
30
- (dogfooding)
31
- - use row variables for methods, using Garrigue's _Simple Type Inference for
32
- Structural Polymorphism_
35
+ - refine video support in order to have next liquidshop running on Liquidsoap (dogfooding)
36
+ - use row variables for methods, using Garrigue's _Simple Type Inference for Structural Polymorphism_
33
37
  - can we reimplement something like [melt](https://www.mltframework.org/)?
38
+ - support for WebRTC using WHIP / WHEP
39
+ - support decorations on a subtitle image track
40
+ - make bindings to pipewire to support webcams and screensharing
34
41
 
35
42
  ## For 2.2
36
43
 
@@ -40,16 +47,15 @@
40
47
  - ~~Online version (#2397)~~
41
48
  - ~~Available at: https://www.liquidsoap.info/try/~~
42
49
  - ~~Needs some cleanup, definition of a minimal JS library.~~
43
- - ~~Switch to `dune`~~wh
50
+ - ~~Switch to `dune`~~
44
51
  - ~~Separate standard library (in pure liq)~~
45
52
  - ~~support for multi-track audio~~
46
- - l~~ive switch with ffmpeg encoded content~~
53
+ - ~~live switch with ffmpeg encoded content~~
47
54
  - ~~deprecate "!" and ":=" in favor of x.get / x.set~~
48
55
  - ~~switch to immutable content for metadata~~
49
56
  - ~~Add script tooling, prettier etc.~~
50
57
  - ~~switch to immutable content for frames (#2364)~~
51
- - ~~frame should be changed to extensible arrays (a bit like `Strings`) instead
52
- of filling a buffer~~
58
+ - ~~frame should be changed to extensible arrays (a bit like `Strings`) instead of filling a buffer~~
53
59
  - ~~take the opportunity to change the handling of track boundaries (currently
54
60
  boundary = we have a partial fill, which has quite messy corner cases)~~
55
61
 
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+
3
+ # shellcheck disable=SC2046
4
+ DIR=$(cd $(dirname "$0")/.. && pwd)
5
+ export DIR
6
+
7
+ opam exec dune -- exec --display=quiet --no-print-directory --root="$DIR" src/bin/liquidsoap-macos-instruments.exe -- --stdlib "$DIR"/src/libs/stdlib.liq "$@"
@@ -69,7 +69,6 @@ Then, ask `opam` to list all the dependencies for `liquidsoap`:
69
69
 
70
70
  ```shell
71
71
  opam info liquidsoap
72
- opam info liquidsoap-core
73
72
  opam info liquidsoap-lang
74
73
  ```
75
74
 
@@ -200,10 +200,8 @@ Players that are not affected include ogg123, liquidsoap.
200
200
 
201
201
  One way to work around this problem is to not use Ogg/Vorbis (which we
202
202
  do not recommend) or to not produce tracks within a Vorbis stream.
203
- This is done by merging liquidsoap tracks (for example using
204
- `add(normalize=false,[blank(),source])`)
205
- and also not passing any metadata
206
- (which is also a result of the previous snippet).
203
+ This is done by dropping both metadata and track marks (for example
204
+ using `source.drop.metadata_track_marks`).
207
205
 
208
206
  ### Encoding blank
209
207
 
@@ -16,7 +16,7 @@ in liquidsoap. We list some of those here.
16
16
  ## Enable/disable ICY metadata updates
17
17
 
18
18
  You can enable or disable icy metadata update in `output.icecast`
19
- by setting the `send_icy_metadata` parameter to `null(), `true`or`false`. The default value is `null()` and does the following:
19
+ by setting the `send_icy_metadata` parameter to `null`, `true` or `false`. The default value is `null` and does the following:
20
20
 
21
21
  - Set `true` for: mp3, aac, aac+, wav
22
22
  - Set `false` for any format using the ogg container
@@ -34,7 +34,7 @@ We provide a default implementation that returns `artist` or `title` metadata
34
34
  when only one of these two is available and `$(artist) - $(title)` otherwise.
35
35
 
36
36
  You can use the `icy_song` parameter to use your own implementation. Returning
37
- `null()` from that function disables the metadata altogether.
37
+ `null` from that function disables the metadata altogether.
38
38
 
39
39
  ## Update metadata manually
40
40
 
@@ -37,6 +37,10 @@ Lastly, compiling from source should be reserved to developers.
37
37
  We generate debian and ubuntu packages automatically as part of our [release process](https://github.com/savonet/liquidsoap/releases). Otherwise, you
38
38
  can check out the official [debian](https://packages.debian.org/liquidsoap) and [ubuntu](https://packages.ubuntu.com/liquidsoap) packages.
39
39
 
40
+ For debian packages, we recommend using debian `trixie` as the current debian stable carries rather old upstream libraries. When installing our own
41
+ packages on debian, you will also need to use the [deb-multimedia.org](https://www.deb-multimedia.org/) packages. These packages provide up-to date
42
+ libraries and also support for `fdk-aac` encoding in `ffmpeg`!
43
+
40
44
  ## Alpine
41
45
 
42
46
  Alpine packages are also provided as part of our [release process](https://github.com/savonet/liquidsoap/releases).
@@ -44,8 +48,15 @@ Alpine packages are also provided as part of our [release process](https://githu
44
48
  ## Docker
45
49
 
46
50
  We provide production-ready docker images via [Docker hub](https://hub.docker.com/r/savonet/liquidsoap).
47
- Docker images are tagged with a release tag (e.g. `v2.1.4`) and with the sha of their git commit (e.g. `a24bf49`). Please note
48
- that images tagged with a release tag may change while images tagged with a commit sha will not.
51
+ Docker images are tagged with a release tag (e.g. `v2.1.4`) and with the sha of their git commit (e.g. `a24bf49`).
52
+
53
+ For instance, to fetch release `2.3.1`, you would do:
54
+
55
+ ```shell
56
+ docker pull savonet/liquidsoap:v2.3.1
57
+ ```
58
+
59
+ Please note that images tagged with a release tag may change while images tagged with a commit sha will not.
49
60
 
50
61
  ## Windows
51
62
 
@@ -188,7 +188,7 @@ test =
188
188
  end
189
189
 
190
190
  # Use the ?? syntax:
191
- test = (scripts ?? { test = null() }).test
191
+ test = (scripts ?? { test = null }).test
192
192
  ```
193
193
 
194
194
  #### Tuple types
@@ -1116,7 +1116,7 @@ let {foo = [x, y, z], gni} = {foo = [1, 2, 3], gni = "baz"}
1116
1116
 
1117
1117
  # Record capture with optional methods:
1118
1118
  let { foo? } = ()
1119
- # foo = null()
1119
+ # foo = null
1120
1120
 
1121
1121
  let { foo? } = { foo = 123 }
1122
1122
  # foo = 123
@@ -1301,7 +1301,7 @@ empty:
1301
1301
 
1302
1302
  ```liquidsoap
1303
1303
  def list.hd(l)
1304
- if l == [] then null() else list.hd(l) end
1304
+ if l == [] then null else list.hd(l) end
1305
1305
  end
1306
1306
  ```
1307
1307
 
@@ -1313,7 +1313,7 @@ whose type would be
1313
1313
 
1314
1314
  since it takes as argument a list whose elements are of type `'a` and returns a
1315
1315
  list whose elements are `'a` or `null`. As it can be observed above, the null
1316
- value is created with `null()`.
1316
+ value is created with `null`.
1317
1317
 
1318
1318
  In order to use a nullable value, one typically uses the construction `x ?? d`
1319
1319
  which is the value `x` excepting when it is null, in which case it is the
@@ -1504,7 +1504,7 @@ The default creation permissions for user cache files is: `0o600` so only the us
1504
1504
 
1505
1505
  One side-benefit from loading a script from cache is that the entire typechecking process is skipped.
1506
1506
 
1507
- This can result is significant reduction in the initial memory consumption, typically down from about `375MB` to about `80MB`!
1507
+ This leads to a significant reduction in initial memory consumption, typically down from about `375MB` to about `80MB`!
1508
1508
 
1509
1509
  If memory consumption is a concern but you are not sure you can cache your script, you can also set the environment variable
1510
1510
  `settings.init.compact_before_start` to `true`:
@@ -14,7 +14,7 @@ def beets_protocol(~rlog, ~maxtime, arg) =
14
14
  rlog(
15
15
  "Failed to execute #{command}: #{p.status} (#{p.status.code}) #{p.stderr}"
16
16
  )
17
- null()
17
+ null
18
18
  end
19
19
  end
20
20
  protocol.add(
@@ -9,7 +9,7 @@
9
9
  # @param a Ending track
10
10
  # @param b Starting track
11
11
  def cross.smart(
12
- ~id=null(),
12
+ ~id=null,
13
13
  ~fade_in=3.,
14
14
  ~fade_out=3.,
15
15
  ~default=(fun (a, b) -> (sequence([a, b]) : source)),
@@ -6,7 +6,7 @@ def handler(req) =
6
6
  req.socket.close()
7
7
 
8
8
  # Null indicates that we're using the socket directly.
9
- null()
9
+ null
10
10
  end
11
11
 
12
12
  harbor.http.register.simple("/custom", port=3456, handler)
@@ -128,9 +128,9 @@ interlude = single("/home/radiopi/fallback.mp3")
128
128
  # Lastfm submission
129
129
  def lastfm(m) =
130
130
  if
131
- (m["type"] == "chansons")
132
- then
133
- if
131
+ m["type"] == "chansons"
132
+ and
133
+
134
134
  (
135
135
  m["canal"] == "reggae"
136
136
  or
@@ -138,12 +138,13 @@ def lastfm(m) =
138
138
  or
139
139
  m["canal"] == "That70Sound"
140
140
  )
141
- then
142
- canal =
143
- if (m["canal"] == "That70Sound") then "70sound" else m["canal"] end
144
- user = "radiopi-" ^ canal
145
- lastfm.submit(user=user, password="xXXxx", m)
146
- end
141
+
142
+ then
143
+ canal = if (m["canal"] == "That70Sound") then "70sound" else m["canal"] end
144
+ username = "radiopi-" ^ canal
145
+ audioscrobbler.api.track.scrobble.metadata(
146
+ username=username, password="xXXxx", m
147
+ )
147
148
  end
148
149
  end
149
150
 
@@ -9,7 +9,7 @@ def get_next() =
9
9
  if
10
10
  files == []
11
11
  then
12
- null()
12
+ null
13
13
  else
14
14
  file = list.nth(files, pos())
15
15
  pos := pos() + 1 mod list.length(files)
@@ -82,12 +82,12 @@ end
82
82
  It handles both `r128_track_gain` and `replaygain_track_gain` internally and returns a single unified gain value.
83
83
 
84
84
  - The `file.replaygain` function now takes a new compute parameter:
85
- `file.replaygain(~id=null(), ~compute=true, ~ratio=50., file_name)`.
85
+ `file.replaygain(~id=null, ~compute=true, ~ratio=50., file_name)`.
86
86
  The compute parameter determines if gain should be calculated when the metadata does not already contain replaygain tags.
87
87
 
88
88
  - The `enable_replaygain_metadata` function now accepts a compute parameter to control replaygain calculation.
89
89
 
90
- - The `replaygain` function no longer takes an `ebu_r128` parameter. The signature is now simply: `replaygain(~id=null(), s)`.
90
+ - The `replaygain` function no longer takes an `ebu_r128` parameter. The signature is now simply: `replaygain(~id=null, s)`.
91
91
  Previously, `ebu_r128` allowed controlling whether EBU R128 or standard replaygain was used.
92
92
  However, EBU R128 data is now extracted directly from metadata when available.
93
93
  So `replaygain` cannot control the gain type via this parameter anymore.
@@ -190,11 +190,22 @@ If you are looking for an event-based API, you can use the output's `on_track` m
190
190
  For backward compatibility and easier migration, `on_air` and `on_air_timestamp` metadata can be enabled using the `settings.request.deprecated_on_air_metadata` setting:
191
191
 
192
192
  ```liquidsoap
193
- request.deprecated_on_air_metadata := true
193
+ settings.request.deprecated_on_air_metadata := true
194
194
  ```
195
195
 
196
196
  However, it is highly recommended to migrate your script to use one of the new method.
197
197
 
198
+ ### `last_metadata`
199
+
200
+ The implementation of `last_metadata` was updated to clear the last metadata when a new track begins. This is more in line with most user's expectation: last metadata
201
+ is intended to reflect the metadata of the current track.
202
+
203
+ If you need to, you can revert to the previous behavior using the source's `reset_last_metadata_on_track` method:
204
+
205
+ ```liquidsoap
206
+ s.reset_last_metadata_on_track := false
207
+ ```
208
+
198
209
  ### Gstreamer
199
210
 
200
211
  `gstreamer` was removed. It had been deprecated for a while. We expect `ffmpeg` to carry most, if not all
@@ -205,6 +216,17 @@ of gstreamer's features. See [this PR](https://github.com/savonet/liquidsoap/pul
205
216
  The default port for the Prometheus metrics exporter has changed from `9090` to `9599`.
206
217
  As before, you can change it with `settings.prometheus.server.port := <your port value>`.
207
218
 
219
+ ### `source.dynamic`
220
+
221
+ Many operators such as `single` and `request.once` have been reworked to use `source.dynamic` as their underlying
222
+ implementation.
223
+
224
+ The operator is now considered usable in production although we urge caution when using it: it is very powerful but can
225
+ also break things!
226
+
227
+ If you were (boldly!) using this operator before, the most important change is that its `set` method has been removed in
228
+ favor of a unique callback API.
229
+
208
230
  ## From 2.1.x to 2.2.x
209
231
 
210
232
  ### References
@@ -19,10 +19,15 @@ All formats are identified by their _mime-type_ or _content-type_. Supported for
19
19
 
20
20
  - Xml formats:
21
21
  - `video/x-ms-asf`, `audio/x-ms-asx`: [ASX](http://en.wikipedia.org/wiki/Advanced_Stream_Redirector), **strict**
22
- - `application/smil`, `application/smil+xml`, [SMIL](http://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_Language), **strict**
22
+ - `application/smil+xml`, `application/smil+xml`, [SMIL](http://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_Language), **strict**
23
23
  - `application/xspf+xml`, [XSPF](http://en.wikipedia.org/wiki/Xspf), **strict**
24
24
  - `application/rss+xml`, [Podcast](http://en.wikipedia.org/wiki/Podcast), **strict**
25
25
 
26
+ Playlist format is driven by the **Content-Type** and **Content-Disposition** HTTP headers _(see m3u example below)_. You should make sure that your HTTP endpoint returns appropriate values for those.
27
+
28
+ As last resort, you should be able to use the `settings.http.mime.extnames` settings to add or adjust support
29
+ for your endpoint's mime-type if liquidsoap supports its corresponding playlist format. See for instance issue [#3451](https://github.com/savonet/liquidsoap/issues/3451).
30
+
26
31
  ## Usage
27
32
 
28
33
  Playlist files are parsed automatically when used in a `playlist` or `input.http` operator. Each of
@@ -33,6 +38,46 @@ Additionally, you can also manually parse and process a playlist using `request.
33
38
  and some programming magic. You can check the code source for `playlist.reloadable` in our standard library
34
39
  for a detailed example.
35
40
 
41
+ ### Remote M3U playlist example
42
+
43
+ Here is an example of a m3u playlist being read from nodejs/express .
44
+
45
+ liquidsoap script:
46
+
47
+ ```liquidsoap
48
+ #!/usr/local/bin/liquidsoap
49
+
50
+ p = playlist(reload=10, "http://localhost:8080/radio/playlists/0/playlist.m3u")
51
+ ```
52
+
53
+ nodejs/express app:
54
+
55
+ ```js
56
+ import express from "express";
57
+
58
+ const app = express();
59
+
60
+ app.get("/radio/playlists/:id/playlist.m3u", async (req, res) => {
61
+ const playlist = ["/media/foo.mp3", "/media/bar.mp3"];
62
+
63
+ // Liquidsoap will use the file extension from the `Content-Disposition` header to guess
64
+ // the playlist format
65
+ res.set(
66
+ "Content-Disposition",
67
+ `attachment; filename="playlist-${req.params.id}.m3u"`,
68
+ );
69
+
70
+ // Otherwise, it will try to guess the file extension from the playlist mime-type.
71
+ res.set("Content-Type", "audio/x-mpegurl");
72
+ res
73
+ .send(playlist.join("\r\n") + "\r\n")
74
+ .status(200)
75
+ .end();
76
+ });
77
+
78
+ const server = app.listen(8080);
79
+ ```
80
+
36
81
  ## Special case: CUE format
37
82
 
38
83
  The CUE format originates from CD burning programs. They describe the set of tracks of a whole CD and
@@ -15,6 +15,9 @@ in `secret.liq`, and then refer to that variable in your main script
15
15
  need to communicate `main.liq` there won't be any risk of divulgating your
16
16
  password.
17
17
 
18
+ When available, the variable `liquidsoap.script.path` contains the path of the current script's
19
+ file and `null` otherwise.
20
+
18
21
  ## The pervasive script library
19
22
 
20
23
  In fact, liquidsoap also implicitly loads scripts before those that you specify