#
#  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/>.
#

if a0_in != "" then
    # we can ignore the result, since it is stored in the list 'inputs'
    set_input(a0_in, "aura_linein_0")
end

if a1_in != "" then
    ignore(set_input(a1_in, "aura_linein_1"))
end

if a2_in != "" then
    ignore(set_input(a2_in, "aura_linein_2"))
end

if a3_in != "" then
    ignore(set_input(a3_in, "aura_linein_3"))
end

if a4_in != "" then
    ignore(set_input(a4_in, "aura_linein_4"))

#    input_4 = ref output.dummy(blank())
#    set_input(input_4, a4_in, "aura_linein_4")
#    inputs := list.append([!input_4], !inputs)
end