Skip to content
Snippets Groups Projects
Commit 2f1c7d26 authored by David Trattnig's avatar David Trattnig
Browse files

Unbuffered live audio. #1 #6

parent a831a351
No related branches found
No related tags found
No related merge requests found
Pipeline #1007 passed
#!/usr/bin/liquidsoap --verbose #!/usr/bin/env liquidsoap
# #
# Aura Engine (https://gitlab.servus.at/aura/engine) # Aura Engine (https://gitlab.servus.at/aura/engine)
# #
# Copyright (C) 2017-2020 - The Aura Engine Team. # Copyright (C) 2017-now() - The Aura Engine Team.
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by # it under the terms of the GNU Affero General Public License as published by
...@@ -19,21 +19,13 @@ ...@@ -19,21 +19,13 @@
set("init.allow_root", true) set("init.allow_root", true)
set("log.file.path", "../logs/<script>.log") set("init.catch_exn", false)
set("init.trace", true)
set("log.file.path", "../../logs/<script>.log")
set("log.level", 5)
set("ffmpeg.log.level", 5)
set("server.telnet", true) set("frame.audio.size", 7526)
set("server.telnet.bind_addr", "0.0.0.0") set("frame.video.framerate", 0)
set("server.telnet.port", 1234) input_analog = input.alsa(id="analog_input", device="default", bufferize=false, start=true, fallible=true)
output.alsa(id="lineout", device="default", input_analog, bufferize=false, fallible=true)
set("frame.audio.samplerate", 44100) \ No newline at end of file
# set("frame.audio.size", 16000)
# This causes heaps of buffer underuns:
# input_analog = input.alsa(id="analog_input", device="default", bufferize=true, start=true, fallible=true)
# output.alsa(id="lineout", device="default", input_analog, bufferize=true, fallible=true)
# This seems relatively fine
input_analog = input.alsa(id="analog_input", device="default", bufferize=true, start=true, fallible=true)
input_analog_buffer = buffer.adaptative(id="analog_input_buffer", input_analog, fallible=true)
output.alsa(id="lineout", device="default", input_analog_buffer, bufferize=false, fallible=true)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment