##############################################
#         Engine-Core Configuration          #
##############################################
# Note: Paths are relative to the 'src' folder

[general]
# File Socket to control engine-core externally (e.g. by 'engine')
socketdir="../socket"
# Host and port of the engine backchannel (Network Socket for e.g. sending track service updates)
engine_control_host="localhost:1337"
# Log directory absolute or relative from the "src" dir
logdir="../logs"
# Possible values: debug, info, warning, error, critical
loglevel="info"
# Allow Liquidsoap to run as root (required for Docker)
liquidsoap_as_root="false"

[audio]
# This is the folder where fallback playlists are read from (optional)
audio_playlist_folder="../audio/playlist"
# Sets the time how long we have to fade in and out, when we select another mixer input values are in seconds
fade_in_time="1.5"
fade_out_time="1.5"
# A playlist holding music for Station Fallbacks (optional)
fallback_music_playlist= "station-fallback-playlist.m3u"
# A folder holding music for Station Fallbacks (optional)
fallback_music_folder="../audio/station"
# The time in seconds how often the folder should be re-scanned
# Do not reload too often when using large folders
fallback_music_folder_reload="300"
# Maximum time of blank from source (defaults to 20., seconds, float)
fallback_max_blank="15."
# Minimum duration of noise on source to switch back over (defaults to 0, seconds, float)
fallback_min_noise="0."
# Power in dB under which the stream is considered silent (defaults to -40., float)
fallback_threshold="-80."

[soundcard]
# Choose your weapon: "alsa" (1 input/output), "pulseaudio" (multi input/output) or "jack" (multi input/output)
soundsystem="alsa"
# With 'alsa' you have to write the devicenames like 'default' to use the system default or 'hw:0' to use the 1st audio device directly.
# With Pulse Audio and Jack => an non empty value means it is used
# Devices with empty string are ignored and not used
input_device_0=""
input_device_1=""
input_device_2=""
input_device_3=""
input_device_4=""
# Same same, but different
output_device_0="default"
output_device_1=""
output_device_2=""
output_device_3=""
output_device_4=""

# ADVANCED ALSA SETTINGS
# Defaults are recommended; you might need to tweak these values if you're hearing jitter, cracklings or other artifacts
#
# Usually provided by your device
sample_rate=""
# Set to 0 to use the ALSA default. If using hardware directly (hw:0) start with 8192. Higher values give higher latency and lower CPU usage.
alsa_buffer="0"
# Only used for buffered ALSA I/O, and affects latency. Probably not wanted for live audio. Defaults to "1"
alsa_buffer_length="0"
# Set to 0 to use the ALSA default. Defaults to "0"
alsa_periods="0"
# Frame Size ("frame.audio.size"); Unclear if that's still required as it's not documented in Liquidsoap anymore.
frame_size=""
# Tentative frame duration in seconds, defaults to "0.04" (Float). This setting is used as a hint for the duration,
# when ‘frame_size’ is not provided. It's required for getting things in sync, but it's actually tricky to set correctly.
frame_duration=""

[stream]
# defines enabled or not
stream_0="n"
# possible values: flac, mp3, ogg, opus (depending on which liquidsoap plugins you've installed)
stream_0_encoding="ogg"
# bitrate (with encoding types without bitrate like flac or ogg it is substituted. 32 => very poor quality. 320 => very high quality)
stream_0_bitrate="128"
# how many channels? everything else than 2 is considered as mono
stream_0_channels="2"
# to where we are streaming..?
stream_0_host="localhost"
# and which port?
stream_0_port="8888"
# the name of the mountpoint
stream_0_mountpoint="aura-test-0.ogg"
# username
stream_0_user="source"
# and the password
stream_0_password="source"
# stream url
stream_0_url="http://www.fro.at"
# the name of the stream
stream_0_name="AURA Test Stream 0"
# the genre of the stream
stream_0_genre="mixed"
# description of the stream
stream_0_description="Test Stream 0"

stream_1="n"
stream_1_encoding="flac"
stream_1_bitrate="128"
stream_1_channels="2"

stream_1_host="localhost"
stream_1_port="8888"
stream_1_mountpoint="aura-test-1.flac"
stream_1_user="source"
stream_1_password="source"

stream_1_url="http://www.fro.at"
stream_1_name="AURA Test Stream 1"
stream_1_genre="mixed"
stream_1_description="Test Stream 1"

stream_2="n"
stream_2_encoding="mp3"
stream_2_bitrate="64"
stream_2_channels="2"

stream_2_host="localhost"
stream_2_port="8888"
stream_2_mountpoint="aura-test-2.mp3"
stream_2_user="source"
stream_2_password="source"

stream_2_url="http://www.fro.at"
stream_2_name="AURA Test Stream 2"
stream_2_genre="mixed"
stream_2_description="Test Stream 2"

stream_3="n"
stream_3_encoding="ogg"
stream_3_bitrate="64"
stream_3_channels="2"

stream_3_host="localhost"
stream_3_port="8888"
stream_3_mountpoint="aura-test-3.ogg"
stream_3_user="source"
stream_3_password="source"

stream_3_url="http://www.fro.at"
stream_3_name="AURA Test Stream 3"
stream_3_genre="mixed"
stream_3_description="Test Stream 3"

stream_4="n"
stream_4_encoding="opus"
stream_4_bitrate="64"
stream_4_channels="2"

stream_4_host="localhost"
stream_4_port="8888"
stream_4_mountpoint="aura-test-4.opus"
stream_4_user="source"
stream_4_password="source"

stream_4_url="http://www.fro.at"
stream_4_name="AURA Test Stream 3"
stream_4_genre="mixed"
stream_4_description="Test Stream 3"