Skip to content
Snippets Groups Projects
Commit 3e79bd94 authored by David Trattnig's avatar David Trattnig
Browse files

Update naming scheme for multi audio sources. #43

parent 368996f7
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ daemonuser="engineuser" ...@@ -140,7 +140,7 @@ daemonuser="engineuser"
socketdir="/home/username/code/aura/engine/modules/liquidsoap" socketdir="/home/username/code/aura/engine/modules/liquidsoap"
[audiosources] [audiosources]
audiofolder="var/audio/source" audio_source_folder="var/audio/source"
audio_source_extension=".flac" audio_source_extension=".flac"
[fallback] [fallback]
......
...@@ -138,7 +138,7 @@ daemonuser="engineuser" ...@@ -138,7 +138,7 @@ daemonuser="engineuser"
socketdir="/srv/modules/liquidsoap" socketdir="/srv/modules/liquidsoap"
[audiosources] [audiosources]
audiofolder="var/audio/source" audio_source_folder="var/audio/source"
audio_source_extension=".flac" audio_source_extension=".flac"
[fallback] [fallback]
......
...@@ -138,7 +138,7 @@ daemonuser="engineuser" ...@@ -138,7 +138,7 @@ daemonuser="engineuser"
socketdir="/opt/aura/engine/modules/liquidsoap" socketdir="/opt/aura/engine/modules/liquidsoap"
[audiosources] [audiosources]
audiofolder="var/audio/source" audio_source_folder="var/audio/source"
audio_source_extension=".flac" audio_source_extension=".flac"
[fallback] [fallback]
......
...@@ -162,8 +162,8 @@ Finally Engine needs to be able to access the audio folder, where all the tracks ...@@ -162,8 +162,8 @@ Finally Engine needs to be able to access the audio folder, where all the tracks
are stored via *Tank*: are stored via *Tank*:
```ini ```ini
[audiofolder] [audiosource]
audiofolder="/var/audio" audio_source_folder="/var/audio"
``` ```
If the audio device desired for playback is set as `default`, the Engine now should be ready to play 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 ...@@ -201,8 +201,8 @@ Finally Engine needs to be able to access the audio folder, where all the tracks
are stored via *Tank*: are stored via *Tank*:
```ini ```ini
[audiofolder] [audiosource]
audiofolder="/var/audio" audio_source_folder="/var/audio/source"
``` ```
There is some document on how to [Setup the Audio Store](docs/setup-audio-store.md). There is some document on how to [Setup the Audio Store](docs/setup-audio-store.md).
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
The *Audio Store* is a folder which is utilized by AURA Tank and Engine to exchange audio files. 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. using some network share.
In case you are hosting Engine and Tank on the same machine (e.g. in development), you can skip 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. ...@@ -21,13 +21,13 @@ this documentation. Just think about pointing them to the same directory.
<!-- /TOC --> <!-- /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`: This can be configurated in `engine.ini`:
```ini ```ini
[audiofolder] [audiosource]
audiofolder="/var/audio" audio_source_folder="/var/audio/source"
``` ```
Now, this folder must be somehow writable by Tank. Now, this folder must be somehow writable by Tank.
...@@ -70,21 +70,21 @@ this documentation. ...@@ -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. 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 ### 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 ```shell
adduser tankuser adduser tankuser
chown tankuser:engineuser /var/audio chown tankuser:engineuser /var/audio/source
``` ```
Ensure that `engineuser` has no permissions to write the directory: Ensure that `engineuser` has no permissions to write the directory:
```shell ```shell
chmod u=+rwx,go=+rx-w /var/audio chmod u=+rwx,go=+rx-w /var/audio/source
``` ```
### Configuring Tank ### Configuring Tank
......
...@@ -248,7 +248,7 @@ class AuraMonitor: ...@@ -248,7 +248,7 @@ class AuraMonitor:
self.soundsystem.disable_transaction(self.soundsystem.client) self.soundsystem.disable_transaction(self.soundsystem.client)
self.status["redis"]["active"] = self.validate_redis_connection() 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 # After first update start the Heartbeat Monitor
if not self.heartbeat_running: if not self.heartbeat_running:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment