Skip to content

Commit

Permalink
Merge pull request #19 from tu-studio/main
Browse files Browse the repository at this point in the history
first refinement round from Fares
  • Loading branch information
ntonnaett authored Mar 15, 2024
2 parents f1b4dc3 + 73e7163 commit f568d52
Show file tree
Hide file tree
Showing 99 changed files with 236 additions and 505 deletions.
12 changes: 12 additions & 0 deletions Questions_for_Nils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Questions for Nils

1. Why are there system and user systemd services for twonder and cwonder? Which one should be used?
2. I believe we are using the user services for twonder and cwonder.
3. The jack.service file has After=sound.target local-fs.target, but these targets do not exist on the systems. Why are they there?
4. Where is the include directory path for the config.h file defined?
5. The config.h.in file is is not needed right?
6. All those scripts in the scripts directory are not needed right? Except for the start-twonder.sh script.
7. Where is the Dante pcie driver from?
8. Is pinging really needed for the twonder and cwonder services? And if not, cann't we just go without jfwonder?
9. Do you know what the twonder_config.xml file is for and the the Negative Delay in the cluster configuration?
10. Why shall we need jfwonder?
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# TODO

- [x] Add runpaths to the final executables
- [ ] Uncomment the saving of old clients
- [ ] Change the default paths of c and t wonder config files
22 changes: 0 additions & 22 deletions configs/EN325/cluster.conf

This file was deleted.

4 changes: 0 additions & 4 deletions configs/EN325/twonder_riviera.conf

This file was deleted.

4 changes: 0 additions & 4 deletions configs/EN325/twonder_wintermute.conf

This file was deleted.

6 changes: 3 additions & 3 deletions docs/Installation/Build.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ can change the owner of files in your build directory to root. Running

|Files|Location|
|--- |--- |
|Startup Scripts |*/usr/share/wonder/scripts*|
|XML DTD |*/usr/share/wonder/dtd*|
|Configuration files|*/etc/wonder*|
|Startup Scripts |*/usr/local/share/wonder/scripts*|
|XML DTD |*/usr/local/share/wonder/dtd*|
|Configuration files|*/usr/local/etc/wonder*|
6 changes: 3 additions & 3 deletions docs/Installation/Config.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Wonder Configuration

Wonder's configuration files must be put in `/etc/wonder`.
Wonder's configuration files must be put in `/usr/local/etc/wonder`.

## Cluster configuration

`/etc/wonder/cluster.conf` sets environment variables for wonder. You should
`/usr/local/etc/wonder/cluster.conf` sets environment variables for wonder. You should
set the IP address of your CWonder machine, the JACK setup information
and the negative delay length in meters for focused sources.

Expand All @@ -31,7 +31,7 @@ JACK_OUTPUTS=128;

## CWonder

`/etc/wonder/cwonder_config.xml` sets the project path, number of sources and room geometry.
`/usr/local/etc/wonder/cwonder_config.xml` sets the project path, number of sources and room geometry.

## TWonder

Expand Down
6 changes: 6 additions & 0 deletions examples/config/EN325/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
message('Installing configuration files for the TU-Studio EN325.')
message('The configuration files are installed to ' + get_option('prefix') + '/' + get_option('sysconfdir') + '.')

message('This is the node: ' + get_option('node'))

subdir('wonder')
10 changes: 10 additions & 0 deletions examples/config/EN325/wonder/cluster.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file contains shared information for the WONDER modules

# USER_NAME='studio';

CWONDER_IP='130.149.23.24';

NUM_SOURCES=128;

# Negative delay for focused sources (in meters)
NEG_DELAY=7.585;
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<!DOCTYPE cwonder_config SYSTEM "cwonder_config.dtd">

<cwonder_config>
<settings projectpath="/home/wfs/wonder3/projects" maxNoSources="64" />
<renderpolygon roomname="TU_Berlin_newConfig">
<settings projectpath="/home/wfs/wonder3/projects" maxNoSources="128" />
<renderpolygon roomname="EN325">
<point x="-1.620" y="3.023" z="1.4"/>
<point x="1.620" y="3.023" z="1.4"/>
<point x="2.430" y="1.620" z="1.4"/>
Expand Down
19 changes: 19 additions & 0 deletions examples/config/EN325/wonder/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# The speaker configurations need to have the same folder structure for the twonder start script to work.
# Also the speaker configurations need to start with twonder.

