Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aura-engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Kruse
aura-engine
Compare revisions
main to 1796e9a5eae50a33c6fc6b20e67a846ca858b4a6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
sumpfralle/aura-engine
Select target project
No results found
1796e9a5eae50a33c6fc6b20e67a846ca858b4a6
Select Git revision
Branches
dev-old
dev-old-david
develop
lars-tests
master
master-old
topic/filesystem-fallbacks
topic/tank_connection
topic/tank_connection_david
user/equinox/docker
10 results
Swap
Target
aura/engine
Select target project
aura/engine
hermannschwaerzler/engine
sumpfralle/aura-engine
3 results
main
Select Git revision
Branches
122-synchronized-ci
feat-use-docker-main-tag
fix-aura-sysuser
fix-broken-pipe-153
fix-docker-release
fix-push-latest-with-tag
fix-streamchannel-retries
gitlab-templates
improve-test-coverage-137
improve-test-coverage-143
main
orm-less-scheduling
remove-mailer
update-changelog-alpha3
virtual-timeslots-131
Tags
1.0.0-alpha1
1.0.0-alpha2
1.0.0-alpha3
1.0.0-alpha4
1.0.0-alpha5
20 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/test_alsa_settings.liq
+48
-0
48 additions, 0 deletions
test/test_alsa_settings.liq
test/tests.py
+69
-0
69 additions, 0 deletions
test/tests.py
with
117 additions
and
0 deletions
test/test_alsa_settings.liq
0 → 100644
View file @
1796e9a5
#
# engine
#
# Playout Daemon for autoradio project
#
#
# Copyright (C) 2017-2018 David Trattnig <david@subsquare.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/>.
#
set("log.file.path", "./<script>.log")
set("server.telnet", true)
set("server.telnet.bind_addr", "0.0.0.0")
set("server.telnet.port", 1234)
set("frame.duration", 0.30)
set("alsa.alsa_buffer", 8192)
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", bufferize = false)
audio1 = single(id="fs1", "./sources/1.flac")
audio2 = single(id="fs2", "./sources/2.flac")
#input_http = input.http(id="http", "http://stream.fro.at/fro-128.ogg")
#mixer = mix(id="mixer", [audio1, audio2])
#mixer = mix(id="mixer", [input_fs, input_http, input_linein])
mixed = add([audio1, audio2])
output.alsa(id="lineout", bufferize = false, mixed)
This diff is collapsed.
Click to expand it.
test/tests.py
0 → 100755
View file @
1796e9a5
#!/bin/sh
''''
which python3.8 >/dev/null 2>&1 && exec python3.8
"
$0
"
"
$@
"
#
'''
''''
which python3.7 >/dev/null 2>&1 && exec python3.7
"
$0
"
"
$@
"
#
'''
''''
exec echo
"
Error: Snaaakey Python, where are you?
"
#
'''
#
# 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/>.
import
sqlalchemy
import
decimal
import
datetime
from
modules.base.config
import
AuraConfig
from
modules.base.models
import
PlaylistEntry
from
modules.core.engine
import
Engine
from
modules.scheduling.scheduler
import
AuraScheduler
def
select_current_programme
():
# select_programme()
config
=
AuraConfig
()
engine
=
Engine
(
config
)
sched
=
AuraScheduler
(
config
,
engine
,
None
)
engine
.
scheduler
=
sched
sched
.
engine
=
engine
sched
.
load_programme_from_db
()
# # ## ## ## ## ## # #
# # ENTRY FUNCTION # #
# # ## ## ## ## ## # #
def
main
():
True
# # ## ## ## ## ## ## # #
# # End ENTRY FUNCTION # #
# # ## ## ## ## ## ## # #
if
__name__
==
"
__main__
"
:
main
()
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
Next