Skip to content
Snippets Groups Projects
test_alsa_default_analog.liq 1.58 KiB
Newer Older
  • Learn to ignore specific revisions
  • #!/usr/bin/liquidsoap --verbose
    #
    # Aura Engine (https://gitlab.servus.at/aura/engine)
    #
    # Copyright (C) 2017-2020 - The Aura Engine Team.
    #
    # 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
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU Affero General Public License for more details.
    #
    # You should have received a copy of the GNU Affero General Public License
    # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    
    set("init.allow_root", true)
    set("log.file.path", "../logs/<script>.log")
    
    set("server.telnet", true)
    set("server.telnet.bind_addr", "0.0.0.0")
    set("server.telnet.port", 1234)
    
    set("frame.audio.samplerate", 44100)
    
    # 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)