if get_option('node') == 'none'
error('Please specify location with -Dnode=...')
elif get_option('node') == 'riviera'
message('Installing configuration for node riviera.')
install_subdir('cwonder', install_dir : get_option('sysconfdir') / 'wonder')
install_subdir('twonder/riviera', strip_directory : true, install_dir : get_option('sysconfdir') / 'wonder' / 'twonder')
elif get_option('node') == 'wintermute'
message('Installing configuration for node wintermute.')
install_subdir('twonder/wintermute', strip_directory : true, install_dir : get_option('sysconfdir') / 'wonder' / 'twonder')
else
error('Unknown node specified.')
endif

# Install the remaining files if the node is correct, no error is thrown.
install_data('cluster.conf', install_dir : get_option('sysconfdir') / 'wonder')
install_data('twonder/twonder_config.xml', install_dir : get_option('sysconfdir') / 'wonder' / 'twonder')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 17 additions & 19 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,41 @@ libsystemd_dep = dependency('libsystemd', required: get_option('systemd'))
fmt_dep = dependency('fmt')

if libsystemd_dep.found()
defines += '-DWONDER_SYSTEMD'
defines += '-DWONDER_SYSTEMD' # the defines are passed to the excecutables as cppargs
endif

subdir('src/include')
inc = include_directories('src/include')
lib_dir = get_option('prefix') / get_option('libdir')
message('Library directory: ' + lib_dir)

subdir('src/lib')
subdir('src/cwonder')
subdir('src/jfwonder')
subdir('src/score')
# subdir('src/jfwonder')
# subdir('src/score')
subdir('src/twonder')
if get_option('xwonder') == true
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL', 'Xml'], include_type: 'system')
glu_dep = dependency('glu')
subdir('src/xwonder')
endif
# if get_option('xwonder') == true
# qt5 = import('qt5')
# qt5_dep = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL', 'Xml'], include_type: 'system')
# glu_dep = dependency('glu')
# subdir('src/xwonder')
# endif

if systemd_dep.found()
subdir('services')
endif

config_dir = '/etc/wonder'
if get_option('location') == 'none'
message('No location configuration selected.')
elif get_option('location') == 'EN325'
install_subdir('configs/EN325', strip_directory: true, install_dir : config_dir )
elif get_option('location') == 'HUFO'
install_subdir('configs/HuFo', strip_directory: true, install_dir : config_dir )
endif
# The configuration directory for locally installed programs should be /usr/local/etc/wonder and not to /etc/wonder as before
# Configuration files examples are in config/examples and could be installed as follows:
# subdir('config/examples/EN325')
# For this to work the option 'location' and 'node' need to be set in the meson.options file

# With install_dir: install_dir: get_option('datadir') the files are installed in the usr/local/share/ directory
install_subdir('scripts', install_dir: get_option('datadir') / 'wonder')
install_subdir('dtd', install_dir: get_option('datadir') / 'wonder')

summary({'CWonder': true,
'TWonder': true,
'JFWonder': get_option('jfwonder'),
'XWonder': get_option('xwonder'),
'ScorePlayer': get_option('scoreplayer')}, bool_yn: true, section: 'Components')
summary({'Location': get_option('location'), 'Directory': config_dir}, section: 'Configuration')
'ScorePlayer': get_option('scoreplayer')}, bool_yn: true, section: 'Components')
1 change: 0 additions & 1 deletion meson_options.txt → meson.options
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ option('xwonder', type : 'boolean', value : false)
option('jfwonder', type : 'boolean', value : true)
option('scoreplayer', type : 'boolean', value : true)
option('systemd', type : 'feature', value : 'auto')
option('location', type : 'combo', choices: ['none', 'EN325', 'HUFO'], value : 'none', description : 'Set location')
10 changes: 0 additions & 10 deletions scripts/cluster/reboot.sh

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/cluster/shutdown.sh

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/connections/connect-all-twonder.sh

This file was deleted.

29 changes: 0 additions & 29 deletions scripts/connections/connect-twonder.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/cwonder/start-cwonder.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/cwonder/stop-cwonder.sh

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/jack/start-all-jackd.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/jack/start-jackd.sh

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/jack/stop-all-jackd.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/remote-start-wonder.sh

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/remote-status-status.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/remote-stop-wonder.sh

This file was deleted.

21 changes: 0 additions & 21 deletions scripts/start-wonder.sh

This file was deleted.

30 changes: 0 additions & 30 deletions scripts/status-wonder.sh

This file was deleted.

Loading

0 comments on commit f568d52

Please sign in to comment.