File: ams

package info (click to toggle)
ams 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,560 kB
  • sloc: cpp: 20,035; sh: 4,154; makefile: 429
file content (20 lines) | stat: -rw-r--r-- 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# Little script to set up the environment before launching ams
#
# Copyright (C) 2005 Free Ekanayaka <free@agnula.org>
#
# This script is licensed under the GNU GPL v2 - you can find a
# complete copy of the license under /usr/share/common-licenses/GPL-2

LADSPA_DEFAULT_PATH=/usr/lib/ladspa:/usr/local/ladspa
OPTIONS=" --presetdir /usr/share/ams"

if [ -z "$LADSPA_PATH" ]; then
	export LADSPA_PATH=${LADSPA_DEFAULT_PATH}
fi
if [ $(ps -C jackd| wc -l) -gt 1 ]; then
	OPTIONS="$OPTIONS --jack"
fi

exec /usr/lib/ams/ams.real $OPTIONS $@