Skip to content
Snippets Groups Projects
test_alsa_mixer.liq 1.51 KiB
Newer Older
  • Learn to ignore specific revisions
  • David Trattnig's avatar
    David Trattnig committed
    #
    #  engine
    #
    #  Playout Daemon for autoradio project
    #
    #
    #  Copyright (C) 2017-2018 Gottfried Gaisbauer <gottfried.gaisbauer@servus.at>
    #
    #  This file is part of engine.
    #
    #  engine is free software: you can redistribute it and/or modify
    #  it under the terms of the GNU General Public License as published by
    #  the Free Software Foundation, either version 3 of the License, or
    #  any later version.
    #
    #  engine 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 General Public License for more details.
    #
    #  You should have received a copy of the GNU General Public License
    #  along with engine. If not, see <http://www.gnu.org/licenses/>.
    #
    
    
    David Trattnig's avatar
    David Trattnig committed
    set("log.file.path", "./logs/<script>.log")
    
    David Trattnig's avatar
    David Trattnig committed
    
    set("server.telnet", true)
    set("server.telnet.bind_addr", "0.0.0.0")
    set("server.telnet.port", 1234)
    
    # ALSA / pulse settings
    # durch ausprobieren herausgefunden für asus xonar dgx 5.1
    # chip: CMI8788
    # driver: snd_oxygen
    
    set("frame.duration", 0.30)
    set("alsa.alsa_buffer", 8192) # 7168) # 6144) # 8192) # 10240) #15876
    set("alsa.buffer_length", 25)
    set("alsa.periods", 0) # assertion error when setting periods other than 0 => alsa default
    
    
    input_linein = input.alsa(id="linein")
    
    David Trattnig's avatar
    David Trattnig committed
    #input_fs = single(id="fs", "/var/audio/fallback/output.flac")
    #input_http = input.http(id="http", "http://stream.fro.at/fro-128.ogg")
    
    #mixer = mix(id="mixer", [input_fs, input_http, input_linein])
    
    
    #output.alsa(id="lineout", mixer)