Skip to content

Commit

Permalink
v2.0.2 – Show autocue.cue_file version number in Liquidsoap log on st…
Browse files Browse the repository at this point in the history
…artup, eases bug hunting.
  • Loading branch information
Moonbase59 committed Jun 5, 2024
1 parent 9d08d96 commit c4eca9c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# autocue changelog

### 2024-06-05 - v2.0.2

- Show autocue.cue_file version number in Liquidsoap log on startup,
to ease bug hunting. Your `cue_file` should use the same version.

The log entry looks like this:

```
2024/06/05 16:16:03 [autocue.cue_file:2] You are using autocue.cue_file version 2.0.2.
2024/06/05 16:16:03 [autocue.cue_file:2] Assure that the external "cue_file" has the same version!
```

### 2024-06-04 - v2.0.1

- Fix small bug when reading already stored `liq_true_peak` that contained
Expand Down
13 changes: 12 additions & 1 deletion autocue.cue_file.liq
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# 2024-06-04 - Moonbase59 - v2.0.0 Breaking: Add -r/--replaygain overwrite
# - Changed `liq_true_peak` to `liq_true_peak_db`,
# add new `liq_true_peak` (linear, like RG)
# 2024-06-05 - Moonbase59 - v2.0.2 Initial display of version, at log level 2.

# Lots of debugging output for AzuraCast in this, will be removed eventually.

Expand All @@ -29,7 +30,7 @@ let settings.autocue.cue_file.version =
settings.make(
description=
"Software version of autocue.cue_file. Should coincide with `cue_file`.",
"2.0.1"
"2.0.2"
)

let settings.autocue.cue_file.path =
Expand Down Expand Up @@ -681,6 +682,16 @@ settings.autocue.preferred := "cue_file"
# avoid dead air from reconcile, reset default 3.0s to our fade_out duration
settings.autocue.target_cross_duration := settings.autocue.cue_file.fade_out()

# Let user know what version (s)he is running
log(level=2, label="autocue.cue_file",
'You are using autocue.cue_file version \
#{settings.autocue.cue_file.version()}.'
)
log(level=2, label="autocue.cue_file",
'Assure that the external "#{settings.autocue.cue_file.path()}" \
has the same version!'
)

# --- Copy-paste Azuracast LS Config, second input box END ---

# Don't forget to add your settings after this.
Expand Down
3 changes: 2 additions & 1 deletion cue_file
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
# add new `liq_true_peak` (linear, like RG)
# - v2.0.1 Fix `liq_true_peak` reading when it still
# contains ` dBFS` from v1.2.3.
# 2024-06-05 Moonbase59 - No change, just version number.
#
# Originally based on an idea and some code by John Warburton (@Warblefly):
# https://github.com/Warblefly/TrackBoundaries

__author__ = 'Matthias C. Hormann'
__version__ = '2.0.1'
__version__ = '2.0.2'

import os
import tempfile
Expand Down
11 changes: 7 additions & 4 deletions test_autocue.cue_file.liq
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ to_live = ref(false)

# --- Copy-paste your settings into AzuraCast, second input box AFTER above file ---

settings.autocue.cue_file.path := "./cue_file"
settings.autocue.cue_file.path := "cue_file"
# settings.autocue.cue_file.fade_in := 0.1
# settings.autocue.cue_file.fade_out := 2.5
# settings.autocue.cue_file.timeout := 60.0
Expand All @@ -42,9 +42,9 @@ settings.autocue.cue_file.path := "./cue_file"
settings.autocue.cue_file.noclip := true # clipping prevention
settings.autocue.cue_file.blankskip := true
# settings.autocue.cue_file.unify_loudness_correction := true
settings.autocue.cue_file.write_tags := true
settings.autocue.cue_file.write_replaygain := true
settings.autocue.cue_file.force_analysis := true
# settings.autocue.cue_file.write_tags := true # testing
# settings.autocue.cue_file.write_replaygain := true # testing
# settings.autocue.cue_file.force_analysis := true # testing
settings.autocue.cue_file.nice := true # Linux/MacOS only!

# `enable_autocue_metadata()` will autocue ALL files Liquidsoap processes.
Expand Down Expand Up @@ -83,6 +83,9 @@ jingles = playlist(prefix='annotate:jingle_mode="true",liq_blankskip="false",'
radio = random(weights=[1,1], [songs, jingles])
radio = amplify(1.,override="liq_amplify",radio)

# "Fake" LUFS playout adjust. Calculate at -18, play at -14 ;-)
# radio = amplify(lin_of_dB(4.0), override=null(), radio)


# --- Copy-paste Azuracast LS Config, third input box BEGIN ---

Expand Down

0 comments on commit c4eca9c

Please sign in to comment.