Commit 3e79bd94 authored by David Trattnig's avatar David Trattnig
Browse files

Update naming scheme for multi audio sources. #43

parent 368996f7
......@@ -140,7 +140,7 @@ daemonuser="engineuser"
socketdir="/home/username/code/aura/engine/modules/liquidsoap"
[audiosources]
audiofolder="var/audio/source"
audio_source_folder="var/audio/source"
audio_source_extension=".flac"
[fallback]
......
......@@ -138,7 +138,7 @@ daemonuser="engineuser"
socketdir="/srv/modules/liquidsoap"
[audiosources]
audiofolder="var/audio/source"
audio_source_folder="var/audio/source"
audio_source_extension=".flac"
[fallback]
......
......@@ -138,7 +138,7 @@ daemonuser="engineuser"
socketdir="/opt/aura/engine/modules/liquidsoap"
[audiosources]
audiofolder="var/audio/source"
audio_source_folder="var/audio/source"
audio_source_extension=".flac"
[fallback]
......
......@@ -162,8 +162,8 @@ Finally Engine needs to be able to access the audio folder, where all the tracks
are stored via *Tank*:
```ini
[audiofolder]
audiofolder="/var/audio"
[audiosource]
audio_source_folder="/var/audio"
```
If the audio device desired for playback is set as `default`, the Engine now should be ready to play
......
......@@ -201,8 +201,8 @@ Finally Engine needs to be able to access the audio folder, where all the tracks
are stored via *Tank*:
```ini
[audiofolder]
audiofolder="/var/audio"
[audiosource]
audio_source_folder="/var/audio/source"
```
There is some document on how to [Setup the Audio Store](docs/setup-audio-store.md).
......
......@@ -3,7 +3,7 @@
The *Audio Store* is a folder which is utilized by AURA Tank and Engine to exchange audio files.
Assuming AURA Engine and Tank are hosted on different machines, the `audiofolder` must by shared
Assuming AURA Engine and Tank are hosted on different machines, the `audio_source_folder` must by shared
using some network share.
In case you are hosting Engine and Tank on the same machine (e.g. in development), you can skip
......@@ -21,13 +21,13 @@ this documentation. Just think about pointing them to the same directory.
<!-- /TOC -->
By default Engine expects audio files shared by Tank in `/var/audio`.
By default Engine expects audio files shared by Tank in `/var/audio/source`.
This can be configurated in `engine.ini`:
```ini
[audiofolder]
audiofolder="/var/audio"
[audiosource]
audio_source_folder="/var/audio/source"
```
Now, this folder must be somehow writable by Tank.
......@@ -70,21 +70,21 @@ this documentation.
SSHFS allows you to access the filesystem on a remote computer via SSH. Interaction with files and folders behaves similar to any local data.
This example is setting up the `audiofolder` on the Engine instance.
This example is setting up the `audio_source_folder` on the Engine instance.
### Configuring Engine
First, you'll need to create an user which enables Tank to access the `audiofolder` on Engine:
First, you'll need to create an user which enables Tank to access the `audio_source_folder` on Engine:
```shell
adduser tankuser
chown tankuser:engineuser /var/audio
chown tankuser:engineuser /var/audio/source
```
Ensure that `engineuser` has no permissions to write the directory:
```shell
chmod u=+rwx,go=+rx-w /var/audio
chmod u=+rwx,go=+rx-w /var/audio/source
```
### Configuring Tank
......
......@@ -248,7 +248,7 @@ class AuraMonitor:
self.soundsystem.disable_transaction(self.soundsystem.client)
self.status["redis"]["active"] = self.validate_redis_connection()
self.status["audio_store"] = self.validate_directory(self.config.get("audiofolder"))
self.status["audio_source"] = self.validate_directory(self.config.get("audio_source_folder"))
# After first update start the Heartbeat Monitor
if not self.heartbeat_running:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